webcoreui 0.0.11 → 0.1.0
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/README.md +42 -11
- package/astro.d.ts +4 -0
- package/astro.js +4 -0
- package/components/Accordion/Accordion.astro +10 -8
- package/components/Accordion/Accordion.svelte +8 -8
- package/components/Accordion/Accordion.tsx +7 -6
- package/components/Accordion/accordion.module.scss +65 -0
- package/components/Alert/Alert.astro +11 -7
- package/components/Alert/Alert.svelte +9 -7
- package/components/Alert/Alert.tsx +11 -7
- package/components/Alert/alert.module.scss +51 -0
- package/components/Alert/alert.ts +3 -1
- package/components/Avatar/Avatar.astro +4 -4
- package/components/Avatar/Avatar.svelte +13 -7
- package/components/Avatar/Avatar.tsx +11 -9
- package/components/Avatar/{avatar.scss → avatar.module.scss} +11 -8
- package/components/Badge/Badge.astro +8 -8
- package/components/Badge/Badge.svelte +25 -13
- package/components/Badge/Badge.tsx +26 -8
- package/components/Badge/badge.module.scss +86 -0
- package/components/Badge/badge.ts +8 -1
- package/components/Button/Button.astro +9 -7
- package/components/Button/Button.svelte +13 -11
- package/components/Button/Button.tsx +10 -8
- package/components/Button/button.module.scss +87 -0
- package/components/Button/button.ts +6 -2
- package/components/Card/Card.astro +7 -15
- package/components/Card/Card.svelte +16 -13
- package/components/Card/Card.tsx +15 -11
- package/components/Card/card.module.scss +38 -0
- package/components/Checkbox/Checkbox.astro +10 -10
- package/components/Checkbox/Checkbox.svelte +19 -18
- package/components/Checkbox/Checkbox.tsx +12 -11
- package/components/Checkbox/checkbox.module.scss +70 -0
- package/components/Checkbox/checkbox.ts +5 -1
- package/components/ConditionalWrapper/ConditionalWrapper.svelte +1 -1
- package/components/Icon/Icon.astro +2 -2
- package/components/Icon/Icon.svelte +1 -8
- package/components/Icon/Icon.tsx +1 -8
- package/components/Icon/map.ts +23 -0
- package/components/Input/Input.astro +50 -52
- package/components/Input/Input.svelte +52 -52
- package/components/Input/Input.tsx +59 -59
- package/components/Input/input.module.scss +79 -0
- package/components/Input/input.ts +8 -2
- package/components/Menu/Menu.astro +107 -0
- package/components/Menu/Menu.svelte +88 -0
- package/components/Menu/Menu.tsx +107 -0
- package/components/Menu/menu.module.scss +141 -0
- package/components/Menu/menu.ts +21 -0
- package/components/Progress/Progress.astro +42 -40
- package/components/Progress/Progress.svelte +40 -38
- package/components/Progress/Progress.tsx +48 -47
- package/components/Progress/progress.module.scss +70 -0
- package/components/Radio/Radio.astro +57 -57
- package/components/Radio/Radio.svelte +58 -56
- package/components/Radio/Radio.tsx +69 -68
- package/components/Radio/radio.module.scss +84 -0
- package/components/Radio/radio.ts +4 -0
- package/components/Rating/Rating.astro +13 -10
- package/components/Rating/Rating.svelte +15 -15
- package/components/Rating/Rating.tsx +22 -11
- package/components/Rating/rating.module.scss +45 -0
- package/components/Rating/rating.ts +1 -1
- package/components/Spinner/Spinner.astro +44 -42
- package/components/Spinner/Spinner.svelte +40 -38
- package/components/Spinner/Spinner.tsx +45 -44
- package/components/Spinner/{spinner.scss → spinner.module.scss} +50 -41
- package/components/Switch/Switch.astro +13 -11
- package/components/Switch/Switch.svelte +26 -24
- package/components/Switch/Switch.tsx +14 -12
- package/components/Switch/switch.module.scss +82 -0
- package/components/Switch/switch.ts +8 -4
- package/components/Table/Table.astro +60 -60
- package/components/Table/Table.svelte +56 -54
- package/components/Table/Table.tsx +64 -63
- package/components/Table/{table.scss → table.module.scss} +60 -65
- package/components/Tabs/Tabs.astro +76 -76
- package/components/Tabs/Tabs.svelte +56 -54
- package/components/Tabs/Tabs.tsx +70 -69
- package/components/Tabs/tabs.module.scss +125 -0
- package/components/ThemeSwitcher/ThemeSwitcher.astro +106 -0
- package/components/ThemeSwitcher/ThemeSwitcher.svelte +76 -0
- package/components/ThemeSwitcher/ThemeSwitcher.tsx +89 -0
- package/components/ThemeSwitcher/themeswitcher.module.scss +76 -0
- package/components/ThemeSwitcher/themeswitcher.ts +13 -0
- package/components/Timeline/Timeline.astro +36 -34
- package/components/Timeline/Timeline.svelte +32 -30
- package/components/Timeline/Timeline.tsx +38 -37
- package/components/Timeline/{timeline.scss → timeline.module.scss} +76 -71
- package/components/TimelineItem/TimelineItem.astro +27 -26
- package/components/TimelineItem/TimelineItem.svelte +24 -22
- package/components/TimelineItem/TimelineItem.tsx +33 -32
- package/components/TimelineItem/timelineitem.module.scss +29 -0
- package/components/Toast/Toast.astro +41 -30
- package/components/Toast/Toast.svelte +32 -21
- package/components/Toast/Toast.tsx +38 -28
- package/components/Toast/toast.module.scss +40 -0
- package/components/Toast/toast.ts +8 -6
- package/icons/moon.svg +3 -0
- package/icons/sun.svg +3 -0
- package/icons.d.ts +11 -0
- package/icons.js +9 -0
- package/index.js +3 -0
- package/package.json +5 -1
- package/react.d.ts +4 -0
- package/react.js +4 -0
- package/scss/config/color-palette.scss +23 -0
- package/scss/config/css-values.scss +44 -0
- package/scss/config/layout.scss +41 -0
- package/scss/config/mixins.scss +395 -9
- package/scss/config/typography.scss +66 -0
- package/scss/config.scss +6 -1
- package/scss/global/elements.scss +22 -2
- package/scss/global/scrollbar.scss +24 -0
- package/scss/global/theme.scss +140 -0
- package/scss/global/tooltip.scss +47 -39
- package/scss/global/utility.scss +33 -4
- package/scss/global.scss +2 -1
- package/scss/resets.scss +64 -11
- package/scss/setup.scss +25 -31
- package/svelte.d.ts +16 -12
- package/svelte.js +4 -0
- package/utils/classNames.ts +4 -0
- package/utils/cookies.ts +28 -0
- package/utils/event.ts +17 -0
- package/utils/toast.ts +15 -11
- package/components/Accordion/accordion.scss +0 -63
- package/components/Alert/alert.scss +0 -53
- package/components/Badge/badge.scss +0 -85
- package/components/Button/button.scss +0 -91
- package/components/Card/card.scss +0 -37
- package/components/Checkbox/checkbox.scss +0 -85
- package/components/Input/input.scss +0 -83
- package/components/Progress/progress.scss +0 -66
- package/components/Radio/radio.scss +0 -92
- package/components/Rating/rating.scss +0 -37
- package/components/Switch/switch.scss +0 -84
- package/components/Tabs/tabs.scss +0 -134
- package/components/TimelineItem/timelineitem.scss +0 -31
- package/components/Toast/toast.scss +0 -43
|
@@ -1,21 +1,32 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { ToastProps } from './toast'
|
|
3
|
-
import Alert from '../Alert/Alert.svelte'
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { ToastProps } from './toast'
|
|
3
|
+
import Alert from '../Alert/Alert.svelte'
|
|
4
|
+
|
|
5
|
+
import styles from './toast.module.scss'
|
|
6
|
+
import { classNames } from '../../utils/classNames'
|
|
7
|
+
|
|
8
|
+
export let position: ToastProps['position'] = null
|
|
9
|
+
export let className: ToastProps['className'] = ''
|
|
10
|
+
|
|
11
|
+
const classes = classNames([
|
|
12
|
+
styles.toast,
|
|
13
|
+
className
|
|
14
|
+
])
|
|
15
|
+
|
|
16
|
+
const additionalProps = {
|
|
17
|
+
...(position && { 'data-position': position }),
|
|
18
|
+
titleProps: {
|
|
19
|
+
'data-id': 'title'
|
|
20
|
+
},
|
|
21
|
+
bodyProps: {
|
|
22
|
+
'data-id': 'body'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<Alert {...$$restProps} className={classes} {...additionalProps}>
|
|
28
|
+
{#if $$slots.icon}
|
|
29
|
+
<slot name="icon" />
|
|
30
|
+
{/if}
|
|
31
|
+
<slot />
|
|
32
|
+
</Alert>
|
|
@@ -1,28 +1,38 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import type { ReactToastProps } from './toast'
|
|
3
|
-
import Alert from '../Alert/Alert.tsx'
|
|
4
|
-
|
|
5
|
-
import './toast.scss'
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
className
|
|
18
|
-
]
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import type { ReactToastProps } from './toast'
|
|
3
|
+
import Alert from '../Alert/Alert.tsx'
|
|
4
|
+
|
|
5
|
+
import styles from './toast.module.scss'
|
|
6
|
+
import { classNames } from '../../utils/classNames'
|
|
7
|
+
|
|
8
|
+
const Toast = ({
|
|
9
|
+
icon,
|
|
10
|
+
position,
|
|
11
|
+
className,
|
|
12
|
+
children,
|
|
13
|
+
...rest
|
|
14
|
+
}: ReactToastProps) => {
|
|
15
|
+
const classes = classNames([
|
|
16
|
+
styles.toast,
|
|
17
|
+
className
|
|
18
|
+
])
|
|
19
|
+
|
|
20
|
+
const additionalProps = {
|
|
21
|
+
...(position && { 'data-position': position }),
|
|
22
|
+
titleProps: {
|
|
23
|
+
'data-id': 'title'
|
|
24
|
+
},
|
|
25
|
+
bodyProps: {
|
|
26
|
+
'data-id': 'body'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<Alert {...rest} className={classes} icon={icon} {...additionalProps}>
|
|
32
|
+
{children}
|
|
33
|
+
</Alert>
|
|
34
|
+
|
|
35
|
+
)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export default Toast
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@use '../../scss/config.scss' as *;
|
|
2
|
+
|
|
3
|
+
.toast {
|
|
4
|
+
@include background(primary-70);
|
|
5
|
+
@include position(fixed, r20px, b20px);
|
|
6
|
+
@include layer(header);
|
|
7
|
+
|
|
8
|
+
transform: translateY(calc(100% + 25px));
|
|
9
|
+
|
|
10
|
+
&[data-show] {
|
|
11
|
+
@include transition(transform);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&[data-show="true"] {
|
|
15
|
+
transform: translateY(0);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&[data-position="bottom-left"],
|
|
19
|
+
&[data-position="top-left"] {
|
|
20
|
+
@include position(l20px);
|
|
21
|
+
right: auto;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&[data-position="top-left"],
|
|
25
|
+
&[data-position="top-right"],
|
|
26
|
+
&[data-position="top-full"] {
|
|
27
|
+
@include position(t20px);
|
|
28
|
+
bottom: auto;
|
|
29
|
+
transform: translateY(calc(-100% - 25px));
|
|
30
|
+
|
|
31
|
+
&[data-show="true"] {
|
|
32
|
+
transform: translateY(0);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&[data-position="bottom-full"],
|
|
37
|
+
&[data-position="top-full"] {
|
|
38
|
+
@include position(l20px);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import type { AlertProps } from '../Alert/alert'
|
|
1
|
+
import type { AlertProps, ReactAlertProps } from '../Alert/alert'
|
|
2
2
|
|
|
3
3
|
export type ToastProps = {
|
|
4
|
-
position?:
|
|
4
|
+
position?: 'bottom-left'
|
|
5
|
+
| 'top-left'
|
|
6
|
+
| 'top-right'
|
|
7
|
+
| 'bottom-full'
|
|
8
|
+
| 'top-full'
|
|
9
|
+
| null
|
|
5
10
|
[key: string]: any
|
|
6
11
|
} & AlertProps
|
|
7
12
|
|
|
8
|
-
export type ReactToastProps =
|
|
9
|
-
children: React.ReactNode
|
|
10
|
-
icon?: string
|
|
11
|
-
} & ToastProps
|
|
13
|
+
export type ReactToastProps = ToastProps & ReactAlertProps
|
package/icons/moon.svg
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M23 12.9878C22.3889 19.5232 15.8512 24.1592 9.42483 22.745C-2.76068 20.0671 -1.26102 2.11102 10.9147 1C5.14829 8.69528 15.1998 18.6762 23 12.9878Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
</svg>
|
package/icons/sun.svg
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M1 12H4.66667M3.44444 3.44444L6.03678 6.03678M20.5556 3.44444L17.9632 6.03678M3.44444 20.5556L6.03678 17.9632M20.5556 20.5556L17.9632 17.9632M12 1V4.66667M12 23V19.3333M19.3333 12H23M15.6667 12C15.6667 12.9725 15.2804 13.9051 14.5927 14.5927C13.9051 15.2804 12.9725 15.6667 12 15.6667C11.0275 15.6667 10.0949 15.2804 9.40727 14.5927C8.71964 13.9051 8.33333 12.9725 8.33333 12C8.33333 11.0275 8.71964 10.0949 9.40727 9.40727C10.0949 8.71964 11.0275 8.33333 12 8.33333C12.9725 8.33333 13.9051 8.71964 14.5927 9.40727C15.2804 10.0949 15.6667 11.0275 15.6667 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
</svg>
|
package/icons.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare module 'webcoreui/icons' {
|
|
2
|
+
export const alert: string
|
|
3
|
+
export const arrowDown: string
|
|
4
|
+
export const check: string
|
|
5
|
+
export const circleCheck: string
|
|
6
|
+
export const github: string
|
|
7
|
+
export const info: string
|
|
8
|
+
export const moon: string
|
|
9
|
+
export const sun: string
|
|
10
|
+
export const warning: string
|
|
11
|
+
}
|
package/icons.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as alert } from './icons/alert.svg?raw'
|
|
2
|
+
export { default as arrowDown } from './icons/arrow-down.svg?raw'
|
|
3
|
+
export { default as check } from './icons/check.svg?raw'
|
|
4
|
+
export { default as circleCheck } from './icons/circle-check.svg?raw'
|
|
5
|
+
export { default as github } from './icons/github.svg?raw'
|
|
6
|
+
export { default as info } from './icons/info.svg?raw'
|
|
7
|
+
export { default as moon } from './icons/moon.svg?raw'
|
|
8
|
+
export { default as sun } from './icons/sun.svg?raw'
|
|
9
|
+
export { default as warning } from './icons/warning.svg?raw'
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webcoreui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "astro dev",
|
|
7
7
|
"build": "astro check && astro build",
|
|
@@ -21,10 +21,12 @@
|
|
|
21
21
|
"typescript": "5.4.5"
|
|
22
22
|
},
|
|
23
23
|
"exports": {
|
|
24
|
+
".": "./index.js",
|
|
24
25
|
"./astro": "./astro.js",
|
|
25
26
|
"./svelte": "./svelte.js",
|
|
26
27
|
"./react": "./react.js",
|
|
27
28
|
"./styles": "./scss/index.scss",
|
|
29
|
+
"./icons": "./icons.js",
|
|
28
30
|
"./config": "./scss/config.scss"
|
|
29
31
|
},
|
|
30
32
|
"files": [
|
|
@@ -34,6 +36,8 @@
|
|
|
34
36
|
"utils",
|
|
35
37
|
"astro.d.ts",
|
|
36
38
|
"astro.js",
|
|
39
|
+
"icons.d.ts",
|
|
40
|
+
"icons.js",
|
|
37
41
|
"svelte.d.ts",
|
|
38
42
|
"svelte.js",
|
|
39
43
|
"react.d.ts",
|
package/react.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type { ReactCheckboxProps } from './components/Checkbox/checkbox'
|
|
|
9
9
|
import type { ReactConditionalWrapperProps } from './components/ConditionalWrapper/conditionalwrapper'
|
|
10
10
|
import type { IconProps } from './components/Icon/icon'
|
|
11
11
|
import type { ReactInputProps } from './components/Input/input'
|
|
12
|
+
import type { ReactMenuProps } from './components/Menu/menu'
|
|
12
13
|
import type { ProgressProps } from './components/Progress/progress'
|
|
13
14
|
import type { ReactRadioProps } from './components/Radio/radio'
|
|
14
15
|
import type { RatingProps } from './components/Rating/rating'
|
|
@@ -16,6 +17,7 @@ import type { SpinnerProps } from './components/Spinner/spinner'
|
|
|
16
17
|
import type { ReactSwitchProps } from './components/Switch/switch'
|
|
17
18
|
import type { TableProps } from './components/Table/table'
|
|
18
19
|
import type { ReactTabsProps } from './components/Tabs/tabs'
|
|
20
|
+
import type { ReactThemeSwitcherProps } from './components/ThemeSwitcher/themeswitcher'
|
|
19
21
|
import type { ReactTimelineProps } from './components/Timeline/timeline'
|
|
20
22
|
import type { TimelineItemProps } from './components/TimelineItem/timelineitem'
|
|
21
23
|
import type { ReactToastProps } from './components/Toast/toast'
|
|
@@ -31,6 +33,7 @@ declare module 'webcoreui/react' {
|
|
|
31
33
|
export const ConditionalWrapper: FC<ReactConditionalWrapperProps>
|
|
32
34
|
export const Icon: FC<IconProps>
|
|
33
35
|
export const Input: FC<ReactInputProps>
|
|
36
|
+
export const Menu: FC<ReactMenuProps>
|
|
34
37
|
export const Progress: FC<ProgressProps>
|
|
35
38
|
export const Radio: FC<ReactRadioProps>
|
|
36
39
|
export const Rating: FC<RatingProps>
|
|
@@ -38,6 +41,7 @@ declare module 'webcoreui/react' {
|
|
|
38
41
|
export const Switch: FC<ReactSwitchProps>
|
|
39
42
|
export const Table: FC<TableProps>
|
|
40
43
|
export const Tabs: FC<ReactTabsProps>
|
|
44
|
+
export const ThemeSwitcher: FC<ReactThemeSwitcherProps>
|
|
41
45
|
export const Timeline: FC<ReactTimelineProps>
|
|
42
46
|
export const TimelineItem: FC<TimelineItemProps>
|
|
43
47
|
export const Toast: FC<ReactToastProps>
|
package/react.js
CHANGED
|
@@ -8,6 +8,7 @@ import CheckboxComponent from './components/Checkbox/Checkbox.tsx'
|
|
|
8
8
|
import ConditionalWrapperComponent from './components/ConditionalWrapper/ConditionalWrapper.tsx'
|
|
9
9
|
import IconComponent from './components/Icon/Icon.tsx'
|
|
10
10
|
import InputComponent from './components/Input/Input.tsx'
|
|
11
|
+
import MenuComponent from './components/Menu/Menu.tsx'
|
|
11
12
|
import ProgressComponent from './components/Progress/Progress.tsx'
|
|
12
13
|
import RadioComponent from './components/Radio/Radio.tsx'
|
|
13
14
|
import RatingComponent from './components/Rating/Rating.tsx'
|
|
@@ -15,6 +16,7 @@ import SpinnerComponent from './components/Spinner/Spinner.tsx'
|
|
|
15
16
|
import SwitchComponent from './components/Switch/Switch.tsx'
|
|
16
17
|
import TableComponent from './components/Table/Table.tsx'
|
|
17
18
|
import TabsComponent from './components/Tabs/Tabs.tsx'
|
|
19
|
+
import ThemeSwitcherComponent from './components/ThemeSwitcher/ThemeSwitcher.tsx'
|
|
18
20
|
import TimelineComponent from './components/Timeline/Timeline.tsx'
|
|
19
21
|
import TimelineItemComponent from './components/TimelineItem/TimelineItem.tsx'
|
|
20
22
|
import ToastComponent from './components/Toast/Toast.tsx'
|
|
@@ -29,6 +31,7 @@ export const Checkbox = CheckboxComponent
|
|
|
29
31
|
export const ConditionalWrapper = ConditionalWrapperComponent
|
|
30
32
|
export const Icon = IconComponent
|
|
31
33
|
export const Input = InputComponent
|
|
34
|
+
export const Menu = MenuComponent
|
|
32
35
|
export const Progress = ProgressComponent
|
|
33
36
|
export const Radio = RadioComponent
|
|
34
37
|
export const Rating = RatingComponent
|
|
@@ -36,6 +39,7 @@ export const Spinner = SpinnerComponent
|
|
|
36
39
|
export const Switch = SwitchComponent
|
|
37
40
|
export const Table = TableComponent
|
|
38
41
|
export const Tabs = TabsComponent
|
|
42
|
+
export const ThemeSwitcher = ThemeSwitcherComponent
|
|
39
43
|
export const Timeline = TimelineComponent
|
|
40
44
|
export const TimelineItem = TimelineItemComponent
|
|
41
45
|
export const Toast = ToastComponent
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
$colorPalette: (
|
|
2
|
+
'primary': var(--w-color-primary),
|
|
3
|
+
'primary-10': var(--w-color-primary-10),
|
|
4
|
+
'primary-20': var(--w-color-primary-20),
|
|
5
|
+
'primary-30': var(--w-color-primary-30),
|
|
6
|
+
'primary-40': var(--w-color-primary-40),
|
|
7
|
+
'primary-50': var(--w-color-primary-50),
|
|
8
|
+
'primary-60': var(--w-color-primary-60),
|
|
9
|
+
'primary-70': var(--w-color-primary-70),
|
|
10
|
+
|
|
11
|
+
'info': var(--w-color-info),
|
|
12
|
+
'info-accent': var(--w-color-info-accent),
|
|
13
|
+
'info-fg': var(--w-color-info-fg),
|
|
14
|
+
'success': var(--w-color-success),
|
|
15
|
+
'success-accent': var(--w-color-success-accent),
|
|
16
|
+
'success-fg': var(--w-color-success-fg),
|
|
17
|
+
'warning': var(--w-color-warning),
|
|
18
|
+
'warning-accent': var(--w-color-warning-accent),
|
|
19
|
+
'warning-fg': var(--w-color-warning-fg),
|
|
20
|
+
'alert': var(--w-color-alert),
|
|
21
|
+
'alert-accent': var(--w-color-alert-accent),
|
|
22
|
+
'alert-fg': var(--w-color-alert-fg),
|
|
23
|
+
) !default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
$overflowValues: auto,
|
|
2
|
+
hidden,
|
|
3
|
+
overlay,
|
|
4
|
+
scroll,
|
|
5
|
+
visible !default;
|
|
6
|
+
|
|
7
|
+
$displayValues: inline,
|
|
8
|
+
block,
|
|
9
|
+
contents,
|
|
10
|
+
flex,
|
|
11
|
+
flow,
|
|
12
|
+
flow-root,
|
|
13
|
+
grid,
|
|
14
|
+
inline-block,
|
|
15
|
+
inline-flex,
|
|
16
|
+
inline-grid,
|
|
17
|
+
inline-table,
|
|
18
|
+
list-item,
|
|
19
|
+
run-in,
|
|
20
|
+
table,
|
|
21
|
+
table-caption,
|
|
22
|
+
table-column-group,
|
|
23
|
+
table-header-group,
|
|
24
|
+
table-footer-group,
|
|
25
|
+
table-row-group,
|
|
26
|
+
table-cell,
|
|
27
|
+
table-column,
|
|
28
|
+
table-row,
|
|
29
|
+
none !default;
|
|
30
|
+
|
|
31
|
+
$positionValues: absolute,
|
|
32
|
+
fixed,
|
|
33
|
+
relative,
|
|
34
|
+
static,
|
|
35
|
+
sticky !default;
|
|
36
|
+
|
|
37
|
+
$flexDirectionValues: row
|
|
38
|
+
column
|
|
39
|
+
row-reverse
|
|
40
|
+
column-reverse !default;
|
|
41
|
+
|
|
42
|
+
$flexWrapValues: wrap
|
|
43
|
+
nowrap
|
|
44
|
+
wrap-reverse !default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
$breakpoints: (
|
|
2
|
+
'xs': 600px,
|
|
3
|
+
'sm': 800px,
|
|
4
|
+
'md': 1024px,
|
|
5
|
+
'lg': 1200px
|
|
6
|
+
) !default;
|
|
7
|
+
|
|
8
|
+
$layers: (
|
|
9
|
+
'bg': -1,
|
|
10
|
+
'default': 0,
|
|
11
|
+
'fg': 1,
|
|
12
|
+
'overlay': 2,
|
|
13
|
+
'popup': 3,
|
|
14
|
+
'top': 98,
|
|
15
|
+
'header': 99,
|
|
16
|
+
'modal': 100
|
|
17
|
+
) !default;
|
|
18
|
+
|
|
19
|
+
$radius: (
|
|
20
|
+
'none': 0,
|
|
21
|
+
'sm': var(--w-sm-radius),
|
|
22
|
+
'md': var(--w-md-radius),
|
|
23
|
+
'lg': var(--w-lg-radius),
|
|
24
|
+
'xl': var(--w-xl-radius),
|
|
25
|
+
'max': 100%
|
|
26
|
+
) !default;
|
|
27
|
+
|
|
28
|
+
$spacing: (
|
|
29
|
+
'none': 0,
|
|
30
|
+
'xxs': 2px,
|
|
31
|
+
'xs': 5px,
|
|
32
|
+
'sm': 10px,
|
|
33
|
+
'md': 15px,
|
|
34
|
+
'default': 20px,
|
|
35
|
+
'lg': 25px,
|
|
36
|
+
'xl': 30px,
|
|
37
|
+
'2xl': 35px,
|
|
38
|
+
'3xl': 40px,
|
|
39
|
+
'4xl': 45px,
|
|
40
|
+
'5xl': 50px
|
|
41
|
+
) !default;
|