@digitalservicebund/ris-ui 0.0.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.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g={theme:{colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#0b0c0c",blue:{100:"#f2f6f8",200:"#ecf1f4",300:"#dce8ef",400:"#ccdbe4",500:"#b3c9d6",600:"#6693ad",700:"#336f91",800:"#004b76",900:"#003350"},gray:{100:"#f6f7f8",200:"#eff2f4",300:"#edeef0",400:"#dcdee1",500:"#cacdd2",600:"#b8bdc3",700:"#a6acb5",800:"#6f7785",900:"#4e596a"},green:{100:"#e8f7f0",200:"#ccebdd",300:"#b0d8c6",400:"#97ccb4",500:"#65b491",600:"#349d6e",700:"#01854a",800:"#006538",900:"#003e22"},orange:{100:"#fef7e8",200:"#fae5bb",300:"#f9d791",400:"#f8c967",500:"#f7bb3d",600:"#e9aa26",700:"#d79815",800:"#c18509",900:"#ad7500"},red:{100:"#fcf2f5",200:"#f9e5ec",300:"#f2ccd8",400:"#ecb3c5",500:"#e699b1",600:"#d9668b",700:"#c61a50",800:"#b0243f",900:"#8e001b"},white:"#fff",yellow:{100:"#fefcef",200:"#fff9d2",300:"#f9ec9e",400:"#f7e67d",500:"#f5e05d",600:"#f2dc5d",700:"#e5ce5c",800:"#dac23c",900:"#c3a91e"}},fontFamily:{"font-family-sans":["BundesSansWeb","Calibri","Verdana","Arial","Helvetica","sans-serif"],"font-family-serif":["BundesSerifWeb","Cambria","Georgia",'"Times New Roman"',"serif"],"font-family-condensed":["BundesSansCondWeb","Calibri","Verdana","Arial","Helvetica","sans-serif"]},spacing:{0:"0rem",1:"0.0625rem",2:"0.125rem",4:"0.25rem",6:"0.375rem",8:"0.5rem",10:"0.625rem",12:"0.75rem",14:"0.875rem",16:"1rem",20:"1.25rem",24:"1.5rem",28:"1.75rem",32:"2rem",36:"2.25rem",40:"2.5rem",44:"2.75rem",48:"3rem",56:"3.5rem",64:"4rem",80:"5rem",96:"6rem",112:"7rem",128:"8rem",144:"9rem",160:"10rem",176:"11rem",192:"12rem",208:"13rem",224:"14rem",240:"15rem",288:"18rem",320:"20rem",384:"24rem"}}};const u=a(g);var d={},c={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function n(t,i){return{handler:t,config:i}}n.withOptions=function(t,i=()=>({})){const o=function(l){return{__options:l,handler:t(l),config:i(l)}};return o.__isOptionsFunction=!0,o.__pluginFunction=t,o.__configFunction=i,o};const r=n})(c);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});const n=r(c);function r(i){return i&&i.__esModule?i:{default:i}}const t=n.default})(d);let f=d;var s=(f.__esModule?f:{default:f}).default;const b=a(s),h=u,m=b(({theme:e,addBase:n,addComponents:r})=>{n({body:{color:e("colors.black"),fontFamily:e("fontFamily.font-family-sans")},"::placeholder":{fontFamily:e("fontFamily.font-family-sans"),fontStyle:"normal"}}),r({".ris-title-regular":{fontSize:"64px",fontWeight:"normal",lineHeight:"1.1875"},".ris-heading1-regular":{fontSize:"48px",fontWeight:"normal",lineHeight:"1.2"},".ris-heading1-bold":{fontSize:"48px",fontWeight:"bold",lineHeight:"1.2"},".ris-heading2-regular":{fontSize:"32px",fontWeight:"normal",lineHeight:"1.1875"},".ris-heading2-bold":{fontSize:"32px",fontWeight:"bold",lineHeight:"1.1875"},".ris-heading3-regular":{fontSize:"26px",fontWeight:"normal",lineHeight:"1.23"},".ris-heading3-bold":{fontSize:"26px",fontWeight:"bold",lineHeight:"1.23"},".ris-subhead-regular":{fontSize:"20px",fontWeight:"normal",lineHeight:"1.5"},".ris-body1-regular":{fontSize:"18px",fontWeight:"normal",lineHeight:"1.5"},".ris-body1-bold":{fontSize:"18px",fontWeight:"bold",lineHeight:"1.5"},".ris-body2-regular":{fontSize:"16px",fontWeight:"normal",lineHeight:"1.5"},".ris-body2-bold":{fontSize:"16px",fontWeight:"bold",lineHeight:"1.5"},".ris-body3-regular":{fontSize:"14px",fontWeight:"normal",lineHeight:"1.5"},".ris-body3-bold":{fontSize:"14px",fontWeight:"bold",lineHeight:"1.5"},".ris-label1-regular":{fontSize:"18px",fontWeight:"normal",lineHeight:"1.25"},".ris-label1-bold":{fontSize:"18px",fontWeight:"bold",lineHeight:"1.25"},".ris-label2-regular":{fontSize:"16px",fontWeight:"normal",lineHeight:"1.25"},".ris-label2-bold":{fontSize:"16px",fontWeight:"bold",lineHeight:"1.25"},".ris-label3-regular":{fontSize:"14px",fontWeight:"normal",lineHeight:"1.25"},".ris-label3-bold":{fontSize:"14px",fontWeight:"bold",lineHeight:"1.25"},".ris-link1-regular":{color:e("colors.blue.800"),fontSize:"18px",fontWeight:"normal",lineHeight:"1.5",textDecoration:"underline"},".ris-link1-bold":{color:e("colors.blue.800"),fontSize:"18px",fontWeight:"bold",lineHeight:"1.5",textDecoration:"underline"},".ris-link2-regular":{color:e("colors.blue.800"),fontSize:"16px",fontWeight:"normal",lineHeight:"1.5",textDecoration:"underline"},".ris-link2-bold":{color:e("colors.blue.800"),fontSize:"16px",fontWeight:"bold",lineHeight:"1.5",textDecoration:"underline"},".ris-link3-regular":{color:e("colors.blue.800"),fontSize:"14px",fontWeight:"normal",lineHeight:"1.5",textDecoration:"underline"},".ris-link3-bold":{color:e("colors.blue.800"),fontSize:"14px",fontWeight:"bold",lineHeight:"1.5",textDecoration:"underline"}})});exports.RisUiPlugin=m;exports.RisUiPreset=h;
@@ -0,0 +1,6 @@
1
+ import angieTokens from "@digitalservice4germany/style-dictionary/tailwind";
2
+ export declare const RisUiPreset: typeof angieTokens;
3
+ export declare const RisUiPlugin: {
4
+ handler: import("tailwindcss/types/config").PluginCreator;
5
+ config?: Partial<import("tailwindcss/types/config").Config>;
6
+ };
@@ -0,0 +1,349 @@
1
+ function a(e) {
2
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
+ }
4
+ var g = {
5
+ theme: {
6
+ colors: {
7
+ inherit: "inherit",
8
+ current: "currentColor",
9
+ transparent: "transparent",
10
+ black: "#0b0c0c",
11
+ blue: {
12
+ 100: "#f2f6f8",
13
+ 200: "#ecf1f4",
14
+ 300: "#dce8ef",
15
+ 400: "#ccdbe4",
16
+ 500: "#b3c9d6",
17
+ 600: "#6693ad",
18
+ 700: "#336f91",
19
+ 800: "#004b76",
20
+ 900: "#003350"
21
+ },
22
+ gray: {
23
+ 100: "#f6f7f8",
24
+ 200: "#eff2f4",
25
+ 300: "#edeef0",
26
+ 400: "#dcdee1",
27
+ 500: "#cacdd2",
28
+ 600: "#b8bdc3",
29
+ 700: "#a6acb5",
30
+ 800: "#6f7785",
31
+ 900: "#4e596a"
32
+ },
33
+ green: {
34
+ 100: "#e8f7f0",
35
+ 200: "#ccebdd",
36
+ 300: "#b0d8c6",
37
+ 400: "#97ccb4",
38
+ 500: "#65b491",
39
+ 600: "#349d6e",
40
+ 700: "#01854a",
41
+ 800: "#006538",
42
+ 900: "#003e22"
43
+ },
44
+ orange: {
45
+ 100: "#fef7e8",
46
+ 200: "#fae5bb",
47
+ 300: "#f9d791",
48
+ 400: "#f8c967",
49
+ 500: "#f7bb3d",
50
+ 600: "#e9aa26",
51
+ 700: "#d79815",
52
+ 800: "#c18509",
53
+ 900: "#ad7500"
54
+ },
55
+ red: {
56
+ 100: "#fcf2f5",
57
+ 200: "#f9e5ec",
58
+ 300: "#f2ccd8",
59
+ 400: "#ecb3c5",
60
+ 500: "#e699b1",
61
+ 600: "#d9668b",
62
+ 700: "#c61a50",
63
+ 800: "#b0243f",
64
+ 900: "#8e001b"
65
+ },
66
+ white: "#fff",
67
+ yellow: {
68
+ 100: "#fefcef",
69
+ 200: "#fff9d2",
70
+ 300: "#f9ec9e",
71
+ 400: "#f7e67d",
72
+ 500: "#f5e05d",
73
+ 600: "#f2dc5d",
74
+ 700: "#e5ce5c",
75
+ 800: "#dac23c",
76
+ 900: "#c3a91e"
77
+ }
78
+ },
79
+ fontFamily: {
80
+ "font-family-sans": [
81
+ "BundesSansWeb",
82
+ "Calibri",
83
+ "Verdana",
84
+ "Arial",
85
+ "Helvetica",
86
+ "sans-serif"
87
+ ],
88
+ "font-family-serif": [
89
+ "BundesSerifWeb",
90
+ "Cambria",
91
+ "Georgia",
92
+ '"Times New Roman"',
93
+ "serif"
94
+ ],
95
+ "font-family-condensed": [
96
+ "BundesSansCondWeb",
97
+ "Calibri",
98
+ "Verdana",
99
+ "Arial",
100
+ "Helvetica",
101
+ "sans-serif"
102
+ ]
103
+ },
104
+ spacing: {
105
+ 0: "0rem",
106
+ 1: "0.0625rem",
107
+ 2: "0.125rem",
108
+ 4: "0.25rem",
109
+ 6: "0.375rem",
110
+ 8: "0.5rem",
111
+ 10: "0.625rem",
112
+ 12: "0.75rem",
113
+ 14: "0.875rem",
114
+ 16: "1rem",
115
+ 20: "1.25rem",
116
+ 24: "1.5rem",
117
+ 28: "1.75rem",
118
+ 32: "2rem",
119
+ 36: "2.25rem",
120
+ 40: "2.5rem",
121
+ 44: "2.75rem",
122
+ 48: "3rem",
123
+ 56: "3.5rem",
124
+ 64: "4rem",
125
+ 80: "5rem",
126
+ 96: "6rem",
127
+ 112: "7rem",
128
+ 128: "8rem",
129
+ 144: "9rem",
130
+ 160: "10rem",
131
+ 176: "11rem",
132
+ 192: "12rem",
133
+ 208: "13rem",
134
+ 224: "14rem",
135
+ 240: "15rem",
136
+ 288: "18rem",
137
+ 320: "20rem",
138
+ 384: "24rem"
139
+ }
140
+ }
141
+ };
142
+ const u = /* @__PURE__ */ a(g);
143
+ var d = {}, c = {};
144
+ (function(e) {
145
+ Object.defineProperty(e, "__esModule", {
146
+ value: !0
147
+ }), Object.defineProperty(e, "default", {
148
+ enumerable: !0,
149
+ get: function() {
150
+ return r;
151
+ }
152
+ });
153
+ function n(t, i) {
154
+ return {
155
+ handler: t,
156
+ config: i
157
+ };
158
+ }
159
+ n.withOptions = function(t, i = () => ({})) {
160
+ const o = function(l) {
161
+ return {
162
+ __options: l,
163
+ handler: t(l),
164
+ config: i(l)
165
+ };
166
+ };
167
+ return o.__isOptionsFunction = !0, o.__pluginFunction = t, o.__configFunction = i, o;
168
+ };
169
+ const r = n;
170
+ })(c);
171
+ (function(e) {
172
+ Object.defineProperty(e, "__esModule", {
173
+ value: !0
174
+ }), Object.defineProperty(e, "default", {
175
+ enumerable: !0,
176
+ get: function() {
177
+ return t;
178
+ }
179
+ });
180
+ const n = /* @__PURE__ */ r(c);
181
+ function r(i) {
182
+ return i && i.__esModule ? i : {
183
+ default: i
184
+ };
185
+ }
186
+ const t = n.default;
187
+ })(d);
188
+ let f = d;
189
+ var s = (f.__esModule ? f : { default: f }).default;
190
+ const b = /* @__PURE__ */ a(s), h = u, m = b(({ theme: e, addBase: n, addComponents: r }) => {
191
+ n({
192
+ body: {
193
+ color: e("colors.black"),
194
+ fontFamily: e("fontFamily.font-family-sans")
195
+ },
196
+ "::placeholder": {
197
+ fontFamily: e("fontFamily.font-family-sans"),
198
+ fontStyle: "normal"
199
+ }
200
+ }), r({
201
+ ".ris-title-regular": {
202
+ fontSize: "64px",
203
+ fontWeight: "normal",
204
+ lineHeight: "1.1875"
205
+ },
206
+ ".ris-heading1-regular": {
207
+ fontSize: "48px",
208
+ fontWeight: "normal",
209
+ lineHeight: "1.2"
210
+ },
211
+ ".ris-heading1-bold": {
212
+ fontSize: "48px",
213
+ fontWeight: "bold",
214
+ lineHeight: "1.2"
215
+ },
216
+ // TODO: Heading 1 mobile
217
+ ".ris-heading2-regular": {
218
+ fontSize: "32px",
219
+ fontWeight: "normal",
220
+ lineHeight: "1.1875"
221
+ },
222
+ ".ris-heading2-bold": {
223
+ fontSize: "32px",
224
+ fontWeight: "bold",
225
+ lineHeight: "1.1875"
226
+ },
227
+ ".ris-heading3-regular": {
228
+ fontSize: "26px",
229
+ fontWeight: "normal",
230
+ lineHeight: "1.23"
231
+ },
232
+ ".ris-heading3-bold": {
233
+ fontSize: "26px",
234
+ fontWeight: "bold",
235
+ lineHeight: "1.23"
236
+ },
237
+ ".ris-subhead-regular": {
238
+ fontSize: "20px",
239
+ fontWeight: "normal",
240
+ lineHeight: "1.5"
241
+ },
242
+ ".ris-body1-regular": {
243
+ fontSize: "18px",
244
+ fontWeight: "normal",
245
+ lineHeight: "1.5"
246
+ },
247
+ ".ris-body1-bold": {
248
+ fontSize: "18px",
249
+ fontWeight: "bold",
250
+ lineHeight: "1.5"
251
+ },
252
+ ".ris-body2-regular": {
253
+ fontSize: "16px",
254
+ fontWeight: "normal",
255
+ lineHeight: "1.5"
256
+ },
257
+ ".ris-body2-bold": {
258
+ fontSize: "16px",
259
+ fontWeight: "bold",
260
+ lineHeight: "1.5"
261
+ },
262
+ ".ris-body3-regular": {
263
+ fontSize: "14px",
264
+ fontWeight: "normal",
265
+ lineHeight: "1.5"
266
+ },
267
+ ".ris-body3-bold": {
268
+ fontSize: "14px",
269
+ fontWeight: "bold",
270
+ lineHeight: "1.5"
271
+ },
272
+ ".ris-label1-regular": {
273
+ fontSize: "18px",
274
+ fontWeight: "normal",
275
+ lineHeight: "1.25"
276
+ },
277
+ ".ris-label1-bold": {
278
+ fontSize: "18px",
279
+ fontWeight: "bold",
280
+ lineHeight: "1.25"
281
+ },
282
+ ".ris-label2-regular": {
283
+ fontSize: "16px",
284
+ fontWeight: "normal",
285
+ lineHeight: "1.25"
286
+ },
287
+ ".ris-label2-bold": {
288
+ fontSize: "16px",
289
+ fontWeight: "bold",
290
+ lineHeight: "1.25"
291
+ },
292
+ ".ris-label3-regular": {
293
+ fontSize: "14px",
294
+ fontWeight: "normal",
295
+ lineHeight: "1.25"
296
+ },
297
+ ".ris-label3-bold": {
298
+ fontSize: "14px",
299
+ fontWeight: "bold",
300
+ lineHeight: "1.25"
301
+ },
302
+ ".ris-link1-regular": {
303
+ color: e("colors.blue.800"),
304
+ fontSize: "18px",
305
+ fontWeight: "normal",
306
+ lineHeight: "1.5",
307
+ textDecoration: "underline"
308
+ },
309
+ ".ris-link1-bold": {
310
+ color: e("colors.blue.800"),
311
+ fontSize: "18px",
312
+ fontWeight: "bold",
313
+ lineHeight: "1.5",
314
+ textDecoration: "underline"
315
+ },
316
+ ".ris-link2-regular": {
317
+ color: e("colors.blue.800"),
318
+ fontSize: "16px",
319
+ fontWeight: "normal",
320
+ lineHeight: "1.5",
321
+ textDecoration: "underline"
322
+ },
323
+ ".ris-link2-bold": {
324
+ color: e("colors.blue.800"),
325
+ fontSize: "16px",
326
+ fontWeight: "bold",
327
+ lineHeight: "1.5",
328
+ textDecoration: "underline"
329
+ },
330
+ ".ris-link3-regular": {
331
+ color: e("colors.blue.800"),
332
+ fontSize: "14px",
333
+ fontWeight: "normal",
334
+ lineHeight: "1.5",
335
+ textDecoration: "underline"
336
+ },
337
+ ".ris-link3-bold": {
338
+ color: e("colors.blue.800"),
339
+ fontSize: "14px",
340
+ fontWeight: "bold",
341
+ lineHeight: "1.5",
342
+ textDecoration: "underline"
343
+ }
344
+ });
345
+ });
346
+ export {
347
+ m as RisUiPlugin,
348
+ h as RisUiPreset
349
+ };
package/package.json ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "@digitalservicebund/ris-ui",
3
+ "version": "0.0.1",
4
+ "description": "Component library for NeuRIS",
5
+ "author": "digitalservicebund",
6
+ "license": "GPL-3.0-only",
7
+ "type": "module",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/digitalservicebund/ris-ui.git"
11
+ },
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "exports": {
16
+ "./primevue": {
17
+ "require": "./dist/primevue/index.cjs",
18
+ "import": "./dist/primevue/index.js",
19
+ "types": "./dist/primevue/index.d.ts"
20
+ },
21
+ "./primevue/style.css": {
22
+ "import": "./dist/style.css"
23
+ },
24
+ "./tailwind": {
25
+ "require": "./dist/tailwind/index.cjs",
26
+ "import": "./dist/tailwind/index.js",
27
+ "types": "./dist/tailwind/index.d.ts"
28
+ }
29
+ },
30
+ "scripts": {
31
+ "storybook": "storybook dev -p 6006",
32
+ "build": "vite build && vue-tsc --build tsconfig.lib.json --force",
33
+ "build:storybook": "storybook build",
34
+ "prettier:check": "prettier --check .",
35
+ "prettier:fix": "prettier --write --ignore-unknown .",
36
+ "eslint:check": "eslint",
37
+ "eslint:fix": "npm run eslint:check -- --fix",
38
+ "audit:licenses": "license-checker --production --excludePrivatePackages --excludePackages @digitalservicebund/ris-ui@$(cat package.json | jq -r '.version') --onlyAllow \"$(. ./parse-allowed-licenses.sh)\" --csv --out ./frontend-license-report.csv",
39
+ "typecheck": "vue-tsc"
40
+ },
41
+ "dependencies": {
42
+ "primevue": "^4.0.4",
43
+ "vue": "^3.4.38"
44
+ },
45
+ "devDependencies": {
46
+ "@chromatic-com/storybook": "~1.6.1",
47
+ "@commitlint/config-conventional": "^19.2.2",
48
+ "@digitalservice4germany/angie": "~1.2.0",
49
+ "@digitalservice4germany/style-dictionary": "~2.0.0",
50
+ "@eslint/compat": "^1.1.1",
51
+ "@eslint/js": "~9.9.0",
52
+ "@iconify-json/ic": "~1.1.18",
53
+ "@storybook/addon-essentials": "~8.2.9",
54
+ "@storybook/addon-interactions": "~8.2.9",
55
+ "@storybook/addon-links": "~8.2.9",
56
+ "@storybook/blocks": "~8.2.9",
57
+ "@storybook/manager-api": "~8.2.9",
58
+ "@storybook/preview-api": "~8.2.9",
59
+ "@storybook/test": "~8.2.9",
60
+ "@storybook/theming": "~8.2.9",
61
+ "@storybook/vue3": "~8.2.9",
62
+ "@storybook/vue3-vite": "~8.2.9",
63
+ "@vitejs/plugin-vue": "~5.1.2",
64
+ "autoprefixer": "~10.4.20",
65
+ "eslint": "~9.9.0",
66
+ "eslint-config-prettier": "~9.1.0",
67
+ "globals": "~15.9.0",
68
+ "license-checker": "^25.0.1",
69
+ "noop-tag": "~2.0.0",
70
+ "prettier": "~3.3.3",
71
+ "prettier-plugin-tailwindcss": "~0.6.6",
72
+ "storybook": "~8.2.9",
73
+ "tailwindcss": "~3.4.10",
74
+ "typescript": "~5.5.4",
75
+ "typescript-eslint": "~8.2.0",
76
+ "unplugin-icons": "~0.19.2",
77
+ "vite": "~5.4.1",
78
+ "vue-tsc": "~2.0.29"
79
+ }
80
+ }