do-ui-design-system 1.0.10 → 1.0.12
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/dist/atoms/Badge/Badge.svelte +47 -29
- package/dist/atoms/Badge/Badge.svelte.d.ts +26 -40
- package/dist/atoms/Badge/Badge.svelte.d.ts.map +1 -1
- package/dist/atoms/Badge/iProps.d.ts +8 -3
- package/dist/atoms/Badge/iProps.d.ts.map +1 -1
- package/dist/atoms/Button/Button.svelte +84 -31
- package/dist/atoms/Button/Button.svelte.d.ts +37 -46
- package/dist/atoms/Button/Button.svelte.d.ts.map +1 -1
- package/dist/atoms/Button/iProps.d.ts +12 -6
- package/dist/atoms/Button/iProps.d.ts.map +1 -1
- package/dist/atoms/Card/Card.svelte +33 -0
- package/dist/atoms/Card/Card.svelte.d.ts +25 -0
- package/dist/atoms/Card/Card.svelte.d.ts.map +1 -0
- package/dist/atoms/Card/iProps.d.ts +7 -0
- package/dist/atoms/Card/iProps.d.ts.map +1 -0
- package/dist/atoms/Chip/Chip.svelte +71 -0
- package/dist/atoms/Chip/Chip.svelte.d.ts +35 -0
- package/dist/atoms/Chip/Chip.svelte.d.ts.map +1 -0
- package/dist/atoms/Chip/iProps.d.ts +12 -0
- package/dist/atoms/Chip/iProps.d.ts.map +1 -0
- package/dist/atoms/Chip/iProps.js +1 -0
- package/dist/atoms/Icons/Icon.svelte +44 -14
- package/dist/atoms/Icons/Icon.svelte.d.ts +29 -32
- package/dist/atoms/Icons/Icon.svelte.d.ts.map +1 -1
- package/dist/atoms/Icons/iProps.d.ts +9 -3
- package/dist/atoms/Icons/iProps.d.ts.map +1 -1
- package/dist/atoms/Icons/iProps.js +1 -1
- package/dist/atoms/Icons/icomoon-1.png +0 -0
- package/dist/atoms/Icons/icomoon-2.png +0 -0
- package/dist/atoms/Icons/icomoon-3.png +0 -0
- package/dist/atoms/index.d.ts +6 -5
- package/dist/atoms/index.d.ts.map +1 -1
- package/dist/atoms/index.js +6 -5
- package/dist/do-theme/badge.css +11 -42
- package/dist/do-theme/button.css +13 -0
- package/dist/do-theme/card.css +18 -0
- package/dist/do-theme/chip.css +67 -0
- package/dist/do-theme/font.css +6 -5
- package/dist/do-theme/icomoon/backup-icons.json +1 -1
- package/dist/do-theme/icomoon/fonts/icomoon.eot +0 -0
- package/dist/do-theme/icomoon/fonts/icomoon.svg +1 -0
- package/dist/do-theme/icomoon/fonts/icomoon.ttf +0 -0
- package/dist/do-theme/icomoon/fonts/icomoon.woff +0 -0
- package/dist/do-theme/icomoon/iconList.d.ts +1 -1
- package/dist/do-theme/icomoon/iconList.d.ts.map +1 -1
- package/dist/do-theme/icomoon/iconList.js +1 -0
- package/dist/do-theme/icomoon/icons.css +8 -5
- package/dist/do-theme/index.css +6 -2
- package/dist/do-theme/var-dark.css +49 -25
- package/dist/do-theme/var-light.css +49 -26
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/molecules/ActionChip/ActionChip.svelte.d.ts +1 -1
- package/dist/molecules/IconButton/IconButton.svelte.d.ts +1 -1
- package/dist/molecules/index.d.ts +1 -2
- package/dist/molecules/index.d.ts.map +1 -1
- package/dist/molecules/index.js +1 -2
- package/package.json +5 -2
- package/dist/atoms/Counter/Counter.svelte +0 -15
- package/dist/atoms/Counter/Counter.svelte.d.ts +0 -29
- package/dist/atoms/Counter/Counter.svelte.d.ts.map +0 -1
- package/dist/atoms/Counter/iProps.d.ts +0 -4
- package/dist/atoms/Counter/iProps.d.ts.map +0 -1
- /package/dist/atoms/{Counter → Card}/iProps.js +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { iProps } from './iProps.ts';
|
|
3
|
+
type $$ComponentProps = {
|
|
4
|
+
label?: iProps['label'];
|
|
5
|
+
ariaLabel?: iProps['ariaLabel'];
|
|
6
|
+
role?: iProps['role'];
|
|
7
|
+
tabIndex?: iProps['tabIndex'];
|
|
8
|
+
id?: iProps['id'];
|
|
9
|
+
maxLength?: iProps['maxLength'];
|
|
10
|
+
variant?: iProps['variant'];
|
|
11
|
+
customClass?: iProps['customClass'];
|
|
12
|
+
dataTestId?: iProps['dataTestId'];
|
|
13
|
+
children?: Snippet;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Chip
|
|
17
|
+
* ```Svelte
|
|
18
|
+
* <Chip label={label} aria-label={ariaLabel} role={role} tabindex={tabIndex} id={id} maxLength={maxLength} variant={variant} customClass={customClass} data-testid={dataTestId}>
|
|
19
|
+
* {@render children()} // render custom content inside Chip tags
|
|
20
|
+
* </Chip>
|
|
21
|
+
* ```
|
|
22
|
+
* - `label?`: string
|
|
23
|
+
* - `ariaLabel?`: string
|
|
24
|
+
* - `role?`: 'status' | 'note' | 'button'
|
|
25
|
+
* - `tabIndex?`: -1 | 0 | number
|
|
26
|
+
* - `id?`: string
|
|
27
|
+
* - `maxLength?`: number | null - max length of the text, if exceeded it will be truncated and "…" will be added
|
|
28
|
+
* - `variant?`: 'do-chip-primary' | 'do-chip-secondary' | 'do-chip-accent'
|
|
29
|
+
* - `customClass?`: string - additional custom class for styling
|
|
30
|
+
* - `dataTestId?`: string
|
|
31
|
+
*/
|
|
32
|
+
declare const Chip: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
33
|
+
type Chip = ReturnType<typeof Chip>;
|
|
34
|
+
export default Chip;
|
|
35
|
+
//# sourceMappingURL=Chip.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/atoms/Chip/Chip.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,gBAAgB,GAAI;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAwCH;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,IAAI,sDAAwC,CAAC;AACnD,KAAK,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AACpC,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface iProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
ariaLabel?: string;
|
|
4
|
+
role?: 'status' | 'note' | 'button';
|
|
5
|
+
tabIndex?: -1 | 0 | number;
|
|
6
|
+
id?: string;
|
|
7
|
+
maxLength?: number | null | undefined;
|
|
8
|
+
variant?: 'do-chip-primary' | 'do-chip-secondary' | 'do-chip-accent';
|
|
9
|
+
customClass?: string;
|
|
10
|
+
dataTestId?: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=iProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iProps.d.ts","sourceRoot":"","sources":["../../../src/lib/atoms/Chip/iProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;IACpC,QAAQ,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,OAAO,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,GAAG,gBAAgB,CAAC;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,27 +1,57 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
2
|
+
import type { iProps } from './iProps.ts';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
let {
|
|
5
|
+
name = 'icon-contrast',
|
|
6
|
+
color = 'inherit',
|
|
7
|
+
size = 'inherit',
|
|
8
|
+
ariaHidden,
|
|
9
|
+
role,
|
|
10
|
+
ariaLabel,
|
|
11
|
+
title,
|
|
12
|
+
tabIndex,
|
|
13
|
+
id,
|
|
14
|
+
customStyles,
|
|
15
|
+
customClass
|
|
16
|
+
}: {
|
|
17
|
+
name: iProps['name'];
|
|
18
|
+
color?: iProps['color'];
|
|
19
|
+
size?: iProps['size'];
|
|
20
|
+
ariaHidden?: iProps['ariaHidden'];
|
|
21
|
+
role?: iProps['role'];
|
|
22
|
+
ariaLabel?: iProps['ariaLabel'];
|
|
23
|
+
title?: iProps['title'];
|
|
24
|
+
tabIndex?: iProps['tabIndex'];
|
|
25
|
+
id?: iProps['id'];
|
|
26
|
+
customStyles?: iProps['customStyles'];
|
|
27
|
+
customClass?: iProps['customClass'];
|
|
28
|
+
} = $props();
|
|
29
|
+
</script>
|
|
9
30
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<!-- @component
|
|
31
|
+
<!-- @component
|
|
13
32
|
```Svelte
|
|
14
33
|
<Icon name={icon} color?={color} size?={size}/>
|
|
15
34
|
```
|
|
16
35
|
- `name`: one of the .icon classes suggested by the component.
|
|
17
36
|
- `color?`: Any color style (ex. #000).
|
|
18
37
|
- `size?`: Any size style (ex. 1rem).
|
|
38
|
+
- `ariaHidden?`: boolean
|
|
39
|
+
- `role?`: 'img' | 'presentation' | 'none'
|
|
40
|
+
- `ariaLabel?`: string
|
|
41
|
+
- `title?`: string
|
|
42
|
+
- `tabIndex?`: -1 | 0 | number
|
|
43
|
+
- `id?`: string
|
|
19
44
|
- `customClass?`: string
|
|
20
45
|
- `customStyles?`: any CSS style
|
|
21
46
|
-->
|
|
22
47
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
48
|
+
<i
|
|
49
|
+
aria-hidden={ariaHidden}
|
|
50
|
+
{role}
|
|
51
|
+
aria-label={ariaLabel}
|
|
52
|
+
{title}
|
|
53
|
+
{...tabIndex === 0 ? { tabindex: 0 } : {}}
|
|
54
|
+
{id}
|
|
55
|
+
class={[`${name}`, `${customClass}`].join(' ')}
|
|
56
|
+
style={[`color:${color};font-size:${size};line-height:1;`, `${customStyles}`].join(' ')}
|
|
57
|
+
></i>
|
|
@@ -1,37 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
1
|
+
import type { iProps } from './iProps.ts';
|
|
2
|
+
type $$ComponentProps = {
|
|
3
|
+
name: iProps['name'];
|
|
4
|
+
color?: iProps['color'];
|
|
5
|
+
size?: iProps['size'];
|
|
6
|
+
ariaHidden?: iProps['ariaHidden'];
|
|
7
|
+
role?: iProps['role'];
|
|
8
|
+
ariaLabel?: iProps['ariaLabel'];
|
|
9
|
+
title?: iProps['title'];
|
|
10
|
+
tabIndex?: iProps['tabIndex'];
|
|
11
|
+
id?: iProps['id'];
|
|
12
|
+
customStyles?: iProps['customStyles'];
|
|
13
|
+
customClass?: iProps['customClass'];
|
|
14
|
+
};
|
|
15
15
|
/**
|
|
16
16
|
* ```Svelte
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* - `
|
|
23
|
-
* - `
|
|
17
|
+
* <Icon name={icon} color?={color} size?={size}/>
|
|
18
|
+
* ```
|
|
19
|
+
* - `name`: one of the .icon classes suggested by the component.
|
|
20
|
+
* - `color?`: Any color style (ex. #000).
|
|
21
|
+
* - `size?`: Any size style (ex. 1rem).
|
|
22
|
+
* - `ariaHidden?`: boolean
|
|
23
|
+
* - `role?`: 'img' | 'presentation' | 'none'
|
|
24
|
+
* - `ariaLabel?`: string
|
|
25
|
+
* - `title?`: string
|
|
26
|
+
* - `tabIndex?`: -1 | 0 | number
|
|
27
|
+
* - `id?`: string
|
|
28
|
+
* - `customClass?`: string
|
|
29
|
+
* - `customStyles?`: any CSS style
|
|
24
30
|
*/
|
|
25
|
-
declare const Icon:
|
|
26
|
-
|
|
27
|
-
name?: iProps["name"] | undefined;
|
|
28
|
-
color?: string | undefined;
|
|
29
|
-
size?: string | undefined;
|
|
30
|
-
customStyles?: string | undefined;
|
|
31
|
-
customClass?: string | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
[evt: string]: CustomEvent<any>;
|
|
34
|
-
}, {}, {}, string>;
|
|
35
|
-
type Icon = InstanceType<typeof Icon>;
|
|
31
|
+
declare const Icon: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
32
|
+
type Icon = ReturnType<typeof Icon>;
|
|
36
33
|
export default Icon;
|
|
37
34
|
//# sourceMappingURL=Icon.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/atoms/Icons/Icon.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Icon.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/atoms/Icons/Icon.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,gBAAgB,GAAI;IACxB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;CACpC,CAAC;AAyBH;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,IAAI,sDAAwC,CAAC;AACnD,KAAK,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AACpC,eAAe,IAAI,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import type { HTMLLabelAttributes } from
|
|
2
|
-
import { type IconNames } from
|
|
1
|
+
import type { HTMLLabelAttributes } from 'svelte/elements';
|
|
2
|
+
import { type IconNames } from './../../do-theme/icomoon/iconList.ts';
|
|
3
3
|
export interface iProps extends HTMLLabelAttributes {
|
|
4
|
-
name: IconNames |
|
|
4
|
+
name: IconNames | '';
|
|
5
5
|
color?: string;
|
|
6
6
|
size?: string;
|
|
7
|
+
ariaHidden?: boolean;
|
|
8
|
+
role?: 'img' | 'presentation' | 'none';
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
tabIndex?: -1 | 0 | number;
|
|
12
|
+
id?: string;
|
|
7
13
|
customClass?: string;
|
|
8
14
|
customStyles?: string;
|
|
9
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iProps.d.ts","sourceRoot":"","sources":["../../../src/lib/atoms/Icons/iProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,MAAM,WAAW,MAAO,SAAQ,mBAAmB;
|
|
1
|
+
{"version":3,"file":"iProps.d.ts","sourceRoot":"","sources":["../../../src/lib/atoms/Icons/iProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,MAAM,WAAW,MAAO,SAAQ,mBAAmB;IAClD,IAAI,EAAE,SAAS,GAAG,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,GAAG,cAAc,GAAG,MAAM,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {} from
|
|
1
|
+
import {} from './../../do-theme/icomoon/iconList.ts';
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/atoms/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import Badge from './Badge/Badge.svelte';
|
|
2
|
+
import Button from './Button/Button.svelte';
|
|
3
|
+
import Card from './Card/Card.svelte';
|
|
4
|
+
import Chip from './Chip/Chip.svelte';
|
|
5
|
+
import Icon from './Icons/Icon.svelte';
|
|
6
|
+
export { Card, Chip, Badge, Button, Icon };
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/atoms/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAC5C,OAAO,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/atoms/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAC5C,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,IAAI,MAAM,qBAAqB,CAAC;AAEvC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC"}
|
package/dist/atoms/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import Badge from './Badge/Badge.svelte';
|
|
2
|
+
import Button from './Button/Button.svelte';
|
|
3
|
+
import Card from './Card/Card.svelte';
|
|
4
|
+
import Chip from './Chip/Chip.svelte';
|
|
5
|
+
import Icon from './Icons/Icon.svelte';
|
|
6
|
+
export { Card, Chip, Badge, Button, Icon };
|
package/dist/do-theme/badge.css
CHANGED
|
@@ -1,54 +1,23 @@
|
|
|
1
|
-
.do-badge-wrapper {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: inline-block;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
.do-badge {
|
|
7
2
|
display: inline-flex;
|
|
8
|
-
padding: 6px
|
|
3
|
+
padding: 2px 6px;
|
|
4
|
+
flex-direction: column;
|
|
9
5
|
justify-content: center;
|
|
10
6
|
align-items: center;
|
|
11
|
-
border:
|
|
12
|
-
gap: 4px;
|
|
13
|
-
border-radius: 24px;
|
|
7
|
+
border-radius: 48px;
|
|
14
8
|
font-size: 12px;
|
|
15
9
|
font-style: normal;
|
|
16
|
-
font-weight:
|
|
10
|
+
font-weight: 400;
|
|
17
11
|
line-height: normal;
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.do-badge-tooltip {
|
|
22
|
-
position: absolute;
|
|
23
|
-
top: 100%;
|
|
24
|
-
left: 0;
|
|
25
|
-
background: var(--do-badge-tooltip-bg);
|
|
26
|
-
color: var(--do-badge-tooltip-content);
|
|
27
|
-
font-size: 12px;
|
|
28
|
-
padding: 4px 8px;
|
|
29
|
-
border-radius: 4px;
|
|
30
|
-
white-space: nowrap;
|
|
31
|
-
margin-top: 4px;
|
|
32
|
-
opacity: 0;
|
|
33
|
-
pointer-events: none;
|
|
34
|
-
transition: opacity 0.2s ease-in-out;
|
|
35
|
-
z-index: 10;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.do-badge-wrapper:hover .do-badge-tooltip {
|
|
39
|
-
opacity: 1;
|
|
40
|
-
pointer-events: auto;
|
|
12
|
+
align-self: stretch;
|
|
41
13
|
}
|
|
42
14
|
|
|
43
15
|
.do-badge-primary {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
background-color: var(--do-badge-primary-bg);
|
|
16
|
+
color: var(--do-badge-primary-content);
|
|
17
|
+
background-color: var(--do-badge-primary-bg);
|
|
47
18
|
}
|
|
48
19
|
|
|
49
|
-
.do-badge-
|
|
50
|
-
|
|
51
|
-
color: var(--do-badge-
|
|
52
|
-
|
|
53
|
-
background-color: var(--do-badge-primary-hover-bg);
|
|
54
|
-
}
|
|
20
|
+
.do-badge-accent {
|
|
21
|
+
color: var(--do-badge-accent-content);
|
|
22
|
+
background-color: var(--do-badge-accent-bg);
|
|
23
|
+
}
|
package/dist/do-theme/button.css
CHANGED
|
@@ -151,6 +151,19 @@ background-color: var(--do-chip-bg);
|
|
|
151
151
|
background-color: var(--do-chip-bg-hover);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
.do-btn-ghost {
|
|
155
|
+
background-color: transparent;
|
|
156
|
+
border-color: none;
|
|
157
|
+
color: inherit;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.do-btn-ghost:hover {
|
|
161
|
+
background-color: transparent;
|
|
162
|
+
border-color: none;
|
|
163
|
+
backdrop-filter: blur(0.5rem);
|
|
164
|
+
color: #FFF8;
|
|
165
|
+
}
|
|
166
|
+
|
|
154
167
|
@keyframes rotation {
|
|
155
168
|
0% {
|
|
156
169
|
transform: rotate(0deg);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.do-card {
|
|
2
|
+
background-color: var(--do-card-primary-bg);
|
|
3
|
+
border-radius: 4px;
|
|
4
|
+
border: 1px solid var(--do-card-primary-border);
|
|
5
|
+
padding: 0.75rem;
|
|
6
|
+
box-shadow: 0 0 4px 0 rgba(255, 255, 255, 0.10);
|
|
7
|
+
color: var(--do-text-base);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.do-card-primary {
|
|
11
|
+
background-color: var(--do-card-primary-bg);
|
|
12
|
+
border: 1px solid var(--do-card-primary-border);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.do-card-secondary {
|
|
16
|
+
background-color: var(--do-card-secondary-bg);
|
|
17
|
+
border: 1px solid var(--do-card-secondary-border);
|
|
18
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.do-chip--wrapper {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.do-chip {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
padding: 6px 10px;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
border: 1px solid;
|
|
12
|
+
gap: 4px;
|
|
13
|
+
border-radius: 24px;
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
line-height: normal;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.do-chip__tooltip {
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 100%;
|
|
24
|
+
left: 0;
|
|
25
|
+
background: var(--do-chip-tooltip-bg);
|
|
26
|
+
color: var(--do-chip-tooltip-content);
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
padding: 4px 8px;
|
|
29
|
+
border-radius: 4px;
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
margin-top: 4px;
|
|
32
|
+
opacity: 0;
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
transition: opacity 0.2s ease-in-out;
|
|
35
|
+
z-index: 10;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.do-chip--wrapper:hover .do-chip__tooltip {
|
|
39
|
+
opacity: 1;
|
|
40
|
+
pointer-events: auto;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.do-chip-primary {
|
|
44
|
+
color: var(--do-chip-primary-content);
|
|
45
|
+
border: 1px solid var(--do-chip-primary-border);
|
|
46
|
+
background-color: var(--do-chip-primary-bg);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.do-chip-primary:hover,
|
|
50
|
+
.do-chip-primary:focus {
|
|
51
|
+
color: var(--do-chip-primary-hover-content);
|
|
52
|
+
border-color: var(--do-chip-primary-border);
|
|
53
|
+
background-color: var(--do-chip-primary-hover-bg);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.do-chip-accent {
|
|
57
|
+
color: var(--do-chip-accent-content);
|
|
58
|
+
border-color: var(--do-chip-accent-border);
|
|
59
|
+
background-color: var(--do-chip-accent-bg);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.do-chip-accent:hover,
|
|
63
|
+
.do-chip-accent:focus {
|
|
64
|
+
color: var(--do-chip-accent-hover-content);
|
|
65
|
+
border-color: var(--do-chip-accent-border);
|
|
66
|
+
background-color: var(--do-chip-accent-hover-bg);
|
|
67
|
+
}
|
package/dist/do-theme/font.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
|
|
2
|
-
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');
|
|
1
|
+
/* @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
|
|
2
|
+
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');
|
|
3
|
+
Estas fuentes están importadas en la cabecera de index para evitar errores de compilación*/
|
|
3
4
|
|
|
4
5
|
* {
|
|
5
6
|
font-family: 'Inter', sans-serif;
|
|
@@ -43,7 +44,7 @@ h6 {
|
|
|
43
44
|
font-size: 0.75rem;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
p {
|
|
47
|
+
p, li {
|
|
47
48
|
font-size: 0.75rem;
|
|
48
49
|
font-weight: 400;
|
|
49
50
|
}
|
|
@@ -91,7 +92,7 @@ h6.do-text-grotesk {
|
|
|
91
92
|
h6 {
|
|
92
93
|
font-size: 0.75rem;
|
|
93
94
|
}
|
|
94
|
-
p {
|
|
95
|
+
p, li {
|
|
95
96
|
font-size: 0.875rem;
|
|
96
97
|
}
|
|
97
98
|
|
|
@@ -139,7 +140,7 @@ h6.do-text-grotesk {
|
|
|
139
140
|
h6 {
|
|
140
141
|
font-size: 0.75rem;
|
|
141
142
|
}
|
|
142
|
-
p {
|
|
143
|
+
p, li {
|
|
143
144
|
font-size: 1rem;
|
|
144
145
|
}
|
|
145
146
|
|