@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,405 @@
|
|
|
1
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
2
|
+
// Table Component Styles
|
|
3
|
+
// Clean table styling matching ApiReference component
|
|
4
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
@use '../theme/variables' as *;
|
|
7
|
+
@use '../mixins/cut-border' as *;
|
|
8
|
+
|
|
9
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
10
|
+
// Design Tokens
|
|
11
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
.sk-table
|
|
14
|
+
{
|
|
15
|
+
// Default foreground color (uses neutral foreground by default)
|
|
16
|
+
--sk-table-text: var(--sk-neutral-text);
|
|
17
|
+
|
|
18
|
+
// Base border color - uses the base color directly (like solid buttons)
|
|
19
|
+
--sk-table-border-base: var(--sk-neutral-base);
|
|
20
|
+
|
|
21
|
+
// Default (non-subtle) opacity tokens - backgrounds use transparency
|
|
22
|
+
--sk-table-header-bg-transparency: 80%;
|
|
23
|
+
--sk-table-footer-bg-transparency: 80%;
|
|
24
|
+
--sk-table-stripe-transparency: 85%;
|
|
25
|
+
--sk-table-hover-transparency: 90%;
|
|
26
|
+
--sk-table-hover-glow-transparency: 60%;
|
|
27
|
+
|
|
28
|
+
// Subtle variant opacity tokens
|
|
29
|
+
&.sk-subtle
|
|
30
|
+
{
|
|
31
|
+
// Subtle backgrounds
|
|
32
|
+
--sk-table-header-bg-transparency: 90%;
|
|
33
|
+
--sk-table-footer-bg-transparency: 90%;
|
|
34
|
+
--sk-table-stripe-transparency: 85%;
|
|
35
|
+
|
|
36
|
+
// Subtle border opacity (like subtle buttons)
|
|
37
|
+
--sk-table-border-opacity: 0.15;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
42
|
+
// Table Wrapper (for border and rounded corners)
|
|
43
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
44
|
+
|
|
45
|
+
.sk-table-wrapper
|
|
46
|
+
{
|
|
47
|
+
--sk-table-border-color: color-mix(in oklch, var(--sk-neutral-base), black 20%);
|
|
48
|
+
--sk-table-corner-cut: 1rem;
|
|
49
|
+
|
|
50
|
+
overflow-x: auto;
|
|
51
|
+
|
|
52
|
+
// Cut top-right corner with neutral border (opaque, like solid buttons)
|
|
53
|
+
@include cut-border(
|
|
54
|
+
$cut: var(--sk-table-corner-cut),
|
|
55
|
+
$border-width: 1px,
|
|
56
|
+
$border-color: var(--sk-table-border-color),
|
|
57
|
+
$corners: (top-right)
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
// Dark background option
|
|
61
|
+
&.sk-dark-background
|
|
62
|
+
{
|
|
63
|
+
background-color: black;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Wrapper border colors for kinds (opaque)
|
|
67
|
+
@each $kind in $kinds
|
|
68
|
+
{
|
|
69
|
+
&.sk-table-wrapper-#{ "" + $kind }
|
|
70
|
+
{
|
|
71
|
+
--sk-table-border-color: color-mix(in oklch, var(--sk-#{ $kind }-base), black 20%);
|
|
72
|
+
|
|
73
|
+
@include cut-border(
|
|
74
|
+
$cut: var(--sk-table-corner-cut),
|
|
75
|
+
$border-width: 1px,
|
|
76
|
+
$border-color: var(--sk-table-border-color),
|
|
77
|
+
$corners: (top-right)
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Subtle variant - use opacity for borders (like subtle buttons)
|
|
83
|
+
&.sk-subtle
|
|
84
|
+
{
|
|
85
|
+
--sk-table-border-color: color-mix(in oklch, var(--sk-neutral-base), black 35%);
|
|
86
|
+
|
|
87
|
+
@include cut-border(
|
|
88
|
+
$cut: var(--sk-table-corner-cut),
|
|
89
|
+
$border-width: 1px,
|
|
90
|
+
$border-color: var(--sk-table-border-color),
|
|
91
|
+
$corners: (top-right)
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
// Subtle wrapper border colors for kinds
|
|
95
|
+
@each $kind in $kinds
|
|
96
|
+
{
|
|
97
|
+
&.sk-table-wrapper-#{ "" + $kind }
|
|
98
|
+
{
|
|
99
|
+
--sk-table-border-color: color-mix(in oklch, var(--sk-#{ $kind }-base), black 35%);
|
|
100
|
+
|
|
101
|
+
@include cut-border(
|
|
102
|
+
$cut: var(--sk-table-corner-cut),
|
|
103
|
+
$border-width: 1px,
|
|
104
|
+
$border-color: var(--sk-table-border-color),
|
|
105
|
+
$corners: (top-right)
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
113
|
+
// Base Table Styles
|
|
114
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
115
|
+
|
|
116
|
+
.sk-table
|
|
117
|
+
{
|
|
118
|
+
width: 100%;
|
|
119
|
+
border-collapse: collapse;
|
|
120
|
+
font-size: 0.875rem;
|
|
121
|
+
|
|
122
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
123
|
+
// Header
|
|
124
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
125
|
+
|
|
126
|
+
thead
|
|
127
|
+
{
|
|
128
|
+
background-color: color-mix(in oklch, var(--sk-neutral-base), transparent var(--sk-table-header-bg-transparency));
|
|
129
|
+
border-bottom: 2px solid var(--sk-table-border-color);
|
|
130
|
+
|
|
131
|
+
th
|
|
132
|
+
{
|
|
133
|
+
padding: 0.75rem 1rem;
|
|
134
|
+
text-align: left;
|
|
135
|
+
font-weight: 600;
|
|
136
|
+
color: var(--sk-table-text);
|
|
137
|
+
white-space: nowrap;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
142
|
+
// Body
|
|
143
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
144
|
+
|
|
145
|
+
tbody
|
|
146
|
+
{
|
|
147
|
+
tr
|
|
148
|
+
{
|
|
149
|
+
border-bottom: 1px solid var(--sk-table-border-color);
|
|
150
|
+
|
|
151
|
+
&:last-child
|
|
152
|
+
{
|
|
153
|
+
border-bottom: none;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&:hover
|
|
157
|
+
{
|
|
158
|
+
background-color: color-mix(in oklch, var(--sk-primary-base), transparent var(--sk-table-hover-transparency));
|
|
159
|
+
box-shadow: inset 0 0 8px 0 color-mix(in oklch, var(--sk-primary-base), transparent var(--sk-table-hover-glow-transparency));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
td
|
|
164
|
+
{
|
|
165
|
+
padding: 0.75rem 1rem;
|
|
166
|
+
vertical-align: top;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
171
|
+
// Footer
|
|
172
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
173
|
+
|
|
174
|
+
tfoot
|
|
175
|
+
{
|
|
176
|
+
background-color: color-mix(in oklch, var(--sk-neutral-base), transparent var(--sk-table-footer-bg-transparency));
|
|
177
|
+
border-top: 2px solid var(--sk-table-border-color);
|
|
178
|
+
|
|
179
|
+
td,
|
|
180
|
+
th
|
|
181
|
+
{
|
|
182
|
+
padding: 0.75rem 1rem;
|
|
183
|
+
font-weight: 600;
|
|
184
|
+
color: var(--sk-table-text);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
189
|
+
// Striped Variant
|
|
190
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
191
|
+
|
|
192
|
+
&.sk-striped
|
|
193
|
+
{
|
|
194
|
+
tbody tr:nth-child(even)
|
|
195
|
+
{
|
|
196
|
+
background-color: color-mix(in oklch, var(--sk-neutral-base), transparent var(--sk-table-stripe-transparency));
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
201
|
+
// Hoverable Variant (enabled by default via tbody tr:hover above)
|
|
202
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
203
|
+
|
|
204
|
+
&.sk-hoverable
|
|
205
|
+
{
|
|
206
|
+
// Hover is already applied by default
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
210
|
+
// Bordered Variant (adds right borders on cells)
|
|
211
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
212
|
+
|
|
213
|
+
&.sk-bordered
|
|
214
|
+
{
|
|
215
|
+
td,
|
|
216
|
+
th
|
|
217
|
+
{
|
|
218
|
+
border-right: 1px solid var(--sk-table-border-color);
|
|
219
|
+
|
|
220
|
+
&:last-child
|
|
221
|
+
{
|
|
222
|
+
border-right: none;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
228
|
+
// No Inner Borders Option (like ApiReference) - removes vertical cell borders
|
|
229
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
230
|
+
|
|
231
|
+
&.sk-no-inner-borders
|
|
232
|
+
{
|
|
233
|
+
&.sk-bordered
|
|
234
|
+
{
|
|
235
|
+
td,
|
|
236
|
+
th
|
|
237
|
+
{
|
|
238
|
+
border-right: none;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
244
|
+
// Spacing Variants
|
|
245
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
246
|
+
|
|
247
|
+
&.sk-compact
|
|
248
|
+
{
|
|
249
|
+
thead th,
|
|
250
|
+
tbody td,
|
|
251
|
+
tfoot td,
|
|
252
|
+
tfoot th
|
|
253
|
+
{
|
|
254
|
+
padding: 0.5rem 0.75rem;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&.sk-comfortable
|
|
259
|
+
{
|
|
260
|
+
thead th,
|
|
261
|
+
tbody td,
|
|
262
|
+
tfoot td,
|
|
263
|
+
tfoot th
|
|
264
|
+
{
|
|
265
|
+
padding: 1rem 1.25rem;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
270
|
+
// Kind Variants
|
|
271
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
272
|
+
|
|
273
|
+
// Kind variants - override colors for non-neutral kinds
|
|
274
|
+
@each $kind in $kinds
|
|
275
|
+
{
|
|
276
|
+
&.sk-#{ "" + $kind }
|
|
277
|
+
{
|
|
278
|
+
// Only override if not neutral (neutral is the default)
|
|
279
|
+
@if $kind != 'neutral'
|
|
280
|
+
{
|
|
281
|
+
// Set foreground color and border base for this kind
|
|
282
|
+
--sk-table-text: var(--sk-#{ $kind }-text);
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
thead
|
|
286
|
+
{
|
|
287
|
+
background-color: color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-header-bg-transparency));
|
|
288
|
+
|
|
289
|
+
th
|
|
290
|
+
{
|
|
291
|
+
color: var(--sk-table-text);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
tbody
|
|
296
|
+
{
|
|
297
|
+
tr
|
|
298
|
+
{
|
|
299
|
+
&:hover
|
|
300
|
+
{
|
|
301
|
+
background-color: color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-hover-transparency));
|
|
302
|
+
box-shadow: inset 0 0 8px 0 color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-hover-glow-transparency));
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
tfoot
|
|
308
|
+
{
|
|
309
|
+
background-color: color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-footer-bg-transparency));
|
|
310
|
+
|
|
311
|
+
td,
|
|
312
|
+
th
|
|
313
|
+
{
|
|
314
|
+
color: var(--sk-table-text);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
&.sk-striped
|
|
319
|
+
{
|
|
320
|
+
tbody tr:nth-child(even)
|
|
321
|
+
{
|
|
322
|
+
background-color: color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-stripe-transparency));
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
330
|
+
// Subtle Variant - More transparent backgrounds, borders use opacity (like subtle buttons)
|
|
331
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
332
|
+
|
|
333
|
+
&.sk-subtle
|
|
334
|
+
{
|
|
335
|
+
// Backgrounds use transparency (no overlaps here)
|
|
336
|
+
thead
|
|
337
|
+
{
|
|
338
|
+
background-color: color-mix(in oklch, var(--sk-neutral-base), transparent var(--sk-table-header-bg-transparency));
|
|
339
|
+
|
|
340
|
+
th
|
|
341
|
+
{
|
|
342
|
+
// Subtle headers use base color, not computed foreground
|
|
343
|
+
color: var(--sk-neutral-base);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
tfoot
|
|
348
|
+
{
|
|
349
|
+
background-color: color-mix(in oklch, var(--sk-neutral-base), transparent var(--sk-table-footer-bg-transparency));
|
|
350
|
+
|
|
351
|
+
td,
|
|
352
|
+
th
|
|
353
|
+
{
|
|
354
|
+
// Subtle footers use base color, not computed foreground
|
|
355
|
+
color: var(--sk-neutral-base);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&.sk-striped tbody tr:nth-child(even)
|
|
360
|
+
{
|
|
361
|
+
background-color: color-mix(in oklch, var(--sk-neutral-base), transparent var(--sk-table-stripe-transparency));
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
// Subtle variant for kinds
|
|
365
|
+
@each $kind in $kinds
|
|
366
|
+
{
|
|
367
|
+
&.sk-#{ "" + $kind }
|
|
368
|
+
{
|
|
369
|
+
@if $kind != 'neutral'
|
|
370
|
+
{
|
|
371
|
+
// Backgrounds use transparency
|
|
372
|
+
thead
|
|
373
|
+
{
|
|
374
|
+
background-color: color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-header-bg-transparency));
|
|
375
|
+
|
|
376
|
+
th
|
|
377
|
+
{
|
|
378
|
+
// Subtle headers use base color, not computed foreground
|
|
379
|
+
color: var(--sk-#{ $kind }-base);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
tfoot
|
|
384
|
+
{
|
|
385
|
+
background-color: color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-footer-bg-transparency));
|
|
386
|
+
|
|
387
|
+
td,
|
|
388
|
+
th
|
|
389
|
+
{
|
|
390
|
+
// Subtle footers use base color, not computed foreground
|
|
391
|
+
color: var(--sk-#{ $kind }-base);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
&.sk-striped tbody tr:nth-child(even)
|
|
396
|
+
{
|
|
397
|
+
background-color: color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-stripe-transparency));
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
//----------------------------------------------------------------------------------------------------------------------
|