@nl-rvo/css-loader 2.0.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/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @nl-rvo/css-loader
2
+
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 1dee453: Added a new componont to be used, the loader.
package/LICENSE.md ADDED
@@ -0,0 +1,124 @@
1
+ # Creative Commons Legal Code
2
+
3
+ ## CC0 1.0 Universal
4
+
5
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12
+ HEREUNDER.
13
+
14
+ ## Statement of Purpose
15
+
16
+ The laws of most jurisdictions throughout the world automatically confer
17
+ exclusive Copyright and Related Rights (defined below) upon the creator
18
+ and subsequent owner(s) (each and all, an "owner") of an original work of
19
+ authorship and/or a database (each, a "Work").
20
+
21
+ Certain owners wish to permanently relinquish those rights to a Work for
22
+ the purpose of contributing to a commons of creative, cultural and
23
+ scientific works ("Commons") that the public can reliably and without fear
24
+ of later claims of infringement build upon, modify, incorporate in other
25
+ works, reuse and redistribute as freely as possible in any form whatsoever
26
+ and for any purposes, including without limitation commercial purposes.
27
+ These owners may contribute to the Commons to promote the ideal of a free
28
+ culture and the further production of creative, cultural and scientific
29
+ works, or to gain reputation or greater distribution for their Work in
30
+ part through the use and efforts of others.
31
+
32
+ For these and/or other purposes and motivations, and without any
33
+ expectation of additional consideration or compensation, the person
34
+ associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35
+ is an owner of Copyright and Related Rights in the Work, voluntarily
36
+ elects to apply CC0 to the Work and publicly distribute the Work under its
37
+ terms, with knowledge of his or her Copyright and Related Rights in the
38
+ Work and the meaning and intended legal effect of CC0 on those rights.
39
+
40
+ ## 1. Copyright and Related Rights
41
+
42
+ A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
43
+
44
+ i. the right to reproduce, adapt, distribute, perform, display,
45
+ communicate, and translate a Work;
46
+ ii. moral rights retained by the original author(s) and/or performer(s);
47
+ iii. publicity and privacy rights pertaining to a person's image or
48
+ likeness depicted in a Work;
49
+ iv. rights protecting against unfair competition in regards to a Work,
50
+ subject to the limitations in paragraph 4(a), below;
51
+ v. rights protecting the extraction, dissemination, use and reuse of data
52
+ in a Work;
53
+ vi. database rights (such as those arising under Directive 96/9/EC of the
54
+ European Parliament and of the Council of 11 March 1996 on the legal
55
+ protection of databases, and under any national implementation
56
+ thereof, including any amended or successor version of such
57
+ directive); and
58
+ vii. other similar, equivalent or corresponding rights throughout the
59
+ world based on applicable law or treaty, and any national
60
+ implementations thereof.
61
+
62
+ ## 2. Waiver
63
+
64
+ To the greatest extent permitted by, but not in contravention
65
+ of, applicable law, Affirmer hereby overtly, fully, permanently,
66
+ irrevocably and unconditionally waives, abandons, and surrenders all of
67
+ Affirmer's Copyright and Related Rights and associated claims and causes
68
+ of action, whether now known or unknown (including existing as well as
69
+ future claims and causes of action), in the Work (i) in all territories
70
+ worldwide, (ii) for the maximum duration provided by applicable law or
71
+ treaty (including future time extensions), (iii) in any current or future
72
+ medium and for any number of copies, and (iv) for any purpose whatsoever,
73
+ including without limitation commercial, advertising or promotional
74
+ purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
75
+ member of the public at large and to the detriment of Affirmer's heirs and
76
+ successors, fully intending that such Waiver shall not be subject to
77
+ revocation, rescission, cancellation, termination, or any other legal or
78
+ equitable action to disrupt the quiet enjoyment of the Work by the public
79
+ as contemplated by Affirmer's express Statement of Purpose.
80
+
81
+ ## 3. Public License Fallback
82
+
83
+ Should any part of the Waiver for any reason
84
+ be judged legally invalid or ineffective under applicable law, then the
85
+ Waiver shall be preserved to the maximum extent permitted taking into
86
+ account Affirmer's express Statement of Purpose. In addition, to the
87
+ extent the Waiver is so judged Affirmer hereby grants to each affected
88
+ person a royalty-free, non transferable, non sublicensable, non exclusive,
89
+ irrevocable and unconditional license to exercise Affirmer's Copyright and
90
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
91
+ maximum duration provided by applicable law or treaty (including future
92
+ time extensions), (iii) in any current or future medium and for any number
93
+ of copies, and (iv) for any purpose whatsoever, including without
94
+ limitation commercial, advertising or promotional purposes (the
95
+ "License"). The License shall be deemed effective as of the date CC0 was
96
+ applied by Affirmer to the Work. Should any part of the License for any
97
+ reason be judged legally invalid or ineffective under applicable law, such
98
+ partial invalidity or ineffectiveness shall not invalidate the remainder
99
+ of the License, and in such case Affirmer hereby affirms that he or she
100
+ will not (i) exercise any of his or her remaining Copyright and Related
101
+ Rights in the Work or (ii) assert any associated claims and causes of
102
+ action with respect to the Work, in either case contrary to Affirmer's
103
+ express Statement of Purpose.
104
+
105
+ ## 4. Limitations and Disclaimers
106
+
107
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
108
+ surrendered, licensed or otherwise affected by this document.
109
+ b. Affirmer offers the Work as-is and makes no representations or
110
+ warranties of any kind concerning the Work, express, implied,
111
+ statutory or otherwise, including without limitation warranties of
112
+ title, merchantability, fitness for a particular purpose, non
113
+ infringement, or the absence of latent or other defects, accuracy, or
114
+ the present or absence of errors, whether or not discoverable, all to
115
+ the greatest extent permissible under applicable law.
116
+ c. Affirmer disclaims responsibility for clearing rights of other persons
117
+ that may apply to the Work or any use thereof, including without
118
+ limitation any person's Copyright and Related Rights in the Work.
119
+ Further, Affirmer disclaims responsibility for obtaining any necessary
120
+ consents, permissions or other rights required for any use of the
121
+ Work.
122
+ d. Affirmer understands and acknowledges that Creative Commons is not a
123
+ party to this document and has no duty or obligation with respect to
124
+ this CC0 or use of the Work.
package/README.md ADDED
@@ -0,0 +1,4 @@
1
+ De Loader kan men gebruiken om een tijdelijk laadscherm te tonen als het ophalen van de informatie een korte tijd bedraagd, of het laden van een pagina.
2
+ Standaard is de loader leeg met alleen een draaiend icoon. Als je de loader over de gehele pagina wil laden vallen, of over een specieke div, maak dan gebruik van `overlay`. De Loader zal binnen het element vallen als `position: relative;` wordt gebruikt.
3
+
4
+ Als na enige tijd het laden nog te lang duurt, kun je een status bericht tonen of twee action buttons tonen. Dit zijn allemaal optionele parameters.
package/dist/index.css ADDED
@@ -0,0 +1,49 @@
1
+ .rvo-loader {
2
+ align-items: center;
3
+ background-color: var(--rvo-color-grijs-050);
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: var(--rvo-space-sm);
7
+ justify-content: center;
8
+ min-height: 200px;
9
+ padding-block-end: var(--rvo-space-md);
10
+ padding-block-start: var(--rvo-space-md);
11
+ padding-inline-end: var(--rvo-space-md);
12
+ padding-inline-start: var(--rvo-space-md);
13
+ }
14
+ .rvo-loader--overlay {
15
+ height: 100%;
16
+ position: absolute;
17
+ width: 100%;
18
+ }
19
+ .rvo-loader__icon {
20
+ align-items: center;
21
+ display: flex;
22
+ justify-content: center;
23
+ }
24
+ .rvo-loader__icon--animated {
25
+ animation-duration: 3000ms;
26
+ animation-iteration-count: infinite;
27
+ animation-name: rvo-rotate;
28
+ }
29
+ .rvo-loader__warning {
30
+ align-items: center;
31
+ display: flex;
32
+ gap: var(--rvo-space-xs);
33
+ justify-content: center;
34
+ }
35
+ .rvo-loader__actions {
36
+ align-items: center;
37
+ display: flex;
38
+ gap: var(--rvo-space-md);
39
+ justify-content: center;
40
+ }
41
+
42
+ @keyframes rvo-rotate {
43
+ from {
44
+ transform: rotate(0deg);
45
+ }
46
+ to {
47
+ transform: rotate(360deg);
48
+ }
49
+ }
@@ -0,0 +1 @@
1
+ .rvo-loader{align-items:center;background-color:var(--rvo-color-grijs-050);display:flex;flex-direction:column;gap:var(--rvo-space-sm);justify-content:center;min-height:200px;padding-block-end:var(--rvo-space-md);padding-block-start:var(--rvo-space-md);padding-inline-end:var(--rvo-space-md);padding-inline-start:var(--rvo-space-md)}.rvo-loader--overlay{height:100%;position:absolute;width:100%}.rvo-loader__icon{align-items:center;display:flex;justify-content:center}.rvo-loader__icon--animated{animation-duration:3s;animation-iteration-count:infinite;animation-name:rvo-rotate}.rvo-loader__warning{gap:var(--rvo-space-xs)}.rvo-loader__actions,.rvo-loader__warning{align-items:center;display:flex;justify-content:center}.rvo-loader__actions{gap:var(--rvo-space-md)}@keyframes rvo-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export default ".rvo-loader{align-items:center;background-color:var(--rvo-color-grijs-050);display:flex;flex-direction:column;gap:var(--rvo-space-sm);justify-content:center;min-height:200px;padding-block-end:var(--rvo-space-md);padding-block-start:var(--rvo-space-md);padding-inline-end:var(--rvo-space-md);padding-inline-start:var(--rvo-space-md)}.rvo-loader--overlay{height:100%;position:absolute;width:100%}.rvo-loader__icon{align-items:center;display:flex;justify-content:center}.rvo-loader__icon--animated{animation-duration:3s;animation-iteration-count:infinite;animation-name:rvo-rotate}.rvo-loader__warning{gap:var(--rvo-space-xs)}.rvo-loader__actions,.rvo-loader__warning{align-items:center;display:flex;justify-content:center}.rvo-loader__actions{gap:var(--rvo-space-md)}@keyframes rvo-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}";
@@ -0,0 +1,2 @@
1
+ declare const css: string;
2
+ export default css;
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "author": "Community for NL Design System",
4
+ "license": "CC0-1.0",
5
+ "name": "@nl-rvo/css-loader",
6
+ "description": "Loader CSS component",
7
+ "keywords": [
8
+ "nl-design-system",
9
+ "css",
10
+ "link"
11
+ ],
12
+ "files": [
13
+ "src/index.scss",
14
+ "dist/",
15
+ "design-tokens.json",
16
+ "*.md"
17
+ ],
18
+ "main": "dist/index.css",
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "repository": {
23
+ "type": "git+ssh",
24
+ "url": "git@github.com:nl-design-system/rvo.git",
25
+ "directory": "components/loader"
26
+ },
27
+ "devDependencies": {
28
+ "@nl-rvo/build-utils-css": "0.0.1"
29
+ },
30
+ "scripts": {
31
+ "build": "build-css-package",
32
+ "clean": "rimraf dist"
33
+ }
34
+ }
package/src/index.scss ADDED
@@ -0,0 +1,55 @@
1
+ .rvo-loader {
2
+ align-items: center;
3
+ background-color: var(--rvo-color-grijs-050);
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: var(--rvo-space-sm);
7
+ justify-content: center;
8
+ min-height: 200px;
9
+ padding-block-end: var(--rvo-space-md);
10
+ padding-block-start: var(--rvo-space-md);
11
+ padding-inline-end: var(--rvo-space-md);
12
+ padding-inline-start: var(--rvo-space-md);
13
+
14
+ &--overlay {
15
+ height: 100%;
16
+ position: absolute;
17
+ width: 100%;
18
+ }
19
+
20
+ &__icon {
21
+ align-items: center;
22
+ display: flex;
23
+ justify-content: center;
24
+
25
+ &--animated {
26
+ animation-duration: 3000ms;
27
+ animation-iteration-count: infinite;
28
+ animation-name: rvo-rotate;
29
+ }
30
+ }
31
+
32
+ &__warning {
33
+ align-items: center;
34
+ display: flex;
35
+ gap: var(--rvo-space-xs);
36
+ justify-content: center;
37
+ }
38
+
39
+ &__actions {
40
+ align-items: center;
41
+ display: flex;
42
+ gap: var(--rvo-space-md);
43
+ justify-content: center;
44
+ }
45
+ }
46
+
47
+ @keyframes rvo-rotate {
48
+ from {
49
+ transform: rotate(0deg);
50
+ }
51
+
52
+ to {
53
+ transform: rotate(360deg);
54
+ }
55
+ }