@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,171 @@
|
|
|
1
|
+
@value basePaneStructure, basePaneLoader from './base/Pane.module.scss';
|
|
2
|
+
|
|
3
|
+
.calendar {
|
|
4
|
+
composes: basePaneStructure;
|
|
5
|
+
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-flow: column;
|
|
8
|
+
box-shadow: var(--shadow-sm);
|
|
9
|
+
contain: paint;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.calendarActions {
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.calendarLoader {
|
|
17
|
+
composes: basePaneLoader;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.calendarCurrent {
|
|
21
|
+
display: flex;
|
|
22
|
+
gap: 9px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.calendarCurrentValue {
|
|
26
|
+
padding: 0;
|
|
27
|
+
background: none;
|
|
28
|
+
border: 0;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
font-size: 30px;
|
|
31
|
+
letter-spacing: -.05em;
|
|
32
|
+
line-height: 1.5em;
|
|
33
|
+
text-transform: capitalize;
|
|
34
|
+
|
|
35
|
+
@media (hover: hover) {
|
|
36
|
+
&:hover {
|
|
37
|
+
color: rgb(var(--primary-7));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.calendarCurrentMonth {
|
|
43
|
+
composes: calendarCurrentValue;
|
|
44
|
+
|
|
45
|
+
color: var(--foreground-prominent);
|
|
46
|
+
font-weight: 700;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.calendarCurrentYear {
|
|
50
|
+
composes: calendarCurrentValue;
|
|
51
|
+
|
|
52
|
+
color: var(--foreground);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.calendarCells {
|
|
56
|
+
display: grid;
|
|
57
|
+
flex-grow: 1;
|
|
58
|
+
gap: 1px;
|
|
59
|
+
grid-template-columns: repeat(7, 1fr);
|
|
60
|
+
grid-template-rows: min-content repeat(6, auto);
|
|
61
|
+
background: rgb(var(--gray-2));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.calendarCell {
|
|
65
|
+
padding: 12px 21px;
|
|
66
|
+
background: rgb(var(--gray-0));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.calendarDay {
|
|
70
|
+
composes: calendarCell;
|
|
71
|
+
|
|
72
|
+
padding-left: 0;
|
|
73
|
+
padding-right: 0;
|
|
74
|
+
color: var(--foreground-secondary);
|
|
75
|
+
font-size: 12px;
|
|
76
|
+
font-weight: 400;
|
|
77
|
+
line-height: 1em;
|
|
78
|
+
text-align: center;
|
|
79
|
+
text-transform: capitalize;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.calendarEntry {
|
|
83
|
+
composes: calendarCell;
|
|
84
|
+
|
|
85
|
+
position: relative;
|
|
86
|
+
min-height: 105px;
|
|
87
|
+
padding-bottom: 39px;
|
|
88
|
+
|
|
89
|
+
&.isDisabled {
|
|
90
|
+
background: rgb(var(--gray-1));
|
|
91
|
+
color: var(--foreground-secondary);
|
|
92
|
+
pointer-events: none;
|
|
93
|
+
|
|
94
|
+
.calendarEntryDate {
|
|
95
|
+
opacity: .25;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.calendarEvents {
|
|
99
|
+
opacity: .75;
|
|
100
|
+
pointer-events: none;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.calendarEntryDate {
|
|
106
|
+
position: absolute;
|
|
107
|
+
right: 21px;
|
|
108
|
+
bottom: 15px;
|
|
109
|
+
color: var(--foreground);
|
|
110
|
+
font-size: 15px;
|
|
111
|
+
font-weight: 700;
|
|
112
|
+
line-height: 1em;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.calendarEvents {
|
|
116
|
+
display: grid;
|
|
117
|
+
grid-auto-rows: 1fr;
|
|
118
|
+
gap: 3px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.calendarEvent {
|
|
122
|
+
margin-left: -9px;
|
|
123
|
+
margin-right: -9px;
|
|
124
|
+
padding: 6px 9px;
|
|
125
|
+
background: rgb(var(--primary-2));
|
|
126
|
+
border: 0;
|
|
127
|
+
color: rgb(var(--primary-9));
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
font-size: 14px;
|
|
130
|
+
line-height: 1.3em;
|
|
131
|
+
text-align: left;
|
|
132
|
+
|
|
133
|
+
/** note: This works in all browsers. */
|
|
134
|
+
display: -webkit-box;
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
-webkit-line-clamp: 2;
|
|
137
|
+
-webkit-box-orient: vertical;
|
|
138
|
+
|
|
139
|
+
&.isSingle {
|
|
140
|
+
border-radius: calc(var(--radius) / 2);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.isMiddle {
|
|
144
|
+
margin-left: -22px;
|
|
145
|
+
margin-right: -22px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&.isStart {
|
|
149
|
+
margin-right: -21px;
|
|
150
|
+
border-top-left-radius: calc(var(--radius) / 2);
|
|
151
|
+
border-bottom-left-radius: calc(var(--radius) / 2);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&.isEnd {
|
|
155
|
+
margin-left: -21px;
|
|
156
|
+
border-top-right-radius: calc(var(--radius) / 2);
|
|
157
|
+
border-bottom-right-radius: calc(var(--radius) / 2);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&:not(.isSingle):not(.isStart) {
|
|
161
|
+
span {
|
|
162
|
+
opacity: 0;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@media (hover: hover) {
|
|
167
|
+
&:hover {
|
|
168
|
+
background: rgb(var(--primary-3));
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@use '$flux/css/mixin';
|
|
2
|
+
|
|
3
|
+
.chip {
|
|
4
|
+
display: flex;
|
|
5
|
+
height: 36px;
|
|
6
|
+
padding: 0 12px;
|
|
7
|
+
align-items: center;
|
|
8
|
+
flex-grow: 0;
|
|
9
|
+
gap: 9px;
|
|
10
|
+
background: rgb(var(--gray-1));
|
|
11
|
+
border: 1px solid rgb(var(--gray-3));
|
|
12
|
+
border-radius: 99px;
|
|
13
|
+
color: var(--foreground);
|
|
14
|
+
transition: 180ms var(--swift-out);
|
|
15
|
+
transition-property: background, border, color, mixin.focus-ring-transition-properties();
|
|
16
|
+
|
|
17
|
+
&.isSelectable {
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
|
|
20
|
+
@include mixin.focus-ring(2px);
|
|
21
|
+
|
|
22
|
+
@media (hover: hover) {
|
|
23
|
+
&:hover {
|
|
24
|
+
background: rgb(var(--gray-2));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.isSelected {
|
|
30
|
+
background: rgb(var(--primary-2));
|
|
31
|
+
border-color: rgb(var(--primary-4));
|
|
32
|
+
color: rgb(var(--primary-7));
|
|
33
|
+
|
|
34
|
+
@media (hover: hover) {
|
|
35
|
+
&:hover {
|
|
36
|
+
background: rgb(var(--primary-3));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:is(span) {
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
font-weight: 500;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[dark] .chip.isSelected {
|
|
49
|
+
background: rgb(var(--primary-11) / .5);
|
|
50
|
+
border-color: rgb(var(--primary-11));
|
|
51
|
+
color: rgb(var(--primary-5));
|
|
52
|
+
|
|
53
|
+
@media (hover: hover) {
|
|
54
|
+
&:hover {
|
|
55
|
+
background: rgb(var(--primary-10) / .5);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
@use '$flux/css/mixin';
|
|
2
|
+
|
|
3
|
+
.colorPicker {
|
|
4
|
+
--transparent: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMElEQVQ4T2N89uzZfwY8QFJSEp80A+OoAcMiDP7//483HTx//hx/Ohg1gIFx6IcBALl+VXknOCvFAAAAAElFTkSuQmCC);
|
|
5
|
+
|
|
6
|
+
display: flex;
|
|
7
|
+
padding: 21px;
|
|
8
|
+
flex-flow: column;
|
|
9
|
+
gap: 15px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.colorPickerPreview {
|
|
13
|
+
position: relative;
|
|
14
|
+
height: 60px;
|
|
15
|
+
width: 60px;
|
|
16
|
+
border-radius: var(--radius);
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
|
|
19
|
+
&::after,
|
|
20
|
+
&::before {
|
|
21
|
+
position: absolute;
|
|
22
|
+
inset: 0;
|
|
23
|
+
content: '';
|
|
24
|
+
border-radius: inherit;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&::before {
|
|
28
|
+
background: var(--transparent) repeat center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&::after {
|
|
32
|
+
background: var(--color);
|
|
33
|
+
box-shadow: inset 0 0 0 1px rgb(var(--gray-11) / .05);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.colorPickerSaturation {
|
|
38
|
+
background: var(--pickerBackground, black);
|
|
39
|
+
border: 0;
|
|
40
|
+
|
|
41
|
+
&::before,
|
|
42
|
+
&::after {
|
|
43
|
+
position: absolute;
|
|
44
|
+
content: '';
|
|
45
|
+
inset: 0;
|
|
46
|
+
border-radius: inherit;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&::before {
|
|
50
|
+
background: linear-gradient(to right, white, transparent);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&::after {
|
|
54
|
+
background: linear-gradient(to top, black, transparent);
|
|
55
|
+
box-shadow: inset 0 0 0 1px rgb(var(--gray-11) / .05);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.colorPickerSlider {
|
|
60
|
+
position: relative;
|
|
61
|
+
margin-left: 0;
|
|
62
|
+
margin-right: 0;
|
|
63
|
+
|
|
64
|
+
.sliderTrackValue {
|
|
65
|
+
background: unset;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.colorPickerAlphaSlider {
|
|
70
|
+
composes: colorPickerSlider;
|
|
71
|
+
|
|
72
|
+
.sliderTrack {
|
|
73
|
+
background: var(--transparent) repeat center;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.colorPickerHueSlider {
|
|
78
|
+
composes: colorPickerSlider;
|
|
79
|
+
|
|
80
|
+
.sliderTrack {
|
|
81
|
+
background: linear-gradient(to right, rgb(255, 0, 0) 0, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0));
|
|
82
|
+
border-color: rgb(0 0 0 / .1);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.colorPickerValue {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: flex-end;
|
|
89
|
+
gap: 9px;
|
|
90
|
+
|
|
91
|
+
.formFieldLabel {
|
|
92
|
+
min-height: unset;
|
|
93
|
+
font-size: 12px;
|
|
94
|
+
line-height: 15px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.formInput {
|
|
98
|
+
height: 36px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.colorSelect {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-flow: row wrap;
|
|
105
|
+
gap: 9px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.colorSelectItem {
|
|
109
|
+
display: flex;
|
|
110
|
+
height: 30px;
|
|
111
|
+
width: 30px;
|
|
112
|
+
padding: 0;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
border-radius: 15px;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
transition: 150ms var(--swift-out);
|
|
118
|
+
transition-property: background, border, scale;
|
|
119
|
+
|
|
120
|
+
.icon {
|
|
121
|
+
transition: inherit;
|
|
122
|
+
transition-property: scale;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@include mixin.hover {
|
|
126
|
+
scale: 1.1;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&:active {
|
|
130
|
+
scale: .9;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.colorSelectColor {
|
|
135
|
+
composes: colorSelectItem;
|
|
136
|
+
|
|
137
|
+
background: var(--color);
|
|
138
|
+
border: 2px solid color-mix(in srgb, var(--color), black 9%);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.colorSelectColorDeselected {
|
|
142
|
+
composes: colorSelectColor;
|
|
143
|
+
|
|
144
|
+
.icon {
|
|
145
|
+
scale: .5;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.colorSelectColorSelected {
|
|
150
|
+
composes: colorSelectColor;
|
|
151
|
+
|
|
152
|
+
background: transparent;
|
|
153
|
+
border: 3px solid var(--color);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.colorSelectCustom {
|
|
157
|
+
composes: colorSelectItem;
|
|
158
|
+
|
|
159
|
+
background: rgb(var(--gray-1));
|
|
160
|
+
border: 1px solid rgb(var(--gray-3));
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.colorSelectCustomPicker {
|
|
164
|
+
width: 330px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.colorSelectButtons {
|
|
168
|
+
display: flex;
|
|
169
|
+
padding-top: 0;
|
|
170
|
+
gap: 9px;
|
|
171
|
+
|
|
172
|
+
.button:first-child {
|
|
173
|
+
flex-grow: 1;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.colorSelectCheck {
|
|
178
|
+
color: var(--color);
|
|
179
|
+
|
|
180
|
+
:is(path) {
|
|
181
|
+
stroke: currentColor;
|
|
182
|
+
stroke-width: 54px;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
.comment {
|
|
2
|
+
display: grid;
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
gap: 3px 15px;
|
|
5
|
+
grid-template-columns: 1fr auto;
|
|
6
|
+
grid-template-rows: repeat(2, auto);
|
|
7
|
+
|
|
8
|
+
:local(.avatar) {
|
|
9
|
+
align-self: end;
|
|
10
|
+
grid-column: 2;
|
|
11
|
+
grid-row: 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.commentContent {
|
|
15
|
+
grid-column: 1;
|
|
16
|
+
grid-row: 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.commentFooter {
|
|
20
|
+
grid-column: 1;
|
|
21
|
+
grid-row: 2;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.isReceived {
|
|
25
|
+
grid-template-columns: auto 1fr;
|
|
26
|
+
|
|
27
|
+
:local(.avatar) {
|
|
28
|
+
grid-column: 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.commentContent {
|
|
32
|
+
grid-column: 2;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.commentFooter {
|
|
36
|
+
grid-column: 2;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.commentContent {
|
|
42
|
+
min-width: 0;
|
|
43
|
+
padding: 12px 18px;
|
|
44
|
+
background: linear-gradient(to bottom, rgb(var(--gray-0)), rgb(var(--gray-1)));
|
|
45
|
+
border: 1px solid rgb(var(--gray-3));
|
|
46
|
+
border-radius: calc(var(--radius) * 2);
|
|
47
|
+
box-shadow: var(--shadow-xs);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.comment:not(.isReceived) .commentContent {
|
|
51
|
+
border-bottom-right-radius: var(--radius);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.comment.isReceived .commentContent {
|
|
55
|
+
background: linear-gradient(to bottom, rgb(var(--gray-1)), rgb(var(--gray-2)));
|
|
56
|
+
border-bottom-left-radius: var(--radius);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.comment.isTyping .commentContent {
|
|
60
|
+
width: min-content;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.commentTyping {
|
|
64
|
+
display: block;
|
|
65
|
+
margin: 6px;
|
|
66
|
+
height: 6px;
|
|
67
|
+
width: 6px;
|
|
68
|
+
border-radius: 6px;
|
|
69
|
+
animation: commentTyping 1s linear infinite both;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.commentFooter {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
gap: 12px;
|
|
76
|
+
justify-content: flex-end;
|
|
77
|
+
font-size: 12px;
|
|
78
|
+
font-weight: 500;
|
|
79
|
+
|
|
80
|
+
:global(span) {
|
|
81
|
+
margin-right: auto;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:global(time) {
|
|
85
|
+
color: var(--foreground-secondary);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[dark] .commentContent {
|
|
90
|
+
background: linear-gradient(to bottom, rgb(var(--gray-1)), rgb(var(--gray-0)));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
[dark] .comment.isReceived .commentContent {
|
|
94
|
+
background: linear-gradient(to bottom, rgb(var(--gray-2)), rgb(var(--gray-1)));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@keyframes commentTyping {
|
|
98
|
+
0%,
|
|
99
|
+
80%,
|
|
100
|
+
100% {
|
|
101
|
+
background: rgb(var(--gray-3));
|
|
102
|
+
box-shadow: -9px 0 rgb(var(--gray-3)), 9px 0 rgb(var(--gray-3));
|
|
103
|
+
translate: 0 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
20% {
|
|
107
|
+
background: rgb(var(--gray-3));
|
|
108
|
+
box-shadow: -9px -3px rgb(var(--gray-5)), 9px 0 rgb(var(--gray-3));
|
|
109
|
+
translate: 0 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
40% {
|
|
113
|
+
background: rgb(var(--gray-5));
|
|
114
|
+
box-shadow: -9px 3px rgb(var(--gray-3)), 9px 3px rgb(var(--gray-3));
|
|
115
|
+
translate: 0 -3px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
60% {
|
|
119
|
+
background: rgb(var(--gray-3));
|
|
120
|
+
box-shadow: -9px 0 rgb(var(--gray-3)), 9px -3px rgb(var(--gray-5));
|
|
121
|
+
translate: 0 0;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
@use '$flux/css/mixin';
|
|
2
|
+
|
|
3
|
+
.datePicker {
|
|
4
|
+
display: flex;
|
|
5
|
+
max-height: 420px;
|
|
6
|
+
flex-flow: column;
|
|
7
|
+
border-radius: inherit;
|
|
8
|
+
overflow: auto;
|
|
9
|
+
user-select: none;
|
|
10
|
+
z-index: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.datePickerDates,
|
|
14
|
+
.datePickerMonths,
|
|
15
|
+
.datePickerYears,
|
|
16
|
+
.datePickerHeader {
|
|
17
|
+
padding: 15px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.datePickerHeader {
|
|
21
|
+
position: sticky;
|
|
22
|
+
display: flex;
|
|
23
|
+
top: 0;
|
|
24
|
+
align-items: center;
|
|
25
|
+
background: rgb(var(--gray-1));
|
|
26
|
+
border-bottom: 1px solid rgb(var(--gray-2));
|
|
27
|
+
z-index: 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.datePickerHeaderView {
|
|
31
|
+
display: flex;
|
|
32
|
+
height: 42px;
|
|
33
|
+
margin-left: auto;
|
|
34
|
+
margin-right: auto;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: 9px;
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.datePickerHeaderViewButton {
|
|
42
|
+
padding: 0;
|
|
43
|
+
background: unset;
|
|
44
|
+
border: 0;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
text-transform: capitalize;
|
|
47
|
+
|
|
48
|
+
&:first-child {
|
|
49
|
+
color: var(--foreground-prominent);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:last-child {
|
|
53
|
+
color: var(--foreground-secondary);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@include mixin.hover {
|
|
57
|
+
color: rgb(var(--primary-7));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.datePickerDate {
|
|
62
|
+
display: flex;
|
|
63
|
+
padding: 0;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
aspect-ratio: 1;
|
|
67
|
+
background: unset;
|
|
68
|
+
border: 0;
|
|
69
|
+
border-radius: var(--radius);
|
|
70
|
+
color: var(--foreground-prominent);
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
font-size: 14px;
|
|
73
|
+
outline: 0;
|
|
74
|
+
transition: 180ms var(--swift-out);
|
|
75
|
+
transition-property: background, border-radius, color, opacity;
|
|
76
|
+
|
|
77
|
+
@include mixin.hover {
|
|
78
|
+
background: rgb(var(--gray-2));
|
|
79
|
+
color: var(--foreground-prominent);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.isDisabled:not(.isRangeEntry, .isRangeEnd, .isRangeStart, .isSelectionEntry, .isSelectionEnd, .isSelectionStart) {
|
|
83
|
+
opacity: .25;
|
|
84
|
+
pointer-events: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:not(.isDisabled) {
|
|
88
|
+
font-weight: 500;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&.isSelected {
|
|
92
|
+
background: rgb(var(--primary-7));
|
|
93
|
+
color: rgb(var(--primary-1));
|
|
94
|
+
font-weight: 700;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.isRangeEntry {
|
|
98
|
+
background: rgb(var(--primary-3));
|
|
99
|
+
border-radius: 0;
|
|
100
|
+
color: rgb(var(--primary-11));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.isRangeEnd,
|
|
104
|
+
&.isRangeStart {
|
|
105
|
+
background: rgb(var(--primary-7));
|
|
106
|
+
color: rgb(var(--primary-1));
|
|
107
|
+
font-weight: 700;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
[dark] &.isRangeEntry {
|
|
111
|
+
background: rgb(var(--primary-7) / .75);
|
|
112
|
+
color: rgb(0 0 0 / .975);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
[dark] &.isRangeStart,
|
|
116
|
+
[dark] &.isRangeEnd {
|
|
117
|
+
background: rgb(var(--primary-7));
|
|
118
|
+
color: rgb(0 0 0 / .975);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&.isRangeEntry:nth-child(7n + 8),
|
|
122
|
+
&.isRangeStart {
|
|
123
|
+
border-top-left-radius: var(--radius);
|
|
124
|
+
border-bottom-left-radius: var(--radius);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.isRangeEntry:nth-child(7n),
|
|
128
|
+
&.isRangeEnd {
|
|
129
|
+
border-top-right-radius: var(--radius);
|
|
130
|
+
border-bottom-right-radius: var(--radius);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&.isSelectionEntry {
|
|
134
|
+
background: rgb(var(--gray-2));
|
|
135
|
+
border-radius: 0;
|
|
136
|
+
color: var(--foreground-prominent);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&.isSelectionEnd,
|
|
140
|
+
&.isSelectionStart {
|
|
141
|
+
background: rgb(var(--gray-3));
|
|
142
|
+
font-weight: 700;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&.isSelectionEntry:nth-child(7n + 8),
|
|
146
|
+
&.isSelectionStart {
|
|
147
|
+
border-top-left-radius: var(--radius);
|
|
148
|
+
border-bottom-left-radius: var(--radius);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&.isSelectionEntry:nth-child(7n),
|
|
152
|
+
&.isSelectionEnd {
|
|
153
|
+
border-top-right-radius: var(--radius);
|
|
154
|
+
border-bottom-right-radius: var(--radius);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.datePickerDates {
|
|
159
|
+
position: relative;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.datePickerDatesGrid {
|
|
163
|
+
display: grid;
|
|
164
|
+
gap: 3px 0;
|
|
165
|
+
grid-template-columns: repeat(7, 1fr);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.datePickerDay {
|
|
169
|
+
margin-bottom: 6px;
|
|
170
|
+
color: var(--foreground-secondary);
|
|
171
|
+
font-size: 12px;
|
|
172
|
+
font-weight: 500;
|
|
173
|
+
text-align: center;
|
|
174
|
+
text-transform: uppercase;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.datePickerMonths,
|
|
178
|
+
.datePickerYears {
|
|
179
|
+
display: grid;
|
|
180
|
+
margin-left: auto;
|
|
181
|
+
margin-right: auto;
|
|
182
|
+
max-width: 300px;
|
|
183
|
+
width: 100%;
|
|
184
|
+
gap: 9px;
|
|
185
|
+
grid-template-columns: repeat(3, 1fr);
|
|
186
|
+
|
|
187
|
+
.button {
|
|
188
|
+
contain: size layout;
|
|
189
|
+
contain-intrinsic-size: 0 42px;
|
|
190
|
+
content-visibility: auto;
|
|
191
|
+
text-transform: capitalize;
|
|
192
|
+
}
|
|
193
|
+
}
|