@lilydesignsystem/nunjucks-picker-bar 0.3.0 → 0.4.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/LICENSE.md +64 -0
- package/dist/index.d.ts +13 -1
- package/dist/index.js +13 -1
- package/dist/picker-bar.njk +12 -9
- package/package.json +13 -3
package/LICENSE.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<!-- Synced from the canonical repository by bin/sync-special-files.
|
|
2
|
+
Do not edit here; edit the root copy and re-run the script.
|
|
3
|
+
Canonical: https://github.com/LilyDesignSystem/lily-design-system/blob/main/LICENSE.md -->
|
|
4
|
+
|
|
5
|
+
# License
|
|
6
|
+
|
|
7
|
+
Lily Design System™ is free open source software.
|
|
8
|
+
|
|
9
|
+
License is any of these, at your option, or contact us for custom license options.
|
|
10
|
+
|
|
11
|
+
* [MIT](https://opensource.org/license/mit) ([SPDX: MIT](https://spdx.org/licenses/MIT.html))
|
|
12
|
+
|
|
13
|
+
* [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) ([SPDX: Apache-2.0](https://spdx.org/licenses/Apache-2.0.html))
|
|
14
|
+
|
|
15
|
+
* [GNU General Public License v2.0](https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html) ([SPDX: GPL-2.0-only](https://spdx.org/licenses/GPL-2.0-only.html))
|
|
16
|
+
|
|
17
|
+
* [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0-standalone.html) ([SPDX: GPL-3.0-only](https://spdx.org/licenses/GPL-3.0-only.html))
|
|
18
|
+
|
|
19
|
+
* [BSD 3-Clause License](https://opensource.org/license/bsd-3-clause) ([SPDX: BSD-3-Clause](https://spdx.org/licenses/BSD-3-Clause.html))
|
|
20
|
+
|
|
21
|
+
## SPDX
|
|
22
|
+
|
|
23
|
+
The machine-readable expression for the choice above is:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
SPDX-License-Identifier: MIT OR Apache-2.0 OR GPL-2.0-only OR GPL-3.0-only OR BSD-3-Clause
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Every package manifest in this repository should carry that expression, or a
|
|
30
|
+
single identifier from the list where the packaging format does not accept a
|
|
31
|
+
disjunction. You do not need permission to pick one: choose whichever member of
|
|
32
|
+
the list suits your project and comply with that one.
|
|
33
|
+
|
|
34
|
+
This applies to the whole repository — the component catalog, the seven headless
|
|
35
|
+
libraries, the seven example applications, the seven helper catalogs, the
|
|
36
|
+
`themes/` stylesheets, the `bin/` tooling, and the documentation.
|
|
37
|
+
|
|
38
|
+
## Scope note
|
|
39
|
+
|
|
40
|
+
This file supersedes an earlier `CC BY-NC-SA` notice. That notice was a content
|
|
41
|
+
license with a non-commercial clause, it was not an open-source license, and it
|
|
42
|
+
contradicted both the specification and the published packages. It should not be
|
|
43
|
+
relied on. If you obtained Lily under it and that raises a question for you,
|
|
44
|
+
contact <joel@joelparkerhenderson.com>.
|
|
45
|
+
|
|
46
|
+
## Trademarks
|
|
47
|
+
|
|
48
|
+
Lily™ and Lily Design System™ are trademarks. The trademarks are distinct from
|
|
49
|
+
the software license: a trademark claim (™) asserts use of the marks and is
|
|
50
|
+
independent of the licenses above. A license to the software is not a license to
|
|
51
|
+
the marks.
|
|
52
|
+
|
|
53
|
+
You may say your project uses Lily, is built with Lily, or is compatible with
|
|
54
|
+
Lily. Please do not use the marks as the name of your fork or product, or in a
|
|
55
|
+
way that suggests affiliation or endorsement. For any use beyond that, contact
|
|
56
|
+
<joel@joelparkerhenderson.com>.
|
|
57
|
+
|
|
58
|
+
## Third-party references
|
|
59
|
+
|
|
60
|
+
Lily's example applications and `themes/` stylesheets take visual reference from
|
|
61
|
+
public-sector design systems including NHS UK, GOV.UK, and USWDS. Lily is not
|
|
62
|
+
affiliated with, endorsed by, or connected to any of those organisations. Their
|
|
63
|
+
names and marks belong to them, and this license grants nothing in respect of
|
|
64
|
+
them.
|
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export { autoInit as autoInitSharePicker } from '@lilydesignsystem/nunjucks-shar
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* All
|
|
30
|
+
* All 57 Lily reference theme slugs, in the same order as
|
|
31
31
|
* `DEFAULT_THEMES` in picker-bar.njk. A Nunjucks macro cannot import a
|
|
32
32
|
* JS constant, so the two copies are held in agreement by a test
|
|
33
33
|
* rather than by delegation — the same pattern this catalog already
|
|
@@ -38,11 +38,14 @@ const DEFAULT_THEMES = [
|
|
|
38
38
|
"abyss",
|
|
39
39
|
"acid",
|
|
40
40
|
"adobe-spectrum",
|
|
41
|
+
"ant-design",
|
|
41
42
|
"aqua",
|
|
43
|
+
"atlassian",
|
|
42
44
|
"autumn",
|
|
43
45
|
"black",
|
|
44
46
|
"bumblebee",
|
|
45
47
|
"business",
|
|
48
|
+
"cappuccino",
|
|
46
49
|
"caramellatte",
|
|
47
50
|
"cmyk",
|
|
48
51
|
"coffee",
|
|
@@ -53,23 +56,32 @@ const DEFAULT_THEMES = [
|
|
|
53
56
|
"dim",
|
|
54
57
|
"dracula",
|
|
55
58
|
"emerald",
|
|
59
|
+
"excel",
|
|
56
60
|
"fantasy",
|
|
61
|
+
"fluent",
|
|
57
62
|
"forest",
|
|
58
63
|
"garden",
|
|
64
|
+
"github-primer",
|
|
59
65
|
"halloween",
|
|
66
|
+
"ibm-carbon",
|
|
60
67
|
"lemonade",
|
|
61
68
|
"light",
|
|
69
|
+
"linear",
|
|
62
70
|
"lofi",
|
|
63
71
|
"luxury",
|
|
64
72
|
"mozilla-protocol",
|
|
65
73
|
"night",
|
|
66
74
|
"nord",
|
|
75
|
+
"notion",
|
|
67
76
|
"pastel",
|
|
68
77
|
"retro",
|
|
78
|
+
"salesforce",
|
|
79
|
+
"sap-fiori",
|
|
69
80
|
"silk",
|
|
70
81
|
"sunset",
|
|
71
82
|
"synthwave",
|
|
72
83
|
"valentine",
|
|
84
|
+
"vercel",
|
|
73
85
|
"winter",
|
|
74
86
|
"wireframe",
|
|
75
87
|
"united-kingdom-government-digital-service",
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// picker-bar.client.js
|
|
2
2
|
import {
|
|
3
3
|
initLinkPicker,
|
|
4
4
|
autoInit as autoInitLinkPicker
|
|
@@ -27,11 +27,14 @@ var DEFAULT_THEMES = [
|
|
|
27
27
|
"abyss",
|
|
28
28
|
"acid",
|
|
29
29
|
"adobe-spectrum",
|
|
30
|
+
"ant-design",
|
|
30
31
|
"aqua",
|
|
32
|
+
"atlassian",
|
|
31
33
|
"autumn",
|
|
32
34
|
"black",
|
|
33
35
|
"bumblebee",
|
|
34
36
|
"business",
|
|
37
|
+
"cappuccino",
|
|
35
38
|
"caramellatte",
|
|
36
39
|
"cmyk",
|
|
37
40
|
"coffee",
|
|
@@ -42,23 +45,32 @@ var DEFAULT_THEMES = [
|
|
|
42
45
|
"dim",
|
|
43
46
|
"dracula",
|
|
44
47
|
"emerald",
|
|
48
|
+
"excel",
|
|
45
49
|
"fantasy",
|
|
50
|
+
"fluent",
|
|
46
51
|
"forest",
|
|
47
52
|
"garden",
|
|
53
|
+
"github-primer",
|
|
48
54
|
"halloween",
|
|
55
|
+
"ibm-carbon",
|
|
49
56
|
"lemonade",
|
|
50
57
|
"light",
|
|
58
|
+
"linear",
|
|
51
59
|
"lofi",
|
|
52
60
|
"luxury",
|
|
53
61
|
"mozilla-protocol",
|
|
54
62
|
"night",
|
|
55
63
|
"nord",
|
|
64
|
+
"notion",
|
|
56
65
|
"pastel",
|
|
57
66
|
"retro",
|
|
67
|
+
"salesforce",
|
|
68
|
+
"sap-fiori",
|
|
58
69
|
"silk",
|
|
59
70
|
"sunset",
|
|
60
71
|
"synthwave",
|
|
61
72
|
"valentine",
|
|
73
|
+
"vercel",
|
|
62
74
|
"winter",
|
|
63
75
|
"wireframe",
|
|
64
76
|
"united-kingdom-government-digital-service",
|
package/dist/picker-bar.njk
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
one-line Environment setup. In this monorepo's own dev/test tree the
|
|
23
23
|
same relative shape already holds: each sibling package sits at
|
|
24
24
|
`../lily-design-system-nunjucks-{name}-picker/dist/{name}-picker.njk`
|
|
25
|
-
relative to the
|
|
25
|
+
relative to the repository root, exactly where `node_modules` would
|
|
26
26
|
place it after a real install.
|
|
27
27
|
#}
|
|
28
28
|
{% from "lily-design-system-nunjucks-link-picker/dist/link-picker.njk" import linkPicker %}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
{% from "lily-design-system-nunjucks-text-size-picker/dist/text-size-picker.njk" import textSizePicker %}
|
|
33
33
|
{% from "lily-design-system-nunjucks-share-picker/dist/share-picker.njk" import sharePicker %}
|
|
34
34
|
{#
|
|
35
|
-
All
|
|
35
|
+
All 57 Lily reference theme slugs (see `themes/` at the repo root),
|
|
36
36
|
sorted alphabetically except the United Kingdom and United States
|
|
37
37
|
government/public-sector themes, which sort last as one alphabetical
|
|
38
38
|
group of their own. Mirrors `theme-picker`'s own title-casing of each
|
|
@@ -43,13 +43,16 @@
|
|
|
43
43
|
held in sync by assertion rather than by delegation.
|
|
44
44
|
#}
|
|
45
45
|
{%- set DEFAULT_THEMES = [
|
|
46
|
-
"abyss", "acid", "adobe-spectrum", "
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
46
|
+
"abyss", "acid", "adobe-spectrum", "ant-design", "aqua",
|
|
47
|
+
"atlassian", "autumn", "black", "bumblebee", "business",
|
|
48
|
+
"cappuccino", "caramellatte", "cmyk", "coffee", "corporate",
|
|
49
|
+
"cupcake", "cyberpunk", "dark", "dim", "dracula", "emerald",
|
|
50
|
+
"excel", "fantasy", "fluent", "forest", "garden",
|
|
51
|
+
"github-primer", "halloween", "ibm-carbon", "lemonade", "light",
|
|
52
|
+
"linear", "lofi", "luxury", "mozilla-protocol", "night", "nord",
|
|
53
|
+
"notion", "pastel", "retro", "salesforce", "sap-fiori", "silk",
|
|
54
|
+
"sunset", "synthwave", "valentine", "vercel", "winter",
|
|
55
|
+
"wireframe",
|
|
53
56
|
"united-kingdom-government-digital-service",
|
|
54
57
|
"united-kingdom-national-health-service-england-for-patients",
|
|
55
58
|
"united-kingdom-national-health-service-england-for-practitioners",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lilydesignsystem/nunjucks-picker-bar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": "=26"
|
|
6
6
|
},
|
|
@@ -22,7 +22,10 @@
|
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
|
25
|
-
"
|
|
25
|
+
"build": "bash build.sh",
|
|
26
|
+
"test": "vitest run",
|
|
27
|
+
"test:watch": "vitest",
|
|
28
|
+
"prepublishOnly": "npm run build"
|
|
26
29
|
},
|
|
27
30
|
"dependencies": {
|
|
28
31
|
"@lilydesignsystem/nunjucks-link-picker": "^0.1.0",
|
|
@@ -32,6 +35,13 @@
|
|
|
32
35
|
"@lilydesignsystem/nunjucks-text-size-picker": "^0.2.0",
|
|
33
36
|
"@lilydesignsystem/nunjucks-share-picker": "^0.2.0"
|
|
34
37
|
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"jsdom": "^30.1.1",
|
|
40
|
+
"nunjucks": "^3.2.4",
|
|
41
|
+
"tsup": "^8.5.1",
|
|
42
|
+
"typescript": "^5.9.3",
|
|
43
|
+
"vitest": "^5.0.3"
|
|
44
|
+
},
|
|
35
45
|
"keywords": [
|
|
36
46
|
"lily",
|
|
37
47
|
"design",
|
|
@@ -49,7 +59,7 @@
|
|
|
49
59
|
"license": "MIT OR Apache-2.0 OR GPL-2.0-only OR GPL-3.0-only OR BSD-3-Clause",
|
|
50
60
|
"repository": {
|
|
51
61
|
"type": "git",
|
|
52
|
-
"url": "git+https://github.com/LilyDesignSystem/lily-design-system
|
|
62
|
+
"url": "git+https://github.com/LilyDesignSystem/lily-design-system.git",
|
|
53
63
|
"directory": "lily-design-system-nunjucks-picker-bar"
|
|
54
64
|
},
|
|
55
65
|
"homepage": "https://lilydesignsystem.com/",
|