@next-degree/pickle-shared-js 0.3.19 → 0.3.20
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/README.md +47 -1
- package/dist/app/layout.cjs +70 -1
- package/dist/app/layout.cjs.map +1 -1
- package/dist/app/layout.css +1263 -1
- package/dist/app/layout.css.map +1 -1
- package/dist/app/layout.js +35 -1
- package/dist/app/layout.js.map +1 -1
- package/dist/app/page.cjs +774 -1
- package/dist/app/page.cjs.map +1 -1
- package/dist/app/page.js +743 -1
- package/dist/app/page.js.map +1 -1
- package/dist/assets/fonts/AmbitBold.cjs +2 -1
- package/dist/assets/fonts/AmbitBold.js +5 -1
- package/dist/assets/fonts/AmbitBoldItalic.cjs +2 -1
- package/dist/assets/fonts/AmbitBoldItalic.js +5 -1
- package/dist/assets/fonts/AmbitRegular.cjs +2 -1
- package/dist/assets/fonts/AmbitRegular.js +5 -1
- package/dist/components/demos/ComboboxDemo.cjs +759 -1
- package/dist/components/demos/ComboboxDemo.cjs.map +1 -1
- package/dist/components/demos/ComboboxDemo.js +731 -1
- package/dist/components/demos/ComboboxDemo.js.map +1 -1
- package/dist/components/demos/index.cjs +767 -1
- package/dist/components/demos/index.cjs.map +1 -1
- package/dist/components/demos/index.js +736 -1
- package/dist/components/demos/index.js.map +1 -1
- package/dist/components/primitives/command.cjs +223 -1
- package/dist/components/primitives/command.cjs.map +1 -1
- package/dist/components/primitives/command.js +181 -1
- package/dist/components/primitives/command.js.map +1 -1
- package/dist/components/primitives/dialog.cjs +137 -1
- package/dist/components/primitives/dialog.cjs.map +1 -1
- package/dist/components/primitives/dialog.js +92 -1
- package/dist/components/primitives/dialog.js.map +1 -1
- package/dist/components/primitives/popover.cjs +72 -1
- package/dist/components/primitives/popover.cjs.map +1 -1
- package/dist/components/primitives/popover.js +36 -1
- package/dist/components/primitives/popover.js.map +1 -1
- package/dist/components/primitives/separator.cjs +67 -1
- package/dist/components/primitives/separator.cjs.map +1 -1
- package/dist/components/primitives/separator.js +33 -1
- package/dist/components/primitives/separator.js.map +1 -1
- package/dist/components/ui/Badge.cjs +57 -1
- package/dist/components/ui/Badge.cjs.map +1 -1
- package/dist/components/ui/Badge.js +31 -1
- package/dist/components/ui/Badge.js.map +1 -1
- package/dist/components/ui/Button.cjs +145 -1
- package/dist/components/ui/Button.cjs.map +1 -1
- package/dist/components/ui/Button.js +118 -1
- package/dist/components/ui/Button.js.map +1 -1
- package/dist/components/ui/Checkbox.cjs +99 -1
- package/dist/components/ui/Checkbox.cjs.map +1 -1
- package/dist/components/ui/Checkbox.js +71 -1
- package/dist/components/ui/Checkbox.js.map +1 -1
- package/dist/components/ui/Chip.cjs +49 -1
- package/dist/components/ui/Chip.cjs.map +1 -1
- package/dist/components/ui/Chip.js +28 -1
- package/dist/components/ui/Chip.js.map +1 -1
- package/dist/components/ui/Combobox.cjs +564 -1
- package/dist/components/ui/Combobox.cjs.map +1 -1
- package/dist/components/ui/Combobox.js +532 -1
- package/dist/components/ui/Combobox.js.map +1 -1
- package/dist/components/ui/Label.cjs +50 -1
- package/dist/components/ui/Label.cjs.map +1 -1
- package/dist/components/ui/Label.js +27 -1
- package/dist/components/ui/Label.js.map +1 -1
- package/dist/components/ui/ListItem.cjs +151 -1
- package/dist/components/ui/ListItem.cjs.map +1 -1
- package/dist/components/ui/ListItem.js +120 -1
- package/dist/components/ui/ListItem.js.map +1 -1
- package/dist/components/ui/Select.cjs +246 -1
- package/dist/components/ui/Select.cjs.map +1 -1
- package/dist/components/ui/Select.js +221 -1
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/index.cjs +855 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +817 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/utils.cjs +34 -1
- package/dist/lib/utils.cjs.map +1 -1
- package/dist/lib/utils.js +9 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/styles/globals.css +1263 -1
- package/dist/styles/globals.css.map +1 -1
- package/package.json +14 -17
package/README.md
CHANGED
|
@@ -5,5 +5,51 @@ This is a simple library of shared components for Pickle.
|
|
|
5
5
|
To install the package, run the following command:
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm
|
|
8
|
+
npm install Next-Degree/pickle-shared-js
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Steps to Publish
|
|
12
|
+
|
|
13
|
+
1. Update the Version
|
|
14
|
+
Update the version in the package.json file. This should be done manually. Then run:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm i
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
2. Bundle the Package
|
|
21
|
+
To bundle the package, run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm run bundle
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
3. Verify the Contents of the Package
|
|
28
|
+
To preview what will be published, run:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npm pack --dry-run
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
4. Open PR and Merge
|
|
35
|
+
Open a PR and merge the changes to the MAIN branch.
|
|
36
|
+
|
|
37
|
+
5. Add a tag to the MAIN branch
|
|
38
|
+
To add a tag to the repository, run:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
git checkout main
|
|
42
|
+
git pull origin main # Ensure your local branch is up to date
|
|
43
|
+
git tag -a v0.3.20 -m "Release version 0.3.20"
|
|
44
|
+
git push origin v0.3.20 # Push the tag to the remote
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## How to test the package locally
|
|
48
|
+
|
|
49
|
+
1. Push the changes to the repository in a new branch.
|
|
50
|
+
|
|
51
|
+
2. Run the following command to install the package locally:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npm install Next-Degree/pickle-shared-js#feature/new-feature
|
|
9
55
|
```
|
package/dist/app/layout.cjs
CHANGED
|
@@ -1,2 +1,71 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/app/layout.tsx
|
|
31
|
+
var layout_exports = {};
|
|
32
|
+
__export(layout_exports, {
|
|
33
|
+
default: () => RootLayout,
|
|
34
|
+
metadata: () => metadata
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(layout_exports);
|
|
37
|
+
var import_styles = require("@radix-ui/themes/styles.css");
|
|
38
|
+
var import_local = __toESM(require("next/font/local"), 1);
|
|
39
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
40
|
+
var metadata = {
|
|
41
|
+
title: "Next.js",
|
|
42
|
+
description: "Generated by Next.js"
|
|
43
|
+
};
|
|
44
|
+
var ambit = (0, import_local.default)({
|
|
45
|
+
src: [
|
|
46
|
+
{
|
|
47
|
+
path: "../assets/fonts/AmbitRegular.otf",
|
|
48
|
+
weight: "400",
|
|
49
|
+
style: "normal"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
path: "../assets/fonts/AmbitBold.otf",
|
|
53
|
+
weight: "700",
|
|
54
|
+
style: "normal"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
path: "../assets/fonts/AmbitBoldItalic.otf",
|
|
58
|
+
weight: "700",
|
|
59
|
+
style: "italic"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
variable: "--font-ambit"
|
|
63
|
+
});
|
|
64
|
+
function RootLayout({ children }) {
|
|
65
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("html", { lang: "en", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("body", { className: ambit.className, children }) });
|
|
66
|
+
}
|
|
67
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
68
|
+
0 && (module.exports = {
|
|
69
|
+
metadata
|
|
70
|
+
});
|
|
2
71
|
//# sourceMappingURL=layout.cjs.map
|
package/dist/app/layout.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/app/layout.tsx"],"sourcesContent":["import '@/styles/globals.css'\nimport '@radix-ui/themes/styles.css'\nimport localFont from 'next/font/local'\n\nexport const metadata = {\n title: 'Next.js',\n description: 'Generated by Next.js',\n}\n\nconst ambit = localFont({\n src: [\n {\n path: '../assets/fonts/AmbitRegular.otf',\n weight: '400',\n style: 'normal',\n },\n {\n path: '../assets/fonts/AmbitBold.otf',\n weight: '700',\n style: 'normal',\n },\n {\n path: '../assets/fonts/AmbitBoldItalic.otf',\n weight: '700',\n style: 'italic',\n },\n ],\n variable: '--font-ambit',\n})\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n <html lang=\"en\">\n <body className={ambit.className}>{children}</body>\n </html>\n )\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/app/layout.tsx"],"sourcesContent":["import '@/styles/globals.css'\nimport '@radix-ui/themes/styles.css'\nimport localFont from 'next/font/local'\n\nexport const metadata = {\n title: 'Next.js',\n description: 'Generated by Next.js',\n}\n\nconst ambit = localFont({\n src: [\n {\n path: '../assets/fonts/AmbitRegular.otf',\n weight: '400',\n style: 'normal',\n },\n {\n path: '../assets/fonts/AmbitBold.otf',\n weight: '700',\n style: 'normal',\n },\n {\n path: '../assets/fonts/AmbitBoldItalic.otf',\n weight: '700',\n style: 'italic',\n },\n ],\n variable: '--font-ambit',\n})\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n <html lang=\"en\">\n <body className={ambit.className}>{children}</body>\n </html>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAO;AACP,mBAAsB;AA+BhB;AA7BC,IAAM,WAAW;AAAA,EACtB,OAAO;AAAA,EACP,aAAa;AACf;AAEA,IAAM,YAAQ,aAAAA,SAAU;AAAA,EACtB,KAAK;AAAA,IACH;AAAA,MACE,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AAAA,EACF;AAAA,EACA,UAAU;AACZ,CAAC;AAEc,SAAR,WAA4B,EAAE,SAAS,GAAkC;AAC9E,SACE,4CAAC,UAAK,MAAK,MACT,sDAAC,UAAK,WAAW,MAAM,WAAY,UAAS,GAC9C;AAEJ;","names":["localFont"]}
|