@fluid-topics/ftds-notice 2.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 +19 -0
- package/build/define.d.ts +1 -0
- package/build/define.js +3 -0
- package/build/definitions.d.ts +5 -0
- package/build/definitions.js +4 -0
- package/build/ftds-notice.d.ts +20 -0
- package/build/ftds-notice.js +98 -0
- package/build/ftds-notice.light.js +709 -0
- package/build/ftds-notice.min.js +850 -0
- package/build/ftds-notice.properties.d.ts +17 -0
- package/build/ftds-notice.properties.js +8 -0
- package/build/ftds-notice.styles.d.ts +2 -0
- package/build/ftds-notice.styles.js +85 -0
- package/build/index.d.ts +4 -0
- package/build/index.js +4 -0
- package/package.json +31 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FtdsBaseProperties } from "@fluid-topics/ft-wc-utils";
|
|
2
|
+
import { FtdsIcons, FtdsIconVariants } from "@fluid-topics/ftds-icon";
|
|
3
|
+
/** @deprecated */
|
|
4
|
+
export declare enum FtdsNoticeVariant {
|
|
5
|
+
info = "info",
|
|
6
|
+
warning = "warning",
|
|
7
|
+
error = "error",
|
|
8
|
+
success = "success"
|
|
9
|
+
}
|
|
10
|
+
export interface FtdsNoticeProperties extends Omit<FtdsBaseProperties, "size"> {
|
|
11
|
+
collapsible: boolean;
|
|
12
|
+
dense: boolean;
|
|
13
|
+
icon?: FtdsIcons;
|
|
14
|
+
iconVariant?: FtdsIconVariants;
|
|
15
|
+
/** @deprecated */
|
|
16
|
+
variant?: FtdsNoticeVariant;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** @deprecated */
|
|
2
|
+
export var FtdsNoticeVariant;
|
|
3
|
+
(function (FtdsNoticeVariant) {
|
|
4
|
+
FtdsNoticeVariant["info"] = "info";
|
|
5
|
+
FtdsNoticeVariant["warning"] = "warning";
|
|
6
|
+
FtdsNoticeVariant["error"] = "error";
|
|
7
|
+
FtdsNoticeVariant["success"] = "success";
|
|
8
|
+
})(FtdsNoticeVariant || (FtdsNoticeVariant = {}));
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { FtdsIconCssVariables } from "@fluid-topics/ftds-icon/build/ftds-icon.styles";
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
import { notice } from "@fluid-topics/design-system-variables";
|
|
4
|
+
export { notice as FtdsNoticeCssVariables } from "@fluid-topics/design-system-variables";
|
|
5
|
+
// language=CSS
|
|
6
|
+
export const styles = css `
|
|
7
|
+
[part="container"] {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
border-width: ${notice.borderWidth};
|
|
12
|
+
border-style: solid;
|
|
13
|
+
border-radius: ${notice.borderRadius};
|
|
14
|
+
padding: ${notice.verticalPadding} ${notice.horizontalPadding};
|
|
15
|
+
gap: ${notice.gap};
|
|
16
|
+
|
|
17
|
+
${FtdsIconCssVariables.size.set(notice.iconSize)};
|
|
18
|
+
|
|
19
|
+
&.ftds-notice--dense {
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
border: ${notice.denseBorderWidth};
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
gap: ${notice.denseGap};
|
|
24
|
+
padding: ${notice.denseVerticalPadding} ${notice.denseHorizontalPadding};
|
|
25
|
+
|
|
26
|
+
${FtdsIconCssVariables.size.set(notice.denseIconSize)};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[part="icon"] {
|
|
31
|
+
align-self: baseline;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: flex-start;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ftds-notice--collapsible [part="label"] {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ftds-notice--collapsible:hover [part="label"] {
|
|
41
|
+
display: initial;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** Family styles **/
|
|
45
|
+
|
|
46
|
+
.ftds--family-info {
|
|
47
|
+
color: ${notice.infoColor};
|
|
48
|
+
border-color: ${notice.infoBorderColor};
|
|
49
|
+
background-color: ${notice.infoBackgroundColor};
|
|
50
|
+
|
|
51
|
+
[part="icon"] {
|
|
52
|
+
color: ${notice.infoIconColor};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ftds--family-warning {
|
|
57
|
+
color: ${notice.warningColor};
|
|
58
|
+
border-color: ${notice.warningBorderColor};
|
|
59
|
+
background-color: ${notice.warningBackgroundColor};
|
|
60
|
+
|
|
61
|
+
[part="icon"] {
|
|
62
|
+
color: ${notice.warningIconColor};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.ftds--family-error {
|
|
67
|
+
color: ${notice.errorColor};
|
|
68
|
+
border-color: ${notice.errorBorderColor};
|
|
69
|
+
background-color: ${notice.errorBackgroundColor};
|
|
70
|
+
|
|
71
|
+
[part="icon"] {
|
|
72
|
+
color: ${notice.errorIconColor};
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ftds--family-success {
|
|
77
|
+
color: ${notice.successColor};
|
|
78
|
+
border-color: ${notice.successBorderColor};
|
|
79
|
+
background-color: ${notice.successBackgroundColor};
|
|
80
|
+
|
|
81
|
+
[part="icon"] {
|
|
82
|
+
color: ${notice.successIconColor};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
`;
|
package/build/index.d.ts
ADDED
package/build/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fluid-topics/ftds-notice",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "The design system notice component",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Lit"
|
|
7
|
+
],
|
|
8
|
+
"author": "Fluid Topics <devtopics@antidot.net>",
|
|
9
|
+
"license": "ISC",
|
|
10
|
+
"main": "build/index.js",
|
|
11
|
+
"web": "build/ftds-notice.min.js",
|
|
12
|
+
"typings": "build/index",
|
|
13
|
+
"files": [
|
|
14
|
+
"build/**/*.js",
|
|
15
|
+
"build/**/*.ts"
|
|
16
|
+
],
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "2.1.0",
|
|
23
|
+
"@fluid-topics/ftds-icon": "2.1.0",
|
|
24
|
+
"@fluid-topics/ftds-typography": "2.1.0",
|
|
25
|
+
"lit": "3.1.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@fluid-topics/ft-wc-test-utils": "2.1.0"
|
|
29
|
+
},
|
|
30
|
+
"gitHead": "4727cf19d04236ad1d2b2cb43ce1c46298834c7e"
|
|
31
|
+
}
|