@skewedaspect/sleekspace-ui 0.2.0-beta.1
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/LICENSE +21 -0
- package/README.md +111 -0
- package/dist/sleekspace-ui.css +12844 -0
- package/dist/sleekspace-ui.es.js +19021 -0
- package/dist/sleekspace-ui.umd.js +19040 -0
- package/docs/components/accordion.md +92 -0
- package/docs/components/alert.md +72 -0
- package/docs/components/avatar.md +69 -0
- package/docs/components/breadcrumbs.md +65 -0
- package/docs/components/button/_meta.yaml +12 -0
- package/docs/components/button/accessibility.md +16 -0
- package/docs/components/button/custom-colors.md +18 -0
- package/docs/components/button/icons.md +31 -0
- package/docs/components/button/intro.md +8 -0
- package/docs/components/button/kinds.md +25 -0
- package/docs/components/button/sizes.md +14 -0
- package/docs/components/button/states.md +12 -0
- package/docs/components/button/usage.md +23 -0
- package/docs/components/button/variants.md +14 -0
- package/docs/components/button.md +110 -0
- package/docs/components/card.md +87 -0
- package/docs/components/checkbox.md +77 -0
- package/docs/components/collapsible.md +71 -0
- package/docs/components/divider.md +62 -0
- package/docs/components/dropdown.md +88 -0
- package/docs/components/field.md +80 -0
- package/docs/components/group.md +41 -0
- package/docs/components/input.md +84 -0
- package/docs/components/listbox.md +82 -0
- package/docs/components/modal.md +101 -0
- package/docs/components/navbar.md +64 -0
- package/docs/components/number-input.md +78 -0
- package/docs/components/page.md +77 -0
- package/docs/components/pagination.md +88 -0
- package/docs/components/panel.md +74 -0
- package/docs/components/popover.md +93 -0
- package/docs/components/progress.md +76 -0
- package/docs/components/radio.md +86 -0
- package/docs/components/sidebar.md +74 -0
- package/docs/components/skeleton.md +76 -0
- package/docs/components/slider.md +94 -0
- package/docs/components/spinner.md +59 -0
- package/docs/components/switch.md +97 -0
- package/docs/components/table.md +91 -0
- package/docs/components/tabs.md +108 -0
- package/docs/components/tag.md +75 -0
- package/docs/components/tags-input.md +88 -0
- package/docs/components/textarea.md +80 -0
- package/docs/components/theme.md +65 -0
- package/docs/components/toast.md +95 -0
- package/docs/components/tooltip.md +90 -0
- package/docs/guides/custom-colors.md +84 -0
- package/docs/guides/design-tokens.md +105 -0
- package/docs/guides/getting-started.md +144 -0
- package/docs/guides/installation.md +62 -0
- package/docs/guides/theming.md +101 -0
- package/package.json +76 -0
- package/src/components/Accordion/SkAccordion.vue +133 -0
- package/src/components/Accordion/SkAccordionItem.vue +131 -0
- package/src/components/Accordion/index.ts +3 -0
- package/src/components/Accordion/types.ts +9 -0
- package/src/components/Alert/SkAlert.vue +137 -0
- package/src/components/Alert/types.ts +10 -0
- package/src/components/Avatar/SkAvatar.vue +141 -0
- package/src/components/Avatar/index.ts +8 -0
- package/src/components/Avatar/types.ts +31 -0
- package/src/components/Breadcrumbs/SkBreadcrumbItem.vue +76 -0
- package/src/components/Breadcrumbs/SkBreadcrumbSeparator.vue +38 -0
- package/src/components/Breadcrumbs/SkBreadcrumbs.vue +93 -0
- package/src/components/Breadcrumbs/index.ts +10 -0
- package/src/components/Breadcrumbs/types.ts +36 -0
- package/src/components/Button/SkButton.vue +148 -0
- package/src/components/Button/types.ts +21 -0
- package/src/components/Card/SkCard.vue +144 -0
- package/src/components/Card/types.ts +12 -0
- package/src/components/Checkbox/SkCheckbox.vue +136 -0
- package/src/components/Checkbox/index.ts +8 -0
- package/src/components/Checkbox/types.ts +10 -0
- package/src/components/Collapsible/SkCollapsible.vue +159 -0
- package/src/components/Collapsible/index.ts +2 -0
- package/src/components/Collapsible/types.ts +8 -0
- package/src/components/Divider/SkDivider.vue +63 -0
- package/src/components/Divider/types.ts +15 -0
- package/src/components/Dropdown/SkDropdown.vue +150 -0
- package/src/components/Dropdown/SkDropdownMenuItem.vue +58 -0
- package/src/components/Dropdown/SkDropdownMenuSeparator.vue +26 -0
- package/src/components/Dropdown/SkDropdownSubmenu.vue +107 -0
- package/src/components/Dropdown/index.ts +11 -0
- package/src/components/Dropdown/types.ts +11 -0
- package/src/components/Field/SkField.vue +152 -0
- package/src/components/Field/index.ts +8 -0
- package/src/components/Field/types.ts +7 -0
- package/src/components/Group/SkGroup.vue +52 -0
- package/src/components/Group/types.ts +10 -0
- package/src/components/Input/SkInput.vue +117 -0
- package/src/components/Input/index.ts +8 -0
- package/src/components/Input/types.ts +11 -0
- package/src/components/Listbox/SkListbox.vue +164 -0
- package/src/components/Listbox/SkListboxItem.vue +68 -0
- package/src/components/Listbox/SkListboxSeparator.vue +26 -0
- package/src/components/Listbox/index.ts +10 -0
- package/src/components/Listbox/types.ts +10 -0
- package/src/components/Modal/SkModal.vue +231 -0
- package/src/components/Modal/index.ts +8 -0
- package/src/components/Modal/types.ts +12 -0
- package/src/components/NavBar/SkNavBar.vue +83 -0
- package/src/components/NavBar/index.ts +8 -0
- package/src/components/NavBar/types.ts +15 -0
- package/src/components/NumberInput/SkNumberInput.vue +168 -0
- package/src/components/NumberInput/index.ts +8 -0
- package/src/components/NumberInput/types.ts +10 -0
- package/src/components/Page/SkPage.vue +94 -0
- package/src/components/Page/index.ts +8 -0
- package/src/components/Page/types.ts +21 -0
- package/src/components/Pagination/SkPagination.vue +185 -0
- package/src/components/Pagination/SkPaginationItem.vue +107 -0
- package/src/components/Pagination/index.ts +9 -0
- package/src/components/Pagination/types.ts +40 -0
- package/src/components/Panel/SkPanel.vue +96 -0
- package/src/components/Panel/types.ts +15 -0
- package/src/components/Popover/SkPopover.vue +185 -0
- package/src/components/Popover/index.ts +8 -0
- package/src/components/Popover/types.ts +11 -0
- package/src/components/Progress/SkProgress.vue +144 -0
- package/src/components/Progress/index.ts +8 -0
- package/src/components/Progress/types.ts +34 -0
- package/src/components/Radio/SkRadio.vue +110 -0
- package/src/components/Radio/SkRadioGroup.vue +92 -0
- package/src/components/Radio/index.ts +9 -0
- package/src/components/Radio/types.ts +11 -0
- package/src/components/Sidebar/README.md +405 -0
- package/src/components/Sidebar/SkSidebar.vue +88 -0
- package/src/components/Sidebar/SkSidebarItem.vue +58 -0
- package/src/components/Sidebar/SkSidebarSection.vue +40 -0
- package/src/components/Sidebar/types.ts +3 -0
- package/src/components/Skeleton/SkSkeleton.vue +171 -0
- package/src/components/Skeleton/index.ts +8 -0
- package/src/components/Skeleton/types.ts +31 -0
- package/src/components/Slider/SkSlider.vue +165 -0
- package/src/components/Slider/index.ts +8 -0
- package/src/components/Slider/types.ts +44 -0
- package/src/components/Spinner/SkSpinner.vue +105 -0
- package/src/components/Spinner/index.ts +8 -0
- package/src/components/Spinner/types.ts +28 -0
- package/src/components/Switch/SkSwitch.vue +215 -0
- package/src/components/Switch/index.ts +8 -0
- package/src/components/Switch/types.ts +12 -0
- package/src/components/Table/SkTable.vue +109 -0
- package/src/components/Table/index.ts +2 -0
- package/src/components/Table/types.ts +15 -0
- package/src/components/Tabs/README.md +331 -0
- package/src/components/Tabs/SkTab.vue +84 -0
- package/src/components/Tabs/SkTabList.vue +62 -0
- package/src/components/Tabs/SkTabPanel.vue +47 -0
- package/src/components/Tabs/SkTabPanels.vue +23 -0
- package/src/components/Tabs/SkTabs.vue +124 -0
- package/src/components/Tabs/types.ts +21 -0
- package/src/components/Tag/SkTag.vue +129 -0
- package/src/components/Tag/types.ts +15 -0
- package/src/components/TagsInput/SkTagsInput.vue +184 -0
- package/src/components/TagsInput/index.ts +8 -0
- package/src/components/TagsInput/types.ts +10 -0
- package/src/components/Textarea/SkTextarea.vue +117 -0
- package/src/components/Textarea/index.ts +8 -0
- package/src/components/Textarea/types.ts +10 -0
- package/src/components/Theme/SkTheme.vue +47 -0
- package/src/components/Theme/types.ts +17 -0
- package/src/components/Theme/useTheme.ts +131 -0
- package/src/components/Toast/SkToast.vue +156 -0
- package/src/components/Toast/SkToastProvider.vue +180 -0
- package/src/components/Toast/index.ts +15 -0
- package/src/components/Toast/types.ts +63 -0
- package/src/components/Toast/useToast.ts +78 -0
- package/src/components/Tooltip/SkTooltip.vue +162 -0
- package/src/components/Tooltip/SkTooltipProvider.vue +114 -0
- package/src/components/Tooltip/index.ts +9 -0
- package/src/components/Tooltip/types.ts +13 -0
- package/src/composables/useCustomColors.test.ts +505 -0
- package/src/composables/useCustomColors.ts +124 -0
- package/src/composables/usePortalContext.test.ts +402 -0
- package/src/composables/usePortalContext.ts +95 -0
- package/src/global.d.ts +76 -0
- package/src/index.ts +259 -0
- package/src/styles/_scrollbar.scss +100 -0
- package/src/styles/base/_fonts.scss +105 -0
- package/src/styles/base/_global.scss +47 -0
- package/src/styles/base/_index.scss +24 -0
- package/src/styles/base/_reset.scss +11 -0
- package/src/styles/base/_typography.scss +178 -0
- package/src/styles/components/_accordion.scss +250 -0
- package/src/styles/components/_alert.scss +239 -0
- package/src/styles/components/_avatar.scss +133 -0
- package/src/styles/components/_breadcrumbs.scss +137 -0
- package/src/styles/components/_button.scss +731 -0
- package/src/styles/components/_card.scss +141 -0
- package/src/styles/components/_checkbox.scss +232 -0
- package/src/styles/components/_collapsible.scss +158 -0
- package/src/styles/components/_divider.scss +121 -0
- package/src/styles/components/_field.scss +87 -0
- package/src/styles/components/_group.scss +138 -0
- package/src/styles/components/_index.scss +46 -0
- package/src/styles/components/_input.scss +205 -0
- package/src/styles/components/_listbox.scss +453 -0
- package/src/styles/components/_menu.scss +216 -0
- package/src/styles/components/_modal.scss +329 -0
- package/src/styles/components/_navbar.scss +258 -0
- package/src/styles/components/_number-input.scss +352 -0
- package/src/styles/components/_page.scss +98 -0
- package/src/styles/components/_pagination.scss +411 -0
- package/src/styles/components/_panel.scss +281 -0
- package/src/styles/components/_popover.scss +258 -0
- package/src/styles/components/_progress.scss +280 -0
- package/src/styles/components/_radio.scss +255 -0
- package/src/styles/components/_sidebar.scss +92 -0
- package/src/styles/components/_skeleton.scss +138 -0
- package/src/styles/components/_slider.scss +262 -0
- package/src/styles/components/_spinner.scss +331 -0
- package/src/styles/components/_switch.scss +370 -0
- package/src/styles/components/_table.scss +405 -0
- package/src/styles/components/_tabs.scss +486 -0
- package/src/styles/components/_tag.scss +425 -0
- package/src/styles/components/_tags-input.scss +279 -0
- package/src/styles/components/_textarea.scss +208 -0
- package/src/styles/components/_toast.scss +331 -0
- package/src/styles/components/_tooltip.scss +206 -0
- package/src/styles/fonts/Titillium_Web/OFL.txt +93 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-Black.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-Bold.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-BoldItalic.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-ExtraLight.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-ExtraLightItalic.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-Italic.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-Light.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-LightItalic.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-Regular.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-SemiBold.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-SemiBoldItalic.ttf +0 -0
- package/src/styles/index.scss +17 -0
- package/src/styles/mixins/_cut-border.scss +254 -0
- package/src/styles/mixins/_index.scss +7 -0
- package/src/styles/theme/_variables.scss +42 -0
- package/src/styles/themes/README.md +127 -0
- package/src/styles/themes/_colorful.scss +58 -0
- package/src/styles/themes/_greyscale.scss +58 -0
- package/src/styles/themes/index.scss +9 -0
- package/src/styles/tokens/README.md +268 -0
- package/src/styles/tokens/_foundation-borders.scss +26 -0
- package/src/styles/tokens/_foundation-colors.scss +169 -0
- package/src/styles/tokens/_foundation-glow.scss +36 -0
- package/src/styles/tokens/_foundation-radius.scss +53 -0
- package/src/styles/tokens/_foundation-scrollbar.scss +31 -0
- package/src/styles/tokens/_foundation-shadows.scss +37 -0
- package/src/styles/tokens/_foundation-space.scss +36 -0
- package/src/styles/tokens/_foundation-transitions.scss +37 -0
- package/src/styles/tokens/_foundation-typography.scss +58 -0
- package/src/styles/tokens/_semantic-color-kinds.scss +112 -0
- package/src/styles/tokens/_semantic-colors.scss +10 -0
- package/src/styles/tokens/_semantic-interactive.scss +29 -0
- package/src/styles/tokens/_semantic-scrollbar.scss +48 -0
- package/src/styles/tokens/_semantic-surfaces.scss +36 -0
- package/src/styles/tokens/index.scss +38 -0
- package/src/styles/tokens.scss +268 -0
- package/src/styles/utilities/_index.scss +9 -0
- package/src/styles/utilities/_typography.scss +121 -0
- package/src/types.ts +50 -0
- package/web-types.json +3524 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
2
|
+
// Popover Component Styles
|
|
3
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
@use '@/styles/mixins/cut-border' as *;
|
|
6
|
+
|
|
7
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
8
|
+
// Popover Content
|
|
9
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
.sk-popover-content
|
|
12
|
+
{
|
|
13
|
+
// CSS variables for theming
|
|
14
|
+
--sk-popover-color-base: var(--sk-neutral-base);
|
|
15
|
+
--sk-popover-border-color: var(--sk-popover-color-base);
|
|
16
|
+
|
|
17
|
+
// Calculate darkened background (like tooltip solid variant)
|
|
18
|
+
--sk-popover-bg: color-mix(
|
|
19
|
+
in oklch,
|
|
20
|
+
color-mix(in oklch, var(--sk-popover-color-base) 75%, transparent 25%),
|
|
21
|
+
#000 46.25%
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
// Cut corners with border (use lg for more prominent bevels)
|
|
25
|
+
@include cut-border(
|
|
26
|
+
var(--sk-radius-lg),
|
|
27
|
+
var(--sk-border-width-thin),
|
|
28
|
+
var(--sk-popover-border-color),
|
|
29
|
+
(top-left top-right bottom-left bottom-right)
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
position: relative;
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
|
|
36
|
+
background: oklch(from var(--sk-popover-bg) calc(l * 0.9) c h / 0.98);
|
|
37
|
+
color: var(--sk-neutral-text);
|
|
38
|
+
box-shadow:
|
|
39
|
+
var(--sk-shadow-lg),
|
|
40
|
+
inset 0 0 24px oklch(from var(--sk-popover-color-base) l c h / 0.15),
|
|
41
|
+
0 0 12px oklch(from var(--sk-popover-color-base) l c h / 0.3);
|
|
42
|
+
|
|
43
|
+
max-width: 24rem;
|
|
44
|
+
min-width: 12rem;
|
|
45
|
+
z-index: 60;
|
|
46
|
+
|
|
47
|
+
// Animation states
|
|
48
|
+
&[data-state='open']
|
|
49
|
+
{
|
|
50
|
+
animation: sk-popover-show var(--sk-transition-duration-fast) ease-out;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&[data-state='closed']
|
|
54
|
+
{
|
|
55
|
+
animation: sk-popover-hide var(--sk-transition-duration-fast) ease-in;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
59
|
+
// Kind variants
|
|
60
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
61
|
+
|
|
62
|
+
&.sk-neutral
|
|
63
|
+
{
|
|
64
|
+
--sk-popover-color-base: var(--sk-neutral-base);
|
|
65
|
+
color: var(--sk-popover-fg, var(--sk-neutral-text));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.sk-primary
|
|
69
|
+
{
|
|
70
|
+
--sk-popover-color-base: var(--sk-primary-base);
|
|
71
|
+
color: var(--sk-popover-fg, var(--sk-primary-text));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.sk-accent
|
|
75
|
+
{
|
|
76
|
+
--sk-popover-color-base: var(--sk-accent-base);
|
|
77
|
+
color: var(--sk-popover-fg, var(--sk-accent-text));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.sk-info
|
|
81
|
+
{
|
|
82
|
+
--sk-popover-color-base: var(--sk-info-base);
|
|
83
|
+
color: var(--sk-popover-fg, var(--sk-info-text));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.sk-success
|
|
87
|
+
{
|
|
88
|
+
--sk-popover-color-base: var(--sk-success-base);
|
|
89
|
+
color: var(--sk-popover-fg, var(--sk-success-text));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.sk-warning
|
|
93
|
+
{
|
|
94
|
+
--sk-popover-color-base: var(--sk-warning-base);
|
|
95
|
+
color: var(--sk-popover-fg, var(--sk-warning-text));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.sk-danger
|
|
99
|
+
{
|
|
100
|
+
--sk-popover-color-base: var(--sk-danger-base);
|
|
101
|
+
color: var(--sk-popover-fg, var(--sk-danger-text));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
106
|
+
// Popover Header
|
|
107
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
108
|
+
|
|
109
|
+
.sk-popover-header
|
|
110
|
+
{
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
gap: var(--sk-space-sm);
|
|
114
|
+
padding: 0.5rem var(--sk-space-sm);
|
|
115
|
+
background-color: oklch(from var(--sk-popover-color-base) l c h / 0.15);
|
|
116
|
+
border-bottom: var(--sk-border-width-thin) solid oklch(from var(--sk-popover-color-base) l c h / 0.2);
|
|
117
|
+
margin: 2px 2px 0 2px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.sk-popover-title
|
|
121
|
+
{
|
|
122
|
+
flex: 1;
|
|
123
|
+
margin: 0;
|
|
124
|
+
font-size: 0.9375rem;
|
|
125
|
+
font-weight: 600;
|
|
126
|
+
line-height: 1.4;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.sk-popover-close
|
|
130
|
+
{
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
width: 1.5rem;
|
|
135
|
+
height: 1.5rem;
|
|
136
|
+
padding: 0;
|
|
137
|
+
margin-left: auto;
|
|
138
|
+
|
|
139
|
+
background: transparent;
|
|
140
|
+
border: none;
|
|
141
|
+
border-radius: var(--sk-radius-sm);
|
|
142
|
+
color: currentColor;
|
|
143
|
+
opacity: 0.6;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
|
|
146
|
+
transition: opacity var(--sk-transition-duration-fast) var(--sk-transition-timing-default),
|
|
147
|
+
background-color var(--sk-transition-duration-fast) var(--sk-transition-timing-default);
|
|
148
|
+
|
|
149
|
+
&:hover
|
|
150
|
+
{
|
|
151
|
+
opacity: 1;
|
|
152
|
+
background-color: oklch(from currentColor l c h / 0.1);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&:focus-visible
|
|
156
|
+
{
|
|
157
|
+
outline: var(--sk-border-width-base) solid var(--sk-popover-color-base);
|
|
158
|
+
outline-offset: 2px;
|
|
159
|
+
opacity: 1;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
164
|
+
// Popover Body (content area)
|
|
165
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
166
|
+
|
|
167
|
+
.sk-popover-body
|
|
168
|
+
{
|
|
169
|
+
padding: var(--sk-space-sm);
|
|
170
|
+
font-size: 0.875rem;
|
|
171
|
+
line-height: 1.5;
|
|
172
|
+
|
|
173
|
+
// Remove bottom margin from last child to prevent extra spacing
|
|
174
|
+
> *:last-child
|
|
175
|
+
{
|
|
176
|
+
margin-bottom: 0;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
181
|
+
// Popover Footer
|
|
182
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
183
|
+
|
|
184
|
+
.sk-popover-footer
|
|
185
|
+
{
|
|
186
|
+
display: flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
justify-content: flex-end;
|
|
189
|
+
gap: var(--sk-space-sm);
|
|
190
|
+
padding: 0.5rem var(--sk-space-sm);
|
|
191
|
+
background-color: oklch(from var(--sk-popover-color-base) l c h / 0.08);
|
|
192
|
+
border-top: var(--sk-border-width-thin) solid oklch(from var(--sk-popover-color-base) l c h / 0.15);
|
|
193
|
+
|
|
194
|
+
// Apply cut-border for bottom corners only
|
|
195
|
+
@include cut-border(
|
|
196
|
+
$cut: var(--sk-radius-lg),
|
|
197
|
+
$border-width: 0,
|
|
198
|
+
$border-color: transparent,
|
|
199
|
+
$corners: (bottom-left bottom-right)
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
204
|
+
// Popover Arrow
|
|
205
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
206
|
+
|
|
207
|
+
.sk-popover-arrow
|
|
208
|
+
{
|
|
209
|
+
fill: oklch(from var(--sk-popover-bg) calc(l * 0.9) c h / 0.98);
|
|
210
|
+
stroke: var(--sk-popover-border-color);
|
|
211
|
+
|
|
212
|
+
// Stroke on angled lines appears thinner (factor of ~0.7 at 45°)
|
|
213
|
+
// Use 1.4px to visually match the 1px border
|
|
214
|
+
stroke-width: 1.4px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// Adjust arrow for sides
|
|
218
|
+
.sk-popover-content[data-side='left'] .sk-popover-arrow,
|
|
219
|
+
.sk-popover-content[data-side='right'] .sk-popover-arrow
|
|
220
|
+
{
|
|
221
|
+
margin: 0;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
225
|
+
// Animations
|
|
226
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
227
|
+
|
|
228
|
+
@keyframes sk-popover-show
|
|
229
|
+
{
|
|
230
|
+
from
|
|
231
|
+
{
|
|
232
|
+
opacity: 0;
|
|
233
|
+
transform: scale(0.96);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
to
|
|
237
|
+
{
|
|
238
|
+
opacity: 1;
|
|
239
|
+
transform: scale(1);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@keyframes sk-popover-hide
|
|
244
|
+
{
|
|
245
|
+
from
|
|
246
|
+
{
|
|
247
|
+
opacity: 1;
|
|
248
|
+
transform: scale(1);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
to
|
|
252
|
+
{
|
|
253
|
+
opacity: 0;
|
|
254
|
+
transform: scale(0.96);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
2
|
+
// Progress Component Styles
|
|
3
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
@use '@/styles/mixins/cut-border' as *;
|
|
6
|
+
|
|
7
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
$kinds: (neutral, primary, accent, info, success, warning, danger);
|
|
10
|
+
|
|
11
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
12
|
+
// Kind Mixin
|
|
13
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
14
|
+
|
|
15
|
+
@mixin progress-kind($kind)
|
|
16
|
+
{
|
|
17
|
+
&.sk-#{ '' + $kind }
|
|
18
|
+
{
|
|
19
|
+
--sk-progress-color-base: var(--sk-#{ $kind }-base);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
24
|
+
// Progress Root (Track)
|
|
25
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
26
|
+
|
|
27
|
+
.sk-progress
|
|
28
|
+
{
|
|
29
|
+
// CSS Variables
|
|
30
|
+
--sk-progress-color-base: var(--sk-primary-base);
|
|
31
|
+
--sk-progress-track-bg: oklch(from var(--sk-neutral-base) l c h / 0.15);
|
|
32
|
+
--sk-progress-height: 1rem;
|
|
33
|
+
--sk-progress-bevel: calc(var(--sk-progress-height) * 0.6);
|
|
34
|
+
--sk-progress-slant: calc(var(--sk-progress-height) * 1.5);
|
|
35
|
+
|
|
36
|
+
position: relative;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
width: 100%;
|
|
40
|
+
min-width: 3rem;
|
|
41
|
+
height: var(--sk-progress-height);
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
|
|
44
|
+
background: var(--sk-progress-track-bg);
|
|
45
|
+
|
|
46
|
+
// Default: beveled top-left and bottom-right corners
|
|
47
|
+
@include cut-border(
|
|
48
|
+
var(--sk-progress-bevel),
|
|
49
|
+
var(--sk-border-width-thin),
|
|
50
|
+
oklch(from var(--sk-progress-color-base) l c h / 0.3),
|
|
51
|
+
(top-left bottom-right)
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
55
|
+
// Size Variants
|
|
56
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
57
|
+
|
|
58
|
+
// Extra small: full parallelogram slant
|
|
59
|
+
&.sk-xs
|
|
60
|
+
{
|
|
61
|
+
--sk-progress-height: 0.5rem;
|
|
62
|
+
|
|
63
|
+
// Override cut-border with full slant parallelogram
|
|
64
|
+
border: none;
|
|
65
|
+
clip-path: polygon(
|
|
66
|
+
var(--sk-progress-slant) 0,
|
|
67
|
+
100% 0,
|
|
68
|
+
calc(100% - var(--sk-progress-slant)) 100%,
|
|
69
|
+
0 100%
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
&::before
|
|
73
|
+
{
|
|
74
|
+
display: none;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.sk-sm
|
|
79
|
+
{
|
|
80
|
+
--sk-progress-height: 0.75rem;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.sk-md
|
|
84
|
+
{
|
|
85
|
+
--sk-progress-height: 1rem;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.sk-lg
|
|
89
|
+
{
|
|
90
|
+
--sk-progress-height: 1.25rem;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.sk-xl
|
|
94
|
+
{
|
|
95
|
+
--sk-progress-height: 1.5rem;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
99
|
+
// Kind Variants
|
|
100
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
101
|
+
|
|
102
|
+
@each $kind in $kinds
|
|
103
|
+
{
|
|
104
|
+
@include progress-kind($kind);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
108
|
+
// Indeterminate State
|
|
109
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
110
|
+
|
|
111
|
+
&.sk-indeterminate .sk-progress-indicator
|
|
112
|
+
{
|
|
113
|
+
width: 25%;
|
|
114
|
+
animation: sk-progress-indeterminate 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
115
|
+
|
|
116
|
+
// Trailing edge glow (left)
|
|
117
|
+
&::before
|
|
118
|
+
{
|
|
119
|
+
content: '';
|
|
120
|
+
position: absolute;
|
|
121
|
+
top: 0;
|
|
122
|
+
left: 0;
|
|
123
|
+
bottom: 0;
|
|
124
|
+
width: 4px;
|
|
125
|
+
background: linear-gradient(
|
|
126
|
+
to left,
|
|
127
|
+
transparent,
|
|
128
|
+
oklch(from var(--sk-progress-color-base) calc(l * 1.4) c h / 0.9)
|
|
129
|
+
);
|
|
130
|
+
box-shadow:
|
|
131
|
+
0 0 8px oklch(from var(--sk-progress-color-base) l c h / 0.7),
|
|
132
|
+
0 0 16px oklch(from var(--sk-progress-color-base) l c h / 0.4);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Ensure leading edge glow (right) is visible
|
|
136
|
+
&::after
|
|
137
|
+
{
|
|
138
|
+
display: block;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
144
|
+
// Progress Indicator (Bar)
|
|
145
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
146
|
+
|
|
147
|
+
.sk-progress-indicator
|
|
148
|
+
{
|
|
149
|
+
height: 100%;
|
|
150
|
+
background: var(--sk-progress-color-base);
|
|
151
|
+
transition: width var(--sk-transition-duration-normal) var(--sk-transition-timing-default);
|
|
152
|
+
position: relative;
|
|
153
|
+
|
|
154
|
+
// Subtle gradient for depth
|
|
155
|
+
background-image: linear-gradient(
|
|
156
|
+
to bottom,
|
|
157
|
+
oklch(from var(--sk-progress-color-base) calc(l * 1.15) c h / 0.3),
|
|
158
|
+
transparent 40%,
|
|
159
|
+
oklch(from var(--sk-progress-color-base) calc(l * 0.85) c h / 0.2)
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
// Glowing leading edge
|
|
163
|
+
&::after
|
|
164
|
+
{
|
|
165
|
+
content: '';
|
|
166
|
+
position: absolute;
|
|
167
|
+
top: 0;
|
|
168
|
+
right: 0;
|
|
169
|
+
bottom: 0;
|
|
170
|
+
width: 4px;
|
|
171
|
+
background: linear-gradient(
|
|
172
|
+
to right,
|
|
173
|
+
transparent,
|
|
174
|
+
oklch(from var(--sk-progress-color-base) calc(l * 1.4) c h / 0.9)
|
|
175
|
+
);
|
|
176
|
+
box-shadow:
|
|
177
|
+
0 0 8px oklch(from var(--sk-progress-color-base) l c h / 0.7),
|
|
178
|
+
0 0 16px oklch(from var(--sk-progress-color-base) l c h / 0.4);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// Hide edge glow at 0% and 100%
|
|
182
|
+
.sk-empty &::after,
|
|
183
|
+
.sk-complete &::after
|
|
184
|
+
{
|
|
185
|
+
display: none;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Extra small size: slanted right edge to match parallelogram
|
|
189
|
+
.sk-xs &
|
|
190
|
+
{
|
|
191
|
+
clip-path: polygon(
|
|
192
|
+
0 0,
|
|
193
|
+
100% 0,
|
|
194
|
+
calc(100% - var(--sk-progress-slant)) 100%,
|
|
195
|
+
0 100%
|
|
196
|
+
);
|
|
197
|
+
|
|
198
|
+
// Extend width slightly to account for the slant
|
|
199
|
+
margin-right: calc(var(--sk-progress-slant) * -1);
|
|
200
|
+
padding-right: var(--sk-progress-slant);
|
|
201
|
+
|
|
202
|
+
// Hide edge glow on xs (clipped anyway)
|
|
203
|
+
&::after
|
|
204
|
+
{
|
|
205
|
+
display: none;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
211
|
+
// Progress Value Label
|
|
212
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
213
|
+
|
|
214
|
+
.sk-progress-value
|
|
215
|
+
{
|
|
216
|
+
position: absolute;
|
|
217
|
+
font-weight: 600;
|
|
218
|
+
color: var(--sk-neutral-text);
|
|
219
|
+
text-shadow: 0 1px 2px oklch(0 0 0 / 0.5);
|
|
220
|
+
pointer-events: none;
|
|
221
|
+
|
|
222
|
+
// Position variants
|
|
223
|
+
&.sk-value-left
|
|
224
|
+
{
|
|
225
|
+
left: var(--sk-space-xs);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&.sk-value-center
|
|
229
|
+
{
|
|
230
|
+
left: 50%;
|
|
231
|
+
transform: translateX(-50%);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&.sk-value-right
|
|
235
|
+
{
|
|
236
|
+
right: var(--sk-space-xs);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// Hide on extra small and small sizes (too small for readable text)
|
|
240
|
+
.sk-xs &,
|
|
241
|
+
.sk-sm &
|
|
242
|
+
{
|
|
243
|
+
display: none;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// Scale font size with progress bar size
|
|
247
|
+
.sk-md &
|
|
248
|
+
{
|
|
249
|
+
font-size: 0.75rem;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.sk-lg &
|
|
253
|
+
{
|
|
254
|
+
font-size: 0.875rem;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.sk-xl &
|
|
258
|
+
{
|
|
259
|
+
font-size: 1rem;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
264
|
+
// Indeterminate Animation
|
|
265
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
266
|
+
|
|
267
|
+
@keyframes sk-progress-indeterminate
|
|
268
|
+
{
|
|
269
|
+
0%
|
|
270
|
+
{
|
|
271
|
+
transform: translateX(-100%);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
100%
|
|
275
|
+
{
|
|
276
|
+
transform: translateX(400%);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
//----------------------------------------------------------------------------------------------------------------------
|