@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,255 @@
|
|
|
1
|
+
@use '@/styles/mixins/cut-border' as *;
|
|
2
|
+
|
|
3
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
4
|
+
// Radio Component Styles
|
|
5
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
6
|
+
|
|
7
|
+
.sk-radio-group
|
|
8
|
+
{
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: var(--sk-space-md);
|
|
11
|
+
|
|
12
|
+
&.sk-horizontal
|
|
13
|
+
{
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.sk-vertical
|
|
18
|
+
{
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
24
|
+
|
|
25
|
+
.sk-radio-wrapper
|
|
26
|
+
{
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: var(--sk-space-xs);
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
|
|
32
|
+
&.sk-disabled
|
|
33
|
+
{
|
|
34
|
+
cursor: not-allowed;
|
|
35
|
+
opacity: 0.5;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
40
|
+
|
|
41
|
+
.sk-radio
|
|
42
|
+
{
|
|
43
|
+
// Color tokens (can be overridden by custom colors)
|
|
44
|
+
--sk-radio-color-base: var(--sk-neutral-base);
|
|
45
|
+
--sk-radio-fg: var(--sk-neutral-text);
|
|
46
|
+
|
|
47
|
+
// Corner cut size (scales with size variant)
|
|
48
|
+
--sk-radio-cut: 0.3rem;
|
|
49
|
+
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
flex-shrink: 0;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
@include cut-border(
|
|
56
|
+
$cut: var(--sk-radio-cut),
|
|
57
|
+
$corners: (top-left top-right bottom-right bottom-left)
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
// Base styling (unchecked) - darker than checked
|
|
61
|
+
background: color-mix(
|
|
62
|
+
in oklch,
|
|
63
|
+
color-mix(in oklch, var(--sk-radio-color-base) 75%, transparent 25%),
|
|
64
|
+
#000 65%
|
|
65
|
+
);
|
|
66
|
+
color: var(--sk-radio-fg);
|
|
67
|
+
border: var(--sk-border-width-thin) solid var(--sk-radio-color-base);
|
|
68
|
+
|
|
69
|
+
// Checked state - brighter background
|
|
70
|
+
&[data-state="checked"]
|
|
71
|
+
{
|
|
72
|
+
background: color-mix(
|
|
73
|
+
in oklch,
|
|
74
|
+
color-mix(in oklch, var(--sk-radio-color-base) 75%, transparent 25%),
|
|
75
|
+
#000 38%
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Transitions
|
|
80
|
+
transition-property: background, color, border-color, box-shadow;
|
|
81
|
+
transition-duration: var(--sk-transition-duration-base);
|
|
82
|
+
|
|
83
|
+
// Size variants
|
|
84
|
+
&.sk-sm
|
|
85
|
+
{
|
|
86
|
+
width: 1rem;
|
|
87
|
+
height: 1rem;
|
|
88
|
+
--sk-radio-cut: 0.24rem;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&.sk-md
|
|
92
|
+
{
|
|
93
|
+
width: 1.25rem;
|
|
94
|
+
height: 1.25rem;
|
|
95
|
+
--sk-radio-cut: 0.3rem;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.sk-lg
|
|
99
|
+
{
|
|
100
|
+
width: 1.5rem;
|
|
101
|
+
height: 1.5rem;
|
|
102
|
+
--sk-radio-cut: 0.36rem;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.sk-xl
|
|
106
|
+
{
|
|
107
|
+
width: 1.75rem;
|
|
108
|
+
height: 1.75rem;
|
|
109
|
+
--sk-radio-cut: 0.42rem;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Hover state - calculate from color-base for custom color support
|
|
113
|
+
&:hover:not(:disabled)
|
|
114
|
+
{
|
|
115
|
+
border-color: color-mix(in oklch, var(--sk-radio-color-base), white 35%);
|
|
116
|
+
background: color-mix(
|
|
117
|
+
in oklch,
|
|
118
|
+
color-mix(in oklch, var(--sk-radio-color-base) 75%, transparent 25%),
|
|
119
|
+
#000 25%
|
|
120
|
+
);
|
|
121
|
+
transition-duration: var(--sk-transition-duration-fast);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Kind variants
|
|
125
|
+
&.sk-neutral
|
|
126
|
+
{
|
|
127
|
+
--sk-radio-color-base: var(--sk-neutral-base);
|
|
128
|
+
--sk-radio-fg: var(--sk-neutral-text);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&.sk-primary
|
|
132
|
+
{
|
|
133
|
+
--sk-radio-color-base: var(--sk-primary-base);
|
|
134
|
+
--sk-radio-fg: var(--sk-primary-text);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&.sk-accent
|
|
138
|
+
{
|
|
139
|
+
--sk-radio-color-base: var(--sk-accent-base);
|
|
140
|
+
--sk-radio-fg: var(--sk-accent-text);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.sk-info
|
|
144
|
+
{
|
|
145
|
+
--sk-radio-color-base: var(--sk-info-base);
|
|
146
|
+
--sk-radio-fg: var(--sk-info-text);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&.sk-success
|
|
150
|
+
{
|
|
151
|
+
--sk-radio-color-base: var(--sk-success-base);
|
|
152
|
+
--sk-radio-fg: var(--sk-success-text);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&.sk-warning
|
|
156
|
+
{
|
|
157
|
+
--sk-radio-color-base: var(--sk-warning-base);
|
|
158
|
+
--sk-radio-fg: var(--sk-warning-text);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&.sk-danger
|
|
162
|
+
{
|
|
163
|
+
--sk-radio-color-base: var(--sk-danger-base);
|
|
164
|
+
--sk-radio-fg: var(--sk-danger-text);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// Color kinds (direct palette access)
|
|
168
|
+
&.sk-neon-blue
|
|
169
|
+
{
|
|
170
|
+
--sk-radio-color-base: var(--sk-neon-blue-base);
|
|
171
|
+
--sk-radio-fg: var(--sk-neon-blue-text);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&.sk-neon-purple
|
|
175
|
+
{
|
|
176
|
+
--sk-radio-color-base: var(--sk-neon-purple-base);
|
|
177
|
+
--sk-radio-fg: var(--sk-neon-purple-text);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&.sk-neon-orange
|
|
181
|
+
{
|
|
182
|
+
--sk-radio-color-base: var(--sk-neon-orange-base);
|
|
183
|
+
--sk-radio-fg: var(--sk-neon-orange-text);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&.sk-neon-green
|
|
187
|
+
{
|
|
188
|
+
--sk-radio-color-base: var(--sk-neon-green-base);
|
|
189
|
+
--sk-radio-fg: var(--sk-neon-green-text);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&.sk-neon-mint
|
|
193
|
+
{
|
|
194
|
+
--sk-radio-color-base: var(--sk-neon-mint-base);
|
|
195
|
+
--sk-radio-fg: var(--sk-neon-mint-text);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&.sk-neon-pink
|
|
199
|
+
{
|
|
200
|
+
--sk-radio-color-base: var(--sk-neon-pink-base);
|
|
201
|
+
--sk-radio-fg: var(--sk-neon-pink-text);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&.sk-yellow
|
|
205
|
+
{
|
|
206
|
+
--sk-radio-color-base: var(--sk-yellow-base);
|
|
207
|
+
--sk-radio-fg: var(--sk-yellow-text);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&.sk-red
|
|
211
|
+
{
|
|
212
|
+
--sk-radio-color-base: var(--sk-red-base);
|
|
213
|
+
--sk-radio-fg: var(--sk-red-text);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&:focus-visible
|
|
217
|
+
{
|
|
218
|
+
outline: var(--sk-border-width-base) solid var(--sk-primary-base);
|
|
219
|
+
outline-offset: 2px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
&:disabled
|
|
223
|
+
{
|
|
224
|
+
opacity: 0.5;
|
|
225
|
+
cursor: not-allowed;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
230
|
+
|
|
231
|
+
.sk-radio-indicator
|
|
232
|
+
{
|
|
233
|
+
display: flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
justify-content: center;
|
|
236
|
+
width: 50%;
|
|
237
|
+
height: 50%;
|
|
238
|
+
background: currentColor;
|
|
239
|
+
|
|
240
|
+
// Make the indicator octagonal to match the radio button
|
|
241
|
+
// Use smaller cuts relative to indicator size to maintain octagon shape
|
|
242
|
+
@include cut-border(
|
|
243
|
+
$cut: calc(var(--sk-radio-cut) * 0.4),
|
|
244
|
+
$corners: (top-left top-right bottom-right bottom-left)
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
249
|
+
|
|
250
|
+
.sk-radio-label
|
|
251
|
+
{
|
|
252
|
+
user-select: none;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
|
|
2
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
// Sidebar Component Styles
|
|
4
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
@use '../theme/variables' as *;
|
|
7
|
+
@use '../mixins' as *;
|
|
8
|
+
|
|
9
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
10
|
+
// Sidebar Container
|
|
11
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
.sk-sidebar
|
|
14
|
+
{
|
|
15
|
+
width: var(--sk-sidebar-width, 180px);
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
|
|
18
|
+
.sk-sidebar-nav
|
|
19
|
+
{
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 0.5rem;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
27
|
+
// Sidebar Section
|
|
28
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
29
|
+
|
|
30
|
+
.sk-sidebar-section
|
|
31
|
+
{
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: 0.5rem;
|
|
35
|
+
|
|
36
|
+
.sk-sidebar-section-title
|
|
37
|
+
{
|
|
38
|
+
font-size: 0.75rem;
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
text-transform: uppercase;
|
|
41
|
+
letter-spacing: 0.05em;
|
|
42
|
+
color: color-mix(in oklch, var(--sk-neutral-text), transparent 40%);
|
|
43
|
+
margin: 0.5rem 0 0.5rem 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
48
|
+
// Sidebar Item
|
|
49
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
50
|
+
|
|
51
|
+
.sk-sidebar-item
|
|
52
|
+
{
|
|
53
|
+
color: var(--sk-neutral-text);
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
padding: 0.5rem 0.75rem;
|
|
56
|
+
transition: all var(--sk-transition-fast);
|
|
57
|
+
font-size: 0.875rem;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
display: block;
|
|
60
|
+
|
|
61
|
+
&:hover
|
|
62
|
+
{
|
|
63
|
+
background: color-mix(in oklch, var(--sk-neutral-base), black 40%);
|
|
64
|
+
color: var(--sk-accent-base);
|
|
65
|
+
clip-path: polygon(
|
|
66
|
+
10px 0%,
|
|
67
|
+
100% 0%,
|
|
68
|
+
100% calc(100% - 10px),
|
|
69
|
+
calc(100% - 10px) 100%,
|
|
70
|
+
0% 100%,
|
|
71
|
+
0% 10px
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.sk-active,
|
|
76
|
+
&.router-link-active
|
|
77
|
+
{
|
|
78
|
+
background: color-mix(in oklch, var(--sk-neutral-base), black 40%);
|
|
79
|
+
color: var(--sk-primary-base);
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
clip-path: polygon(
|
|
82
|
+
10px 0%,
|
|
83
|
+
100% 0%,
|
|
84
|
+
100% calc(100% - 10px),
|
|
85
|
+
calc(100% - 10px) 100%,
|
|
86
|
+
0% 100%,
|
|
87
|
+
0% 10px
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
2
|
+
// Skeleton Component Styles
|
|
3
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
6
|
+
// Base Skeleton
|
|
7
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
.sk-skeleton
|
|
10
|
+
{
|
|
11
|
+
// CSS Variables
|
|
12
|
+
--sk-skeleton-base: oklch(from var(--sk-neutral-base) l c h / 0.12);
|
|
13
|
+
--sk-skeleton-highlight: oklch(from var(--sk-neutral-base) calc(l * 1.3) c h / 0.25);
|
|
14
|
+
--sk-skeleton-bevel: 0.35em;
|
|
15
|
+
|
|
16
|
+
position: relative;
|
|
17
|
+
display: block;
|
|
18
|
+
background: var(--sk-skeleton-base);
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
|
|
21
|
+
// Default dimensions
|
|
22
|
+
min-height: 1em;
|
|
23
|
+
|
|
24
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
25
|
+
// Shape Variants
|
|
26
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
27
|
+
|
|
28
|
+
// Text variant - beveled corners (top-left and bottom-right) for text lines
|
|
29
|
+
&.sk-text
|
|
30
|
+
{
|
|
31
|
+
--sk-skeleton-bevel: 0.35em;
|
|
32
|
+
height: 1em;
|
|
33
|
+
min-width: 2em;
|
|
34
|
+
clip-path: polygon(
|
|
35
|
+
var(--sk-skeleton-bevel) 0,
|
|
36
|
+
100% 0,
|
|
37
|
+
100% calc(100% - var(--sk-skeleton-bevel)),
|
|
38
|
+
calc(100% - var(--sk-skeleton-bevel)) 100%,
|
|
39
|
+
0 100%,
|
|
40
|
+
0 var(--sk-skeleton-bevel)
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Circular variant - perfect circle (avatar, icon placeholder)
|
|
45
|
+
&.sk-circular
|
|
46
|
+
{
|
|
47
|
+
border-radius: 50%;
|
|
48
|
+
aspect-ratio: 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Square variant - beveled top-left and bottom-right (avatar placeholder)
|
|
52
|
+
&.sk-square
|
|
53
|
+
{
|
|
54
|
+
--sk-skeleton-bevel: var(--sk-radius-lg);
|
|
55
|
+
aspect-ratio: 1;
|
|
56
|
+
clip-path: polygon(
|
|
57
|
+
var(--sk-skeleton-bevel) 0,
|
|
58
|
+
100% 0,
|
|
59
|
+
100% calc(100% - var(--sk-skeleton-bevel)),
|
|
60
|
+
calc(100% - var(--sk-skeleton-bevel)) 100%,
|
|
61
|
+
0 100%,
|
|
62
|
+
0 var(--sk-skeleton-bevel)
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Rectangular variant - beveled bottom-right corner only (card, image placeholder)
|
|
67
|
+
&.sk-rectangular
|
|
68
|
+
{
|
|
69
|
+
--sk-skeleton-bevel: var(--sk-radius-lg);
|
|
70
|
+
clip-path: polygon(
|
|
71
|
+
0 0,
|
|
72
|
+
100% 0,
|
|
73
|
+
100% calc(100% - var(--sk-skeleton-bevel)),
|
|
74
|
+
calc(100% - var(--sk-skeleton-bevel)) 100%,
|
|
75
|
+
0 100%
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
80
|
+
// Shimmer Animation
|
|
81
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
82
|
+
|
|
83
|
+
&.sk-shimmer::after
|
|
84
|
+
{
|
|
85
|
+
content: '';
|
|
86
|
+
position: absolute;
|
|
87
|
+
inset: 0;
|
|
88
|
+
background: linear-gradient(
|
|
89
|
+
90deg,
|
|
90
|
+
transparent 0%,
|
|
91
|
+
var(--sk-skeleton-highlight) 50%,
|
|
92
|
+
transparent 100%
|
|
93
|
+
);
|
|
94
|
+
animation: sk-skeleton-shimmer 1.5s ease-in-out infinite;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
98
|
+
// Pulse Animation
|
|
99
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
100
|
+
|
|
101
|
+
&.sk-pulse
|
|
102
|
+
{
|
|
103
|
+
animation: sk-skeleton-pulse 1.5s ease-in-out infinite;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
108
|
+
// Animations
|
|
109
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
110
|
+
|
|
111
|
+
@keyframes sk-skeleton-shimmer
|
|
112
|
+
{
|
|
113
|
+
0%
|
|
114
|
+
{
|
|
115
|
+
transform: translateX(-100%);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
100%
|
|
119
|
+
{
|
|
120
|
+
transform: translateX(100%);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@keyframes sk-skeleton-pulse
|
|
125
|
+
{
|
|
126
|
+
0%,
|
|
127
|
+
100%
|
|
128
|
+
{
|
|
129
|
+
opacity: 1;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
50%
|
|
133
|
+
{
|
|
134
|
+
opacity: 0.4;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
//----------------------------------------------------------------------------------------------------------------------
|