@lilydesignsystem/html-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 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
@@ -22,7 +22,7 @@ export { ShareTarget } from '@lilydesignsystem/html-share-picker';
22
22
  */
23
23
 
24
24
  /**
25
- * All 45 Lily reference theme slugs (see `themes/` at the repo root),
25
+ * All 57 Lily reference theme slugs (see `themes/` at the repo root),
26
26
  * sorted alphabetically except the United Kingdom and United States
27
27
  * government/public-sector themes, which sort last as one alphabetical
28
28
  * group of their own. Mirrors `theme-picker`'s own title-casing of each
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // lily-design-system-html-picker-bar/picker-bar.ts
1
+ // picker-bar.ts
2
2
  import "@lilydesignsystem/html-link-picker";
3
3
  import "@lilydesignsystem/html-search-picker";
4
4
  import "@lilydesignsystem/html-theme-picker";
@@ -9,11 +9,14 @@ var DEFAULT_THEMES = [
9
9
  "abyss",
10
10
  "acid",
11
11
  "adobe-spectrum",
12
+ "ant-design",
12
13
  "aqua",
14
+ "atlassian",
13
15
  "autumn",
14
16
  "black",
15
17
  "bumblebee",
16
18
  "business",
19
+ "cappuccino",
17
20
  "caramellatte",
18
21
  "cmyk",
19
22
  "coffee",
@@ -24,23 +27,32 @@ var DEFAULT_THEMES = [
24
27
  "dim",
25
28
  "dracula",
26
29
  "emerald",
30
+ "excel",
27
31
  "fantasy",
32
+ "fluent",
28
33
  "forest",
29
34
  "garden",
35
+ "github-primer",
30
36
  "halloween",
37
+ "ibm-carbon",
31
38
  "lemonade",
32
39
  "light",
40
+ "linear",
33
41
  "lofi",
34
42
  "luxury",
35
43
  "mozilla-protocol",
36
44
  "night",
37
45
  "nord",
46
+ "notion",
38
47
  "pastel",
39
48
  "retro",
49
+ "salesforce",
50
+ "sap-fiori",
40
51
  "silk",
41
52
  "sunset",
42
53
  "synthwave",
43
54
  "valentine",
55
+ "vercel",
44
56
  "winter",
45
57
  "wireframe",
46
58
  "united-kingdom-government-digital-service",
@@ -318,7 +330,7 @@ function parseCsv(s) {
318
330
  return s.split(",").map((p) => p.trim()).filter((p) => p.length > 0);
319
331
  }
320
332
 
321
- // lily-design-system-html-picker-bar/index.ts
333
+ // index.ts
322
334
  if (typeof customElements !== "undefined" && !customElements.get("picker-bar")) {
323
335
  customElements.define("picker-bar", PickerBar);
324
336
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilydesignsystem/html-picker-bar",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "engines": {
5
5
  "node": "=26"
6
6
  },
@@ -21,7 +21,10 @@
21
21
  "README.md"
22
22
  ],
23
23
  "scripts": {
24
- "prepublishOnly": "cd .. && npm run build"
24
+ "build": "node build.js",
25
+ "test": "vitest run",
26
+ "test:watch": "vitest",
27
+ "prepublishOnly": "npm run build"
25
28
  },
26
29
  "dependencies": {
27
30
  "@lilydesignsystem/html-link-picker": "^0.1.0",
@@ -31,6 +34,12 @@
31
34
  "@lilydesignsystem/html-text-size-picker": "^0.2.0",
32
35
  "@lilydesignsystem/html-share-picker": "^0.2.0"
33
36
  },
37
+ "devDependencies": {
38
+ "jsdom": "^30.1.1",
39
+ "tsup": "^8.5.1",
40
+ "typescript": "^5.9.3",
41
+ "vitest": "^5.0.3"
42
+ },
34
43
  "keywords": [
35
44
  "lily",
36
45
  "design",
@@ -48,7 +57,7 @@
48
57
  "license": "MIT OR Apache-2.0 OR GPL-2.0-only OR GPL-3.0-only OR BSD-3-Clause",
49
58
  "repository": {
50
59
  "type": "git",
51
- "url": "git+https://github.com/LilyDesignSystem/lily-design-system-html-helpers.git",
60
+ "url": "git+https://github.com/LilyDesignSystem/lily-design-system.git",
52
61
  "directory": "lily-design-system-html-picker-bar"
53
62
  },
54
63
  "homepage": "https://lilydesignsystem.com/",