@ndla/primitives 0.0.9 → 0.0.11
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/panda.buildinfo.json +71 -9
- package/dist/styles.css +277 -32
- package/es/Button.js +4 -0
- package/es/Combobox.js +226 -0
- package/es/Figure.js +75 -0
- package/es/Select.js +197 -0
- package/es/TagsInput.js +121 -0
- package/es/index.js +4 -0
- package/es/storybookHelpers/data.js +212 -0
- package/lib/Button.js +4 -0
- package/lib/Combobox.d.ts +59 -0
- package/lib/Combobox.js +236 -0
- package/lib/Dialog.d.ts +1 -1
- package/lib/Figure.d.ts +11 -0
- package/lib/Figure.js +81 -0
- package/lib/Select.d.ts +51 -0
- package/lib/Select.js +204 -0
- package/lib/TagsInput.d.ts +41 -0
- package/lib/TagsInput.js +127 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +232 -0
- package/lib/storybookHelpers/data.d.ts +23 -0
- package/lib/storybookHelpers/data.js +218 -0
- package/package.json +3 -3
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2024-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare const europeanCountries: {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}[];
|
|
12
|
+
export declare const measurements: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
16
|
+
export interface AdvancedItem {
|
|
17
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
description: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
img: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const advancedItems: AdvancedItem[];
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.measurements = exports.europeanCountries = exports.advancedItems = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Copyright (c) 2024-present, NDLA.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
const europeanCountries = exports.europeanCountries = [{
|
|
16
|
+
label: "Albania",
|
|
17
|
+
value: "AL"
|
|
18
|
+
}, {
|
|
19
|
+
label: "Andorra",
|
|
20
|
+
value: "AD"
|
|
21
|
+
}, {
|
|
22
|
+
label: "Armenia",
|
|
23
|
+
value: "AM"
|
|
24
|
+
}, {
|
|
25
|
+
label: "Austria",
|
|
26
|
+
value: "AT"
|
|
27
|
+
}, {
|
|
28
|
+
label: "Azerbaijan",
|
|
29
|
+
value: "AZ"
|
|
30
|
+
}, {
|
|
31
|
+
label: "Belarus",
|
|
32
|
+
value: "BY"
|
|
33
|
+
}, {
|
|
34
|
+
label: "Belgium",
|
|
35
|
+
value: "BE"
|
|
36
|
+
}, {
|
|
37
|
+
label: "Bosnia and Herzegovina",
|
|
38
|
+
value: "BA"
|
|
39
|
+
}, {
|
|
40
|
+
label: "Bulgaria",
|
|
41
|
+
value: "BG"
|
|
42
|
+
}, {
|
|
43
|
+
label: "Croatia",
|
|
44
|
+
value: "HR"
|
|
45
|
+
}, {
|
|
46
|
+
label: "Cyprus",
|
|
47
|
+
value: "CY"
|
|
48
|
+
}, {
|
|
49
|
+
label: "Czech Republic",
|
|
50
|
+
value: "CZ"
|
|
51
|
+
}, {
|
|
52
|
+
label: "Denmark",
|
|
53
|
+
value: "DK"
|
|
54
|
+
}, {
|
|
55
|
+
label: "Estonia",
|
|
56
|
+
value: "EE"
|
|
57
|
+
}, {
|
|
58
|
+
label: "Finland",
|
|
59
|
+
value: "FI"
|
|
60
|
+
}, {
|
|
61
|
+
label: "France",
|
|
62
|
+
value: "FR"
|
|
63
|
+
}, {
|
|
64
|
+
label: "Georgia",
|
|
65
|
+
value: "GE"
|
|
66
|
+
}, {
|
|
67
|
+
label: "Germany",
|
|
68
|
+
value: "DE"
|
|
69
|
+
}, {
|
|
70
|
+
label: "Greece",
|
|
71
|
+
value: "GR"
|
|
72
|
+
}, {
|
|
73
|
+
label: "Hungary",
|
|
74
|
+
value: "HU"
|
|
75
|
+
}, {
|
|
76
|
+
label: "Iceland",
|
|
77
|
+
value: "IS"
|
|
78
|
+
}, {
|
|
79
|
+
label: "Ireland",
|
|
80
|
+
value: "IE"
|
|
81
|
+
}, {
|
|
82
|
+
label: "Italy",
|
|
83
|
+
value: "IT"
|
|
84
|
+
}, {
|
|
85
|
+
label: "Kazakhstan",
|
|
86
|
+
value: "KZ"
|
|
87
|
+
}, {
|
|
88
|
+
label: "Kosovo",
|
|
89
|
+
value: "XK"
|
|
90
|
+
}, {
|
|
91
|
+
label: "Latvia",
|
|
92
|
+
value: "LV"
|
|
93
|
+
}, {
|
|
94
|
+
label: "Liechtenstein",
|
|
95
|
+
value: "LI"
|
|
96
|
+
}, {
|
|
97
|
+
label: "Lithuania",
|
|
98
|
+
value: "LT"
|
|
99
|
+
}, {
|
|
100
|
+
label: "Luxembourg",
|
|
101
|
+
value: "LU"
|
|
102
|
+
}, {
|
|
103
|
+
label: "Malta",
|
|
104
|
+
value: "MT"
|
|
105
|
+
}, {
|
|
106
|
+
label: "Moldova",
|
|
107
|
+
value: "MD"
|
|
108
|
+
}, {
|
|
109
|
+
label: "Monaco",
|
|
110
|
+
value: "MC"
|
|
111
|
+
}, {
|
|
112
|
+
label: "Montenegro",
|
|
113
|
+
value: "ME"
|
|
114
|
+
}, {
|
|
115
|
+
label: "Netherlands",
|
|
116
|
+
value: "NL"
|
|
117
|
+
}, {
|
|
118
|
+
label: "North Macedonia",
|
|
119
|
+
value: "MK"
|
|
120
|
+
}, {
|
|
121
|
+
label: "Norway",
|
|
122
|
+
value: "NO"
|
|
123
|
+
}, {
|
|
124
|
+
label: "Poland",
|
|
125
|
+
value: "PL"
|
|
126
|
+
}, {
|
|
127
|
+
label: "Portugal",
|
|
128
|
+
value: "PT"
|
|
129
|
+
}, {
|
|
130
|
+
label: "Romania",
|
|
131
|
+
value: "RO"
|
|
132
|
+
}, {
|
|
133
|
+
label: "Russia",
|
|
134
|
+
value: "RU"
|
|
135
|
+
}, {
|
|
136
|
+
label: "San Marino",
|
|
137
|
+
value: "SM"
|
|
138
|
+
}, {
|
|
139
|
+
label: "Serbia",
|
|
140
|
+
value: "RS"
|
|
141
|
+
}, {
|
|
142
|
+
label: "Slovakia",
|
|
143
|
+
value: "SK"
|
|
144
|
+
}, {
|
|
145
|
+
label: "Slovenia",
|
|
146
|
+
value: "SI"
|
|
147
|
+
}, {
|
|
148
|
+
label: "Spain",
|
|
149
|
+
value: "ES"
|
|
150
|
+
}, {
|
|
151
|
+
label: "Sweden",
|
|
152
|
+
value: "SE"
|
|
153
|
+
}, {
|
|
154
|
+
label: "Switzerland",
|
|
155
|
+
value: "CH"
|
|
156
|
+
}, {
|
|
157
|
+
label: "Turkey",
|
|
158
|
+
value: "TR"
|
|
159
|
+
}, {
|
|
160
|
+
label: "Ukraine",
|
|
161
|
+
value: "UA"
|
|
162
|
+
}, {
|
|
163
|
+
label: "United Kingdom",
|
|
164
|
+
value: "GB"
|
|
165
|
+
}, {
|
|
166
|
+
label: "Vatican City",
|
|
167
|
+
value: "VA"
|
|
168
|
+
}];
|
|
169
|
+
const measurements = exports.measurements = [{
|
|
170
|
+
label: "Kilometer",
|
|
171
|
+
value: "km"
|
|
172
|
+
}, {
|
|
173
|
+
label: "Meter",
|
|
174
|
+
value: "m"
|
|
175
|
+
}, {
|
|
176
|
+
label: "Centimeter",
|
|
177
|
+
value: "cm"
|
|
178
|
+
}, {
|
|
179
|
+
label: "Millimeter",
|
|
180
|
+
value: "mm"
|
|
181
|
+
}, {
|
|
182
|
+
label: "Mile",
|
|
183
|
+
value: "mi"
|
|
184
|
+
}, {
|
|
185
|
+
label: "Yard",
|
|
186
|
+
value: "yd"
|
|
187
|
+
}, {
|
|
188
|
+
label: "Foot",
|
|
189
|
+
value: "ft"
|
|
190
|
+
}, {
|
|
191
|
+
label: "Inch",
|
|
192
|
+
value: "in"
|
|
193
|
+
}, {
|
|
194
|
+
label: "Nautical mile",
|
|
195
|
+
value: "nmi"
|
|
196
|
+
}];
|
|
197
|
+
const advancedItems = exports.advancedItems = [{
|
|
198
|
+
label: "React",
|
|
199
|
+
value: "react",
|
|
200
|
+
description: "A JavaScript library for building user interfaces",
|
|
201
|
+
img: "https://api.test.ndla.no/image-api/raw/YQyWgMkg.png"
|
|
202
|
+
}, {
|
|
203
|
+
label: "Solid",
|
|
204
|
+
value: "solid",
|
|
205
|
+
description: "React, but with signals",
|
|
206
|
+
img: "https://api.test.ndla.no/image-api/raw/YQyWgMkg.png"
|
|
207
|
+
}, {
|
|
208
|
+
label: "Svelte",
|
|
209
|
+
value: "svelte",
|
|
210
|
+
disabled: true,
|
|
211
|
+
description: "No more JS than required",
|
|
212
|
+
img: "https://api.test.ndla.no/image-api/raw/YQyWgMkg.png"
|
|
213
|
+
}, {
|
|
214
|
+
label: "Vue",
|
|
215
|
+
value: "vue",
|
|
216
|
+
description: "The Progressive JavaScript Framework",
|
|
217
|
+
img: "https://api.test.ndla.no/image-api/raw/YQyWgMkg.png"
|
|
218
|
+
}];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/primitives",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "Primitive components for NDLA",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@ark-ui/react": "^3.5.0",
|
|
32
32
|
"@ndla/styled-system": "^0.0.2",
|
|
33
|
-
"@ndla/util": "^4.0
|
|
33
|
+
"@ndla/util": "^4.1.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@ndla/preset-panda": "^0.0.6",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "2602fe18f18569373b94c85f01292d7026654595"
|
|
47
47
|
}
|