@firstnoodle-ui/bui 0.0.28 → 0.0.29
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/bui.css +1 -1
- package/dist/components/horizontal-layout/Aside.vue.d.ts +2 -6
- package/dist/components/index.d.ts +1 -0
- package/dist/components/modal/Modal.vue.d.ts +9 -3
- package/dist/components/tree-list/InputNode.vue.d.ts +90 -0
- package/dist/components/tree-list/TreeList.vue.d.ts +27 -0
- package/dist/components/tree-list/index.d.ts +2 -0
- package/dist/components/tree-list/types.d.ts +14 -0
- package/dist/index.mjs +6595 -6371
- package/package.json +22 -11
- package/src/components/application-wrapper/ApplicationWrapper.vue +0 -8
- package/src/components/application-wrapper/index.ts +0 -1
- package/src/components/aside-section-label/AsideSectionLabel.vue +0 -16
- package/src/components/aside-section-label/index.ts +0 -1
- package/src/components/button/Button.vue +0 -246
- package/src/components/button/NotificationBadge.vue +0 -15
- package/src/components/button/components/button-label/ButtonLabel.vue +0 -9
- package/src/components/button/components/button-label/index.ts +0 -1
- package/src/components/button/components/index.ts +0 -3
- package/src/components/button/components/left-group/LeftGroup.vue +0 -5
- package/src/components/button/components/left-group/index.ts +0 -1
- package/src/components/button/components/notification-badge/NotificationBadge.vue +0 -17
- package/src/components/button/components/notification-badge/index.ts +0 -1
- package/src/components/button/index.ts +0 -1
- package/src/components/button-group/ButtonGroup.vue +0 -97
- package/src/components/button-group/index.ts +0 -1
- package/src/components/calendar-view/CalendarView.vue +0 -106
- package/src/components/calendar-view/components/DateButton.vue +0 -23
- package/src/components/calendar-view/components/DecadeView.vue +0 -50
- package/src/components/calendar-view/components/MonthView.vue +0 -72
- package/src/components/calendar-view/components/NavButton.vue +0 -16
- package/src/components/calendar-view/components/YearView.vue +0 -52
- package/src/components/calendar-view/composables/useCalendar.ts +0 -138
- package/src/components/calendar-view/index.ts +0 -1
- package/src/components/calendar-view/utils/enums.ts +0 -31
- package/src/components/calendar-view/utils/index.ts +0 -240
- package/src/components/calendar-view/utils/types.ts +0 -13
- package/src/components/calendar-view/utils/utils/calendar.ts +0 -70
- package/src/components/calendar-view/utils/utils/date.ts +0 -130
- package/src/components/calendar-view/utils/utils/format.ts +0 -61
- package/src/components/calendar-view/utils/utils/time.ts +0 -70
- package/src/components/checkbox/Checkbox.vue +0 -51
- package/src/components/checkbox/CircleIndicator.vue +0 -26
- package/src/components/checkbox/DefaultIndicator.vue +0 -19
- package/src/components/checkbox/index.ts +0 -1
- package/src/components/collapse/Collapse.vue +0 -114
- package/src/components/collapse/index.ts +0 -1
- package/src/components/confirm-cancel/ConfirmCancel.vue +0 -66
- package/src/components/confirm-cancel/index.ts +0 -1
- package/src/components/confirm-cancel/types.ts +0 -18
- package/src/components/content-slider/ContentSlider.vue +0 -79
- package/src/components/content-slider/index.ts +0 -1
- package/src/components/data-point/DataPoint.vue +0 -5
- package/src/components/data-point/index.ts +0 -1
- package/src/components/delete-button/DeleteButton.vue +0 -19
- package/src/components/delete-button/index.ts +0 -1
- package/src/components/dialog/Dialog.vue +0 -70
- package/src/components/dialog/index.ts +0 -1
- package/src/components/fade-in-up/FadeInUp.vue +0 -17
- package/src/components/fade-in-up/index.ts +0 -1
- package/src/components/filter-chip/FilterChip.vue +0 -28
- package/src/components/filter-chip/index.ts +0 -1
- package/src/components/first-paint/FirstPaint.vue +0 -21
- package/src/components/first-paint/index.ts +0 -1
- package/src/components/first-paint/style.scss +0 -23
- package/src/components/flexbox/Flexbox.vue +0 -51
- package/src/components/flexbox/index.ts +0 -1
- package/src/components/horizontal-layout/Aside.vue +0 -114
- package/src/components/horizontal-layout/HorizontalLayout.vue +0 -118
- package/src/components/horizontal-layout/index.ts +0 -2
- package/src/components/icon/Icon.vue +0 -1263
- package/src/components/icon/index.ts +0 -1
- package/src/components/icon/utils/combine-svgs.cjs +0 -55
- package/src/components/icon/utils/combined-svgs.txt +0 -1150
- package/src/components/icon/utils/svgs/admin.svg +0 -16
- package/src/components/icon/utils/svgs/arrow-deviate.svg +0 -3
- package/src/components/icon/utils/svgs/arrow-down-plus.svg +0 -4
- package/src/components/icon/utils/svgs/arrow-down.svg +0 -3
- package/src/components/icon/utils/svgs/arrow-from.svg +0 -3
- package/src/components/icon/utils/svgs/arrow-left.svg +0 -3
- package/src/components/icon/utils/svgs/arrow-move.svg +0 -15
- package/src/components/icon/utils/svgs/arrow-right.svg +0 -3
- package/src/components/icon/utils/svgs/arrow-sub.svg +0 -3
- package/src/components/icon/utils/svgs/arrow-trend.svg +0 -15
- package/src/components/icon/utils/svgs/arrow-up-plus.svg +0 -4
- package/src/components/icon/utils/svgs/arrow-up.svg +0 -3
- package/src/components/icon/utils/svgs/authority.svg +0 -5
- package/src/components/icon/utils/svgs/beams.svg +0 -5
- package/src/components/icon/utils/svgs/bell.svg +0 -15
- package/src/components/icon/utils/svgs/bold.svg +0 -3
- package/src/components/icon/utils/svgs/box.svg +0 -5
- package/src/components/icon/utils/svgs/building.svg +0 -15
- package/src/components/icon/utils/svgs/bullet-list.svg +0 -8
- package/src/components/icon/utils/svgs/calendar.svg +0 -21
- package/src/components/icon/utils/svgs/camera.svg +0 -5
- package/src/components/icon/utils/svgs/categories.svg +0 -3
- package/src/components/icon/utils/svgs/check-circled.svg +0 -16
- package/src/components/icon/utils/svgs/check-outline.svg +0 -15
- package/src/components/icon/utils/svgs/check.svg +0 -3
- package/src/components/icon/utils/svgs/chevron-down.svg +0 -3
- package/src/components/icon/utils/svgs/chevron-left-double.svg +0 -4
- package/src/components/icon/utils/svgs/chevron-left.svg +0 -3
- package/src/components/icon/utils/svgs/chevron-right-double.svg +0 -4
- package/src/components/icon/utils/svgs/chevron-right.svg +0 -3
- package/src/components/icon/utils/svgs/chevron-up.svg +0 -3
- package/src/components/icon/utils/svgs/clock.svg +0 -4
- package/src/components/icon/utils/svgs/close-outline.svg +0 -3
- package/src/components/icon/utils/svgs/close.svg +0 -3
- package/src/components/icon/utils/svgs/columns.svg +0 -3
- package/src/components/icon/utils/svgs/conclusion.svg +0 -17
- package/src/components/icon/utils/svgs/copy.svg +0 -16
- package/src/components/icon/utils/svgs/crosshair.svg +0 -15
- package/src/components/icon/utils/svgs/dash.svg +0 -3
- package/src/components/icon/utils/svgs/dashboard.svg +0 -3
- package/src/components/icon/utils/svgs/delete.svg +0 -4
- package/src/components/icon/utils/svgs/delta.svg +0 -3
- package/src/components/icon/utils/svgs/download.svg +0 -3
- package/src/components/icon/utils/svgs/drag.svg +0 -8
- package/src/components/icon/utils/svgs/drilldown.svg +0 -8
- package/src/components/icon/utils/svgs/edit.svg +0 -16
- package/src/components/icon/utils/svgs/envelope.svg +0 -3
- package/src/components/icon/utils/svgs/error.svg +0 -3
- package/src/components/icon/utils/svgs/export-document.svg +0 -16
- package/src/components/icon/utils/svgs/filter.svg +0 -6
- package/src/components/icon/utils/svgs/filters.svg +0 -4
- package/src/components/icon/utils/svgs/flag.svg +0 -3
- package/src/components/icon/utils/svgs/folder.svg +0 -15
- package/src/components/icon/utils/svgs/frequency.svg +0 -3
- package/src/components/icon/utils/svgs/fullscreen-off.svg +0 -3
- package/src/components/icon/utils/svgs/fullscreen-on.svg +0 -3
- package/src/components/icon/utils/svgs/graduate.svg +0 -3
- package/src/components/icon/utils/svgs/hamburger.svg +0 -5
- package/src/components/icon/utils/svgs/handshake.svg +0 -15
- package/src/components/icon/utils/svgs/heading-1.svg +0 -4
- package/src/components/icon/utils/svgs/heading-2.svg +0 -4
- package/src/components/icon/utils/svgs/heading.svg +0 -3
- package/src/components/icon/utils/svgs/home.svg +0 -3
- package/src/components/icon/utils/svgs/id-card.svg +0 -6
- package/src/components/icon/utils/svgs/id.svg +0 -4
- package/src/components/icon/utils/svgs/indent-left.svg +0 -7
- package/src/components/icon/utils/svgs/indent-right.svg +0 -7
- package/src/components/icon/utils/svgs/information.svg +0 -17
- package/src/components/icon/utils/svgs/italics.svg +0 -3
- package/src/components/icon/utils/svgs/itenary.svg +0 -11
- package/src/components/icon/utils/svgs/keyboard.svg +0 -11
- package/src/components/icon/utils/svgs/lightning.svg +0 -15
- package/src/components/icon/utils/svgs/link.svg +0 -4
- package/src/components/icon/utils/svgs/list-collapse.svg +0 -6
- package/src/components/icon/utils/svgs/list-expand.svg +0 -6
- package/src/components/icon/utils/svgs/location.svg +0 -4
- package/src/components/icon/utils/svgs/lock-locked.svg +0 -4
- package/src/components/icon/utils/svgs/lock-unlocked.svg +0 -4
- package/src/components/icon/utils/svgs/magnifying-glass.svg +0 -15
- package/src/components/icon/utils/svgs/map.svg +0 -3
- package/src/components/icon/utils/svgs/megaphone.svg +0 -3
- package/src/components/icon/utils/svgs/message.svg +0 -15
- package/src/components/icon/utils/svgs/microscope.svg +0 -3
- package/src/components/icon/utils/svgs/moon.svg +0 -3
- package/src/components/icon/utils/svgs/new-document.svg +0 -4
- package/src/components/icon/utils/svgs/news.svg +0 -15
- package/src/components/icon/utils/svgs/numbered-list.svg +0 -7
- package/src/components/icon/utils/svgs/open-link.svg +0 -16
- package/src/components/icon/utils/svgs/options.svg +0 -5
- package/src/components/icon/utils/svgs/page.svg +0 -7
- package/src/components/icon/utils/svgs/paper-plane.svg +0 -15
- package/src/components/icon/utils/svgs/paper.svg +0 -3
- package/src/components/icon/utils/svgs/pen-and-paper.svg +0 -4
- package/src/components/icon/utils/svgs/phase.svg +0 -15
- package/src/components/icon/utils/svgs/photo.svg +0 -4
- package/src/components/icon/utils/svgs/pie-chart.svg +0 -3
- package/src/components/icon/utils/svgs/plus.svg +0 -3
- package/src/components/icon/utils/svgs/point-left.svg +0 -3
- package/src/components/icon/utils/svgs/point-up.svg +0 -3
- package/src/components/icon/utils/svgs/popup.svg +0 -16
- package/src/components/icon/utils/svgs/question.svg +0 -17
- package/src/components/icon/utils/svgs/radio-tower.svg +0 -3
- package/src/components/icon/utils/svgs/recycle.svg +0 -3
- package/src/components/icon/utils/svgs/redo.svg +0 -3
- package/src/components/icon/utils/svgs/refresh.svg +0 -3
- package/src/components/icon/utils/svgs/route.svg +0 -3
- package/src/components/icon/utils/svgs/rows.svg +0 -3
- package/src/components/icon/utils/svgs/scope.svg +0 -7
- package/src/components/icon/utils/svgs/settings.svg +0 -16
- package/src/components/icon/utils/svgs/share.svg +0 -11
- package/src/components/icon/utils/svgs/sign-in.svg +0 -4
- package/src/components/icon/utils/svgs/sign-up.svg +0 -3
- package/src/components/icon/utils/svgs/sort-down.svg +0 -20
- package/src/components/icon/utils/svgs/sort-up.svg +0 -20
- package/src/components/icon/utils/svgs/sort.svg +0 -7
- package/src/components/icon/utils/svgs/square-solid.svg +0 -3
- package/src/components/icon/utils/svgs/star-solid.svg +0 -15
- package/src/components/icon/utils/svgs/star.svg +0 -15
- package/src/components/icon/utils/svgs/stop-watch.svg +0 -5
- package/src/components/icon/utils/svgs/structure.svg +0 -3
- package/src/components/icon/utils/svgs/sun.svg +0 -23
- package/src/components/icon/utils/svgs/table.svg +0 -3
- package/src/components/icon/utils/svgs/tag.svg +0 -15
- package/src/components/icon/utils/svgs/team.svg +0 -15
- package/src/components/icon/utils/svgs/telescope.svg +0 -15
- package/src/components/icon/utils/svgs/trash.svg +0 -6
- package/src/components/icon/utils/svgs/triangle-angle.svg +0 -3
- package/src/components/icon/utils/svgs/triangle-side.svg +0 -3
- package/src/components/icon/utils/svgs/underline.svg +0 -4
- package/src/components/icon/utils/svgs/undo.svg +0 -3
- package/src/components/icon/utils/svgs/user.svg +0 -16
- package/src/components/icon/utils/svgs/venn.svg +0 -3
- package/src/components/icon/utils/svgs/video.svg +0 -3
- package/src/components/icon/utils/svgs/visibility-off-alt.svg +0 -19
- package/src/components/icon/utils/svgs/visibility-off.svg +0 -3
- package/src/components/icon/utils/svgs/visibility-on.svg +0 -16
- package/src/components/icon/utils/svgs/warning.svg +0 -5
- package/src/components/index.ts +0 -45
- package/src/components/input/Input.vue +0 -118
- package/src/components/input/index.ts +0 -1
- package/src/components/input-number/InputNumber.vue +0 -112
- package/src/components/input-number/StepButton.vue +0 -23
- package/src/components/input-number/index.ts +0 -1
- package/src/components/load-spinner/LoadSpinner.vue +0 -13
- package/src/components/load-spinner/index.ts +0 -1
- package/src/components/modal/Modal.vue +0 -111
- package/src/components/modal/index.ts +0 -1
- package/src/components/nav-item/NavItem.vue +0 -62
- package/src/components/nav-item/index.ts +0 -1
- package/src/components/notification/Notification.vue +0 -53
- package/src/components/notification/index.ts +0 -1
- package/src/components/notification-badge/NotificationBadge.vue +0 -7
- package/src/components/notification-badge/index.ts +0 -1
- package/src/components/pagination/Pagination.vue +0 -65
- package/src/components/pagination/index.ts +0 -1
- package/src/components/pop-confirm/PopConfirm.vue +0 -90
- package/src/components/pop-confirm/index.ts +0 -1
- package/src/components/pop-select/FooterButton.vue +0 -5
- package/src/components/pop-select/PopSelect.vue +0 -346
- package/src/components/pop-select/ResultFilters.vue +0 -28
- package/src/components/pop-select/enums.ts +0 -7
- package/src/components/pop-select/index.ts +0 -2
- package/src/components/pop-select/option.vue +0 -51
- package/src/components/popper/Popper.vue +0 -239
- package/src/components/popper/PopperContent.vue +0 -5
- package/src/components/popper/index.ts +0 -2
- package/src/components/popper/middleware.ts +0 -19
- package/src/components/screen-overlay/ScreenOverlay.vue +0 -53
- package/src/components/screen-overlay/index.ts +0 -1
- package/src/components/scrollbar/Bar.vue +0 -106
- package/src/components/scrollbar/ScrollBottomLoader.vue +0 -25
- package/src/components/scrollbar/Scrollbar.vue +0 -219
- package/src/components/scrollbar/enums.ts +0 -23
- package/src/components/scrollbar/index.ts +0 -3
- package/src/components/scrollbar/style.scss +0 -77
- package/src/components/scrollbar/types.ts +0 -32
- package/src/components/select-list/SelectList.vue +0 -476
- package/src/components/select-list/components/SelectListFilterChip.vue +0 -34
- package/src/components/select-list/components/index.ts +0 -3
- package/src/components/select-list/components/option-group/OptionGroup.vue +0 -20
- package/src/components/select-list/components/option-group/index.ts +0 -1
- package/src/components/select-list/components/select-list-option/SelectListOption.vue +0 -83
- package/src/components/select-list/components/select-list-option/index.ts +0 -1
- package/src/components/select-list/components/status-cards/error-card/ErrorCard.vue +0 -17
- package/src/components/select-list/components/status-cards/error-card/index.ts +0 -1
- package/src/components/select-list/components/status-cards/idle-card/IdleCard.vue +0 -11
- package/src/components/select-list/components/status-cards/idle-card/index.ts +0 -1
- package/src/components/select-list/components/status-cards/index.ts +0 -4
- package/src/components/select-list/components/status-cards/loading-card/LoadingCard.vue +0 -10
- package/src/components/select-list/components/status-cards/loading-card/index.ts +0 -1
- package/src/components/select-list/components/status-cards/no-match-card/NoMatchCard.vue +0 -15
- package/src/components/select-list/components/status-cards/no-match-card/index.ts +0 -1
- package/src/components/select-list/components/status-cards/status-card/StatusCard.vue +0 -25
- package/src/components/select-list/components/status-cards/status-card/index.ts +0 -1
- package/src/components/select-list/index.ts +0 -5
- package/src/components/select-list/types.ts +0 -49
- package/src/components/side-over/SideOver.vue +0 -87
- package/src/components/side-over/index.ts +0 -1
- package/src/components/status-select/StatusIndicator.vue +0 -78
- package/src/components/status-select/StatusSelect.vue +0 -62
- package/src/components/status-select/index.ts +0 -1
- package/src/components/switch/Switch.vue +0 -52
- package/src/components/switch/index.ts +0 -1
- package/src/components/tab/Tab.vue +0 -65
- package/src/components/tab/index.ts +0 -1
- package/src/components/tag/Tag.vue +0 -34
- package/src/components/tag/index.ts +0 -1
- package/src/components/text-editor/TextEditor.vue +0 -399
- package/src/components/text-editor/components/Dialog.vue +0 -11
- package/src/components/text-editor/components/FormattingButton.vue +0 -46
- package/src/components/text-editor/components/InsertLinkDialog.vue +0 -81
- package/src/components/text-editor/components/InsertTextDialog.vue +0 -36
- package/src/components/text-editor/components/index.ts +0 -3
- package/src/components/text-editor/index.ts +0 -1
- package/src/components/text-highlight/TextHighlight.vue +0 -113
- package/src/components/text-highlight/index.ts +0 -1
- package/src/components/text-viewer/TextViewer.vue +0 -5
- package/src/components/text-viewer/index.ts +0 -1
- package/src/components/toggle-button/ToggleButton.vue +0 -105
- package/src/components/toggle-button/index.ts +0 -1
- package/src/components/tooltip/Tooltip.vue +0 -54
- package/src/components/tooltip/index.ts +0 -1
- package/src/components/types.ts +0 -232
- package/src/components/vertical-layout/RunningSection.vue +0 -54
- package/src/components/vertical-layout/VerticalLayout.vue +0 -37
- package/src/components/vertical-layout/index.ts +0 -3
- package/src/components/vertical-layout/types.ts +0 -2
- package/src/components/window-frame/WindowFrame.vue +0 -20
- package/src/components/window-frame/index.ts +0 -1
- package/src/composables/index.ts +0 -5
- package/src/composables/useClickOutside.ts +0 -48
- package/src/composables/useEscapeKey.ts +0 -12
- package/src/composables/useMounted.ts +0 -7
- package/src/composables/useNextFrame.ts +0 -10
- package/src/composables/useTrapFocus.ts +0 -61
- package/src/index.ts +0 -5
- package/src/main.css +0 -140
- package/src/utils/array.ts +0 -11
- package/src/utils/capitalizeFirstLetter.ts +0 -4
- package/src/utils/clamp.ts +0 -9
- package/src/utils/debounce.ts +0 -8
- package/src/utils/index.ts +0 -5
- package/src/utils/scrollIntoView.ts +0 -25
- package/src/utils/scrollbarWidth.ts +0 -27
package/src/main.css
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
@import "tailwindcss";
|
|
2
|
-
|
|
3
|
-
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
|
|
4
|
-
|
|
5
|
-
body {
|
|
6
|
-
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
7
|
-
line-height: 1.5;
|
|
8
|
-
font-weight: 400;
|
|
9
|
-
|
|
10
|
-
font-synthesis: none;
|
|
11
|
-
text-rendering: optimizeLegibility;
|
|
12
|
-
-webkit-font-smoothing: antialiased;
|
|
13
|
-
-moz-osx-font-smoothing: grayscale;
|
|
14
|
-
margin: 0;
|
|
15
|
-
padding: 0;
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
display: flex;
|
|
18
|
-
height: 100vh;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@layer base {
|
|
22
|
-
h1 {
|
|
23
|
-
@apply text-2xl font-bold;
|
|
24
|
-
}
|
|
25
|
-
h2 {
|
|
26
|
-
@apply text-xl font-bold;
|
|
27
|
-
}
|
|
28
|
-
h3 {
|
|
29
|
-
@apply text-lg font-bold;
|
|
30
|
-
}
|
|
31
|
-
h4 {
|
|
32
|
-
@apply text-base font-bold;
|
|
33
|
-
}
|
|
34
|
-
h5 {
|
|
35
|
-
@apply text-sm font-bold;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
input[type="number"]::-webkit-inner-spin-button,
|
|
39
|
-
input[type="number"]::-webkit-outer-spin-button {
|
|
40
|
-
-webkit-appearance: none;
|
|
41
|
-
margin: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/* Shared in both themes */
|
|
45
|
-
:root {
|
|
46
|
-
--color-action: var(--color-blue-500);
|
|
47
|
-
--color-action-hover: var(--color-blue-600);
|
|
48
|
-
--color-action-active: var(--color-blue-700);
|
|
49
|
-
--color-destructive: var(--color-red-500);
|
|
50
|
-
--color-destructive-hover: var(--color-red-600);
|
|
51
|
-
--color-destructive-active: var(--color-red-700);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
[data-theme="light"] {
|
|
55
|
-
--color-bg-primary: var(--color-white);
|
|
56
|
-
--color-bg-secondary: var(--color-stone-100);
|
|
57
|
-
--color-bg-tertiary: var(--color-stone-200);
|
|
58
|
-
|
|
59
|
-
--color-border-weak: var(--color-stone-200);
|
|
60
|
-
--color-border-default: var(--color-stone-300);
|
|
61
|
-
--color-border-strong: var(--color-stone-400);
|
|
62
|
-
|
|
63
|
-
--color-text-primary: var(--color-slate-900);
|
|
64
|
-
--color-text-secondary: var(--color-slate-700);
|
|
65
|
-
--color-text-tertiary: var(--color-slate-500);
|
|
66
|
-
--color-text-muted: var(--color-slate-300);
|
|
67
|
-
}
|
|
68
|
-
[data-theme="dark"] {
|
|
69
|
-
--color-bg-primary: #212121;
|
|
70
|
-
--color-bg-secondary: var(--color-neutral-800);
|
|
71
|
-
--color-bg-tertiary: #333333;
|
|
72
|
-
|
|
73
|
-
--color-border-weak: var(--color-neutral-800);
|
|
74
|
-
--color-border-default: var(--color-neutral-700);
|
|
75
|
-
--color-border-strong: var(--color-neutral-600);
|
|
76
|
-
|
|
77
|
-
--color-text-primary: var(--color-stone-100);
|
|
78
|
-
--color-text-secondary: var(--color-stone-300);
|
|
79
|
-
--color-text-tertiary: var(--color-stone-400);
|
|
80
|
-
--color-text-muted: var(--color-stone-500);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/* @utility content-auto {
|
|
85
|
-
content-visibility: auto;
|
|
86
|
-
} */
|
|
87
|
-
|
|
88
|
-
@utility bg-primary {
|
|
89
|
-
background-color: var(--color-bg-primary);
|
|
90
|
-
}
|
|
91
|
-
@utility bg-secondary {
|
|
92
|
-
background-color: var(--color-bg-secondary);
|
|
93
|
-
}
|
|
94
|
-
@utility bg-tertiary {
|
|
95
|
-
background-color: var(--color-bg-tertiary);
|
|
96
|
-
}
|
|
97
|
-
@utility bg-action {
|
|
98
|
-
background-color: var(--color-action);
|
|
99
|
-
}
|
|
100
|
-
@utility bg-action-hover {
|
|
101
|
-
background-color: var(--color-action-hover);
|
|
102
|
-
}
|
|
103
|
-
@utility bg-action-active {
|
|
104
|
-
background-color: var(--color-action-active);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@utility border-weak {
|
|
108
|
-
border-color: var(--color-border-weak);
|
|
109
|
-
}
|
|
110
|
-
@utility border-default {
|
|
111
|
-
border-color: var(--color-border-default);
|
|
112
|
-
}
|
|
113
|
-
@utility border-strong {
|
|
114
|
-
border-color: var(--color-border-strong);
|
|
115
|
-
}
|
|
116
|
-
@utility border-action {
|
|
117
|
-
border-color: var(--color-action);
|
|
118
|
-
}
|
|
119
|
-
@utility border-action-hover {
|
|
120
|
-
border-color: var(--color-action-hover);
|
|
121
|
-
}
|
|
122
|
-
@utility border-action-active {
|
|
123
|
-
border-color: var(--color-action-active);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
@utility text-primary {
|
|
127
|
-
color: var(--color-text-primary);
|
|
128
|
-
}
|
|
129
|
-
@utility text-secondary {
|
|
130
|
-
color: var(--color-text-secondary);
|
|
131
|
-
}
|
|
132
|
-
@utility text-tertiary {
|
|
133
|
-
color: var(--color-text-tertiary);
|
|
134
|
-
}
|
|
135
|
-
@utility text-muted {
|
|
136
|
-
color: var(--color-text-muted);
|
|
137
|
-
}
|
|
138
|
-
@utility text-action {
|
|
139
|
-
color: var(--color-action);
|
|
140
|
-
}
|
package/src/utils/array.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Modulo function that works with negative numbers as well
|
|
3
|
-
*/
|
|
4
|
-
export const loopRange = (index: number, length: number): number => {
|
|
5
|
-
return ((index % length) + length) % length;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export const range = (start: number, end: number): number[] => {
|
|
9
|
-
const length = end - start + 1;
|
|
10
|
-
return Array.from({ length }, (_, i) => start + i);
|
|
11
|
-
};
|
package/src/utils/clamp.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// export const clamp = (value: number, min: number, max: number) => Math.min(Math.max(value, min), max);
|
|
2
|
-
|
|
3
|
-
// needs an object as param to have optional min and max
|
|
4
|
-
export const clamp = (value: number, min: number | null, max: number | null) => {
|
|
5
|
-
if (min !== null && max !== null) return Math.min(Math.max(value, min), max);
|
|
6
|
-
if (min === null && max !== null) return Math.max(value, max);
|
|
7
|
-
if (min !== null && max === null) return Math.min(value, min);
|
|
8
|
-
return value;
|
|
9
|
-
};
|
package/src/utils/debounce.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line ts/no-unsafe-function-type
|
|
2
|
-
export const debounce = (fn: Function, timeout: number = 300) => {
|
|
3
|
-
let timer: ReturnType<typeof setTimeout>;
|
|
4
|
-
return (...args: any[]) => {
|
|
5
|
-
clearTimeout(timer);
|
|
6
|
-
timer = setTimeout(() => fn.apply(this, args), timeout);
|
|
7
|
-
};
|
|
8
|
-
};
|
package/src/utils/index.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export const scrollIntoView = (container: HTMLElement, selected: HTMLElement): void => {
|
|
2
|
-
if (!selected) {
|
|
3
|
-
container.scrollTop = 0;
|
|
4
|
-
return;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
const offsetParents = [];
|
|
8
|
-
let pointer = selected.offsetParent as HTMLElement;
|
|
9
|
-
while (pointer && container !== pointer && container.contains(pointer)) {
|
|
10
|
-
offsetParents.push(pointer);
|
|
11
|
-
pointer = pointer.offsetParent as HTMLElement;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const top = selected.offsetTop + offsetParents.reduce((prev, curr) => prev + curr.offsetTop, 0);
|
|
15
|
-
const bottom = top + selected.offsetHeight;
|
|
16
|
-
const viewRectTop = container.scrollTop;
|
|
17
|
-
const viewRectBottom = viewRectTop + container.clientHeight;
|
|
18
|
-
|
|
19
|
-
if (top < viewRectTop) {
|
|
20
|
-
container.scrollTop = top;
|
|
21
|
-
}
|
|
22
|
-
else if (bottom > viewRectBottom) {
|
|
23
|
-
container.scrollTop = bottom - container.clientHeight;
|
|
24
|
-
}
|
|
25
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
let width: number | undefined;
|
|
2
|
-
|
|
3
|
-
export const scrollbarWidth = (): number => {
|
|
4
|
-
if (scrollbarWidth !== undefined)
|
|
5
|
-
return <number>width;
|
|
6
|
-
|
|
7
|
-
const outer = document.createElement("div");
|
|
8
|
-
outer.className = "el-scrollbar__wrap";
|
|
9
|
-
outer.style.visibility = "hidden";
|
|
10
|
-
outer.style.width = "100px";
|
|
11
|
-
outer.style.position = "absolute";
|
|
12
|
-
outer.style.top = "-9999px";
|
|
13
|
-
document.body.appendChild(outer);
|
|
14
|
-
|
|
15
|
-
const widthNoScroll = outer.offsetWidth;
|
|
16
|
-
outer.style.overflow = "scroll";
|
|
17
|
-
|
|
18
|
-
const inner = document.createElement("div");
|
|
19
|
-
inner.style.width = "100%";
|
|
20
|
-
outer.appendChild(inner);
|
|
21
|
-
|
|
22
|
-
const widthWithScroll = inner.offsetWidth;
|
|
23
|
-
outer.parentNode?.removeChild(outer);
|
|
24
|
-
width = widthNoScroll - widthWithScroll;
|
|
25
|
-
|
|
26
|
-
return width;
|
|
27
|
-
};
|