@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,208 @@
|
|
|
1
|
+
@use '@/styles/mixins/cut-border' as *;
|
|
2
|
+
|
|
3
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
4
|
+
// Textarea Component Styles
|
|
5
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
6
|
+
|
|
7
|
+
.sk-textarea
|
|
8
|
+
{
|
|
9
|
+
// Color tokens (can be overridden by custom colors)
|
|
10
|
+
--sk-textarea-color-base: var(--sk-neutral-base);
|
|
11
|
+
--sk-textarea-fg: var(--sk-neutral-text);
|
|
12
|
+
|
|
13
|
+
// Corner cut size (scales with size variant)
|
|
14
|
+
--sk-textarea-cut: 0.5rem;
|
|
15
|
+
|
|
16
|
+
display: block;
|
|
17
|
+
width: 100%;
|
|
18
|
+
font-family: var(--sk-font-family-base);
|
|
19
|
+
resize: vertical;
|
|
20
|
+
cursor: text;
|
|
21
|
+
|
|
22
|
+
@include cut-border(
|
|
23
|
+
$cut: var(--sk-textarea-cut),
|
|
24
|
+
$corners: (top-right)
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
// Base styling
|
|
28
|
+
background: color-mix(
|
|
29
|
+
in oklch,
|
|
30
|
+
color-mix(in oklch, var(--sk-textarea-color-base) 75%, transparent 25%),
|
|
31
|
+
#000 65%
|
|
32
|
+
);
|
|
33
|
+
color: var(--sk-textarea-fg);
|
|
34
|
+
border: var(--sk-border-width-thin) solid var(--sk-textarea-color-base);
|
|
35
|
+
|
|
36
|
+
// Transitions
|
|
37
|
+
transition-property: background, color, border-color, box-shadow;
|
|
38
|
+
transition-duration: var(--sk-transition-duration-base);
|
|
39
|
+
|
|
40
|
+
// Size variants
|
|
41
|
+
&.sk-sm
|
|
42
|
+
{
|
|
43
|
+
padding: 0.75rem 1rem;
|
|
44
|
+
font-size: 0.875rem;
|
|
45
|
+
line-height: 1.4;
|
|
46
|
+
--sk-textarea-cut: 0.4rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.sk-md
|
|
50
|
+
{
|
|
51
|
+
padding: 0.75rem 1rem;
|
|
52
|
+
font-size: 1rem;
|
|
53
|
+
line-height: 1.5;
|
|
54
|
+
--sk-textarea-cut: 0.5rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.sk-lg
|
|
58
|
+
{
|
|
59
|
+
padding: 0.75rem 1rem;
|
|
60
|
+
font-size: 1.125rem;
|
|
61
|
+
line-height: 1.5;
|
|
62
|
+
--sk-textarea-cut: 0.6rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.sk-xl
|
|
66
|
+
{
|
|
67
|
+
padding: 0.75rem 1rem;
|
|
68
|
+
font-size: 1.25rem;
|
|
69
|
+
line-height: 1.6;
|
|
70
|
+
--sk-textarea-cut: 0.7rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Focus state (brighter background)
|
|
74
|
+
&:focus
|
|
75
|
+
{
|
|
76
|
+
outline: none;
|
|
77
|
+
border-color: color-mix(in oklch, var(--sk-textarea-color-base), white 35%);
|
|
78
|
+
background: color-mix(
|
|
79
|
+
in oklch,
|
|
80
|
+
color-mix(in oklch, var(--sk-textarea-color-base) 75%, transparent 25%),
|
|
81
|
+
#000 25%
|
|
82
|
+
);
|
|
83
|
+
transition-duration: var(--sk-transition-duration-fast);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Hover state (slightly brighter)
|
|
87
|
+
&:hover:not(:disabled):not(:focus)
|
|
88
|
+
{
|
|
89
|
+
border-color: color-mix(in oklch, var(--sk-textarea-color-base), white 20%);
|
|
90
|
+
transition-duration: var(--sk-transition-duration-fast);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Disabled state
|
|
94
|
+
&:disabled
|
|
95
|
+
{
|
|
96
|
+
opacity: 0.5;
|
|
97
|
+
cursor: not-allowed;
|
|
98
|
+
resize: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Readonly state
|
|
102
|
+
&.sk-readonly
|
|
103
|
+
{
|
|
104
|
+
cursor: default;
|
|
105
|
+
opacity: 0.75;
|
|
106
|
+
resize: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Placeholder styling
|
|
110
|
+
&::placeholder
|
|
111
|
+
{
|
|
112
|
+
color: color-mix(in oklch, var(--sk-textarea-fg), transparent 50%);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Kind variants
|
|
116
|
+
&.sk-neutral
|
|
117
|
+
{
|
|
118
|
+
--sk-textarea-color-base: var(--sk-neutral-base);
|
|
119
|
+
--sk-textarea-fg: var(--sk-neutral-text);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&.sk-primary
|
|
123
|
+
{
|
|
124
|
+
--sk-textarea-color-base: var(--sk-primary-base);
|
|
125
|
+
--sk-textarea-fg: var(--sk-primary-text);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.sk-accent
|
|
129
|
+
{
|
|
130
|
+
--sk-textarea-color-base: var(--sk-accent-base);
|
|
131
|
+
--sk-textarea-fg: var(--sk-accent-text);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&.sk-info
|
|
135
|
+
{
|
|
136
|
+
--sk-textarea-color-base: var(--sk-info-base);
|
|
137
|
+
--sk-textarea-fg: var(--sk-info-text);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&.sk-success
|
|
141
|
+
{
|
|
142
|
+
--sk-textarea-color-base: var(--sk-success-base);
|
|
143
|
+
--sk-textarea-fg: var(--sk-success-text);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&.sk-warning
|
|
147
|
+
{
|
|
148
|
+
--sk-textarea-color-base: var(--sk-warning-base);
|
|
149
|
+
--sk-textarea-fg: var(--sk-warning-text);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&.sk-danger
|
|
153
|
+
{
|
|
154
|
+
--sk-textarea-color-base: var(--sk-danger-base);
|
|
155
|
+
--sk-textarea-fg: var(--sk-danger-text);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// Color kinds (direct palette access)
|
|
159
|
+
&.sk-neon-blue
|
|
160
|
+
{
|
|
161
|
+
--sk-textarea-color-base: var(--sk-neon-blue-base);
|
|
162
|
+
--sk-textarea-fg: var(--sk-neon-blue-text);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&.sk-neon-purple
|
|
166
|
+
{
|
|
167
|
+
--sk-textarea-color-base: var(--sk-neon-purple-base);
|
|
168
|
+
--sk-textarea-fg: var(--sk-neon-purple-text);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&.sk-neon-orange
|
|
172
|
+
{
|
|
173
|
+
--sk-textarea-color-base: var(--sk-neon-orange-base);
|
|
174
|
+
--sk-textarea-fg: var(--sk-neon-orange-text);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&.sk-neon-green
|
|
178
|
+
{
|
|
179
|
+
--sk-textarea-color-base: var(--sk-neon-green-base);
|
|
180
|
+
--sk-textarea-fg: var(--sk-neon-green-text);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&.sk-neon-mint
|
|
184
|
+
{
|
|
185
|
+
--sk-textarea-color-base: var(--sk-neon-mint-base);
|
|
186
|
+
--sk-textarea-fg: var(--sk-neon-mint-text);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&.sk-neon-pink
|
|
190
|
+
{
|
|
191
|
+
--sk-textarea-color-base: var(--sk-neon-pink-base);
|
|
192
|
+
--sk-textarea-fg: var(--sk-neon-pink-text);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&.sk-yellow
|
|
196
|
+
{
|
|
197
|
+
--sk-textarea-color-base: var(--sk-yellow-base);
|
|
198
|
+
--sk-textarea-fg: var(--sk-yellow-text);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&.sk-red
|
|
202
|
+
{
|
|
203
|
+
--sk-textarea-color-base: var(--sk-red-base);
|
|
204
|
+
--sk-textarea-fg: var(--sk-red-text);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
2
|
+
// Toast Component Styles
|
|
3
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
@use '../mixins' as *;
|
|
6
|
+
|
|
7
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
8
|
+
// Toast Viewport
|
|
9
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
.sk-toast-viewport
|
|
12
|
+
{
|
|
13
|
+
// Base styles - fixed positioning for floating viewport
|
|
14
|
+
position: fixed;
|
|
15
|
+
z-index: 100;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: var(--sk-space-sm);
|
|
19
|
+
padding: var(--sk-space-md);
|
|
20
|
+
width: 100%;
|
|
21
|
+
max-width: 24rem;
|
|
22
|
+
max-height: 100vh;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
|
|
25
|
+
// Allow pointer events on toasts but not viewport background
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
|
|
28
|
+
> *
|
|
29
|
+
{
|
|
30
|
+
pointer-events: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
34
|
+
// Position variants
|
|
35
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
36
|
+
|
|
37
|
+
&.sk-top-left
|
|
38
|
+
{
|
|
39
|
+
top: 0;
|
|
40
|
+
left: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.sk-top-center
|
|
44
|
+
{
|
|
45
|
+
top: 0;
|
|
46
|
+
left: 50%;
|
|
47
|
+
transform: translateX(-50%);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.sk-top-right
|
|
51
|
+
{
|
|
52
|
+
top: 0;
|
|
53
|
+
right: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.sk-bottom-left
|
|
57
|
+
{
|
|
58
|
+
bottom: 0;
|
|
59
|
+
left: 0;
|
|
60
|
+
flex-direction: column-reverse;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.sk-bottom-center
|
|
64
|
+
{
|
|
65
|
+
bottom: 0;
|
|
66
|
+
left: 50%;
|
|
67
|
+
transform: translateX(-50%);
|
|
68
|
+
flex-direction: column-reverse;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.sk-bottom-right
|
|
72
|
+
{
|
|
73
|
+
bottom: 0;
|
|
74
|
+
right: 0;
|
|
75
|
+
flex-direction: column-reverse;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
80
|
+
// Toast Item (similar to Alert)
|
|
81
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
82
|
+
|
|
83
|
+
.sk-toast
|
|
84
|
+
{
|
|
85
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
86
|
+
// Design Tokens
|
|
87
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
88
|
+
|
|
89
|
+
--sk-toast-padding: 0.75rem;
|
|
90
|
+
--sk-toast-gap: 0.75rem;
|
|
91
|
+
--sk-toast-icon-size: 1.25rem;
|
|
92
|
+
--sk-toast-cut-size: 0.75rem;
|
|
93
|
+
--sk-toast-glow-size: 16px;
|
|
94
|
+
--sk-toast-glow-opacity: 0.4;
|
|
95
|
+
|
|
96
|
+
// Color tokens
|
|
97
|
+
--sk-toast-color-base: var(--sk-info-base);
|
|
98
|
+
--sk-toast-fg: var(--sk-toast-color-base);
|
|
99
|
+
--sk-toast-bg: color-mix(
|
|
100
|
+
in oklch,
|
|
101
|
+
color-mix(in oklch, var(--sk-toast-color-base) 75%, transparent 25%),
|
|
102
|
+
#000 46.25%
|
|
103
|
+
);
|
|
104
|
+
--sk-toast-border-color: var(--sk-toast-color-base);
|
|
105
|
+
|
|
106
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
107
|
+
// Base Styles
|
|
108
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
109
|
+
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
gap: var(--sk-toast-gap);
|
|
113
|
+
padding: var(--sk-toast-padding);
|
|
114
|
+
|
|
115
|
+
// Typography
|
|
116
|
+
font-family: var(--sk-font-family-base);
|
|
117
|
+
line-height: 1.5;
|
|
118
|
+
font-size: 0.875rem;
|
|
119
|
+
|
|
120
|
+
// Colors
|
|
121
|
+
background: oklch(from var(--sk-toast-bg) calc(l * 0.95) c h / 0.98);
|
|
122
|
+
color: var(--sk-toast-fg);
|
|
123
|
+
|
|
124
|
+
// Cut corners with border
|
|
125
|
+
@include cut-border(
|
|
126
|
+
var(--sk-toast-cut-size),
|
|
127
|
+
var(--sk-border-width-thin),
|
|
128
|
+
var(--sk-toast-border-color),
|
|
129
|
+
(top-left top-right bottom-left bottom-right)
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
// Inner glow + shadow
|
|
133
|
+
box-shadow:
|
|
134
|
+
var(--sk-shadow-lg),
|
|
135
|
+
inset 0 0 var(--sk-toast-glow-size) oklch(from var(--sk-toast-color-base) l c h / var(--sk-toast-glow-opacity));
|
|
136
|
+
|
|
137
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
138
|
+
// Animation States
|
|
139
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
140
|
+
|
|
141
|
+
&[data-state='open']
|
|
142
|
+
{
|
|
143
|
+
animation: sk-toast-show var(--sk-transition-duration-normal) ease-out;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&[data-state='closed']
|
|
147
|
+
{
|
|
148
|
+
animation: sk-toast-hide var(--sk-transition-duration-fast) ease-in;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&[data-swipe='move']
|
|
152
|
+
{
|
|
153
|
+
transform: translateX(var(--reka-toast-swipe-move-x, 0));
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&[data-swipe='cancel']
|
|
157
|
+
{
|
|
158
|
+
transform: translateX(0);
|
|
159
|
+
transition: transform var(--sk-transition-duration-fast) ease-out;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&[data-swipe='end']
|
|
163
|
+
{
|
|
164
|
+
animation: sk-toast-swipe-out var(--sk-transition-duration-fast) ease-out;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
168
|
+
// Kind Variants
|
|
169
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
170
|
+
|
|
171
|
+
&.sk-info
|
|
172
|
+
{
|
|
173
|
+
--sk-toast-color-base: var(--sk-info-base);
|
|
174
|
+
--sk-toast-fg: var(--sk-info-text);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&.sk-success
|
|
178
|
+
{
|
|
179
|
+
--sk-toast-color-base: var(--sk-success-base);
|
|
180
|
+
--sk-toast-fg: var(--sk-success-text);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&.sk-warning
|
|
184
|
+
{
|
|
185
|
+
--sk-toast-color-base: var(--sk-warning-base);
|
|
186
|
+
--sk-toast-fg: var(--sk-warning-text);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&.sk-danger
|
|
190
|
+
{
|
|
191
|
+
--sk-toast-color-base: var(--sk-danger-base);
|
|
192
|
+
--sk-toast-fg: var(--sk-danger-text);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
197
|
+
// Toast Icon
|
|
198
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
199
|
+
|
|
200
|
+
.sk-toast-icon
|
|
201
|
+
{
|
|
202
|
+
flex-shrink: 0;
|
|
203
|
+
width: var(--sk-toast-icon-size);
|
|
204
|
+
height: var(--sk-toast-icon-size);
|
|
205
|
+
display: flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
justify-content: center;
|
|
208
|
+
|
|
209
|
+
svg
|
|
210
|
+
{
|
|
211
|
+
width: 100%;
|
|
212
|
+
height: 100%;
|
|
213
|
+
stroke: currentColor;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
218
|
+
// Toast Content
|
|
219
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
220
|
+
|
|
221
|
+
.sk-toast-content
|
|
222
|
+
{
|
|
223
|
+
flex: 1;
|
|
224
|
+
min-width: 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.sk-toast-title
|
|
228
|
+
{
|
|
229
|
+
margin: 0 0 0.25rem;
|
|
230
|
+
font-size: 0.875rem;
|
|
231
|
+
font-weight: 600;
|
|
232
|
+
line-height: 1.3;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.sk-toast-description
|
|
236
|
+
{
|
|
237
|
+
margin: 0;
|
|
238
|
+
font-size: 0.8125rem;
|
|
239
|
+
line-height: 1.4;
|
|
240
|
+
opacity: 0.9;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
244
|
+
// Toast Close Button
|
|
245
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
246
|
+
|
|
247
|
+
.sk-toast-close
|
|
248
|
+
{
|
|
249
|
+
display: flex;
|
|
250
|
+
align-items: center;
|
|
251
|
+
justify-content: center;
|
|
252
|
+
flex-shrink: 0;
|
|
253
|
+
width: 1.5rem;
|
|
254
|
+
height: 1.5rem;
|
|
255
|
+
padding: 0;
|
|
256
|
+
margin-left: auto;
|
|
257
|
+
|
|
258
|
+
background: transparent;
|
|
259
|
+
border: none;
|
|
260
|
+
border-radius: var(--sk-radius-sm);
|
|
261
|
+
color: currentColor;
|
|
262
|
+
opacity: 0.6;
|
|
263
|
+
cursor: pointer;
|
|
264
|
+
|
|
265
|
+
transition: opacity var(--sk-transition-duration-fast) var(--sk-transition-timing-default),
|
|
266
|
+
background-color var(--sk-transition-duration-fast) var(--sk-transition-timing-default);
|
|
267
|
+
|
|
268
|
+
&:hover
|
|
269
|
+
{
|
|
270
|
+
opacity: 1;
|
|
271
|
+
background-color: oklch(from currentColor l c h / 0.15);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
&:focus-visible
|
|
275
|
+
{
|
|
276
|
+
outline: var(--sk-border-width-base) solid var(--sk-toast-color-base);
|
|
277
|
+
outline-offset: 2px;
|
|
278
|
+
opacity: 1;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
283
|
+
// Animations
|
|
284
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
285
|
+
|
|
286
|
+
@keyframes sk-toast-show
|
|
287
|
+
{
|
|
288
|
+
from
|
|
289
|
+
{
|
|
290
|
+
opacity: 0;
|
|
291
|
+
transform: translateX(100%);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
to
|
|
295
|
+
{
|
|
296
|
+
opacity: 1;
|
|
297
|
+
transform: translateX(0);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
@keyframes sk-toast-hide
|
|
302
|
+
{
|
|
303
|
+
from
|
|
304
|
+
{
|
|
305
|
+
opacity: 1;
|
|
306
|
+
transform: scale(1);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
to
|
|
310
|
+
{
|
|
311
|
+
opacity: 0;
|
|
312
|
+
transform: scale(0.95);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
@keyframes sk-toast-swipe-out
|
|
317
|
+
{
|
|
318
|
+
from
|
|
319
|
+
{
|
|
320
|
+
opacity: 1;
|
|
321
|
+
transform: translateX(var(--reka-toast-swipe-end-x, 0));
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
to
|
|
325
|
+
{
|
|
326
|
+
opacity: 0;
|
|
327
|
+
transform: translateX(calc(100% + var(--sk-space-md)));
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
//----------------------------------------------------------------------------------------------------------------------
|