@sps-woodland/buttons 8.0.0-rc1

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,2 @@
1
+ import type { ComponentManifest } from "@sps-woodland/core";
2
+ export declare const MANIFEST: ComponentManifest;
package/lib/style.css ADDED
@@ -0,0 +1 @@
1
+ ._125pcxy0{border-width:.0625rem;border-style:solid;border-radius:.25rem;cursor:pointer;display:inline-block;font-size:.75rem;font-weight:600;line-height:.875rem;padding:0;position:relative}._125pcxy3{background:#e9e9ea;border-color:#d2d4d4;color:#4b5356}._125pcxy3:hover{background:#d2d4d4}._125pcxy4{background:none transparent;border:0;color:#007db8}._125pcxy4:hover{background:none transparent;color:#09638d;text-decoration:none}._125pcxy5{background:#007db8;border-color:#09638d;color:#fff}._125pcxy5:hover{background:#09638d}._125pcxy6{background:#de002e;border-color:#a30d2d;color:#fff}._125pcxy6:hover{background:#a30d2d}._125pcxy7{background:#4b5356;border-color:#1f282c;color:#fff}._125pcxy7:hover{background:#1f282c}._125pcxy8{background:transparent;border-color:transparent;color:#4b5356}._125pcxy8:hover{background-color:#d2d4d4;border-color:#d2d4d4}._125pcxy9{color:transparent!important;cursor:not-allowed}._125pcxyb{background:#e9e9ea;border-color:#d2d4d4}._125pcxyb:hover,._125pcxyc:hover{background:#e9e9ea}._125pcxyd:hover{background:#007db8}._125pcxye:hover{background:#de002e}._125pcxyf:hover{background:#4b5356}._125pcxyg{background:#ffffff!important;border-color:#d2d4d4!important;color:#717779!important;cursor:not-allowed}._125pcxyg:hover{background:#ffffff}._125pcxyh{background:none transparent;border:0 none;color:inherit;display:block;font-size:inherit;font-weight:inherit;margin:0;text-decoration:none;padding:.5rem 1rem}._125pcxyh:hover{text-decoration:none}._125pcxyi{cursor:not-allowed!important}._125pcxyk{padding:.25rem .5rem}._125pcxyp{padding-top:.5rem;padding-bottom:.5rem;padding-right:0;padding-left:0}._125pcxyq{cursor:not-allowed!important}._125pcxys{background:none transparent;border:0 none;color:inherit;cursor:inherit;display:block;font-size:inherit;font-weight:inherit;margin:0;padding:.5rem 1rem;text-decoration:none}._125pcxys:hover{text-decoration:none;color:inherit}._125pcxyt{cursor:not-allowed}._125pcxyv{line-height:0!important;position:relative}._125pcxyv:before{font-size:.875rem;line-height:0;margin-right:.5rem;position:relative;top:.125rem}._125pcxyw:before{margin-right:0}._125pcxy11:before{margin-right:.25rem}._125pcxy12{left:50%;margin:-.875rem -.4375rem;position:absolute}._125pcxy13{cursor:not-allowed;display:inline}._125pcxy14{display:none}._125pcxy12>i{border-width:.125rem;height:.875rem;width:.875rem}
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@sps-woodland/buttons",
3
+ "description": "SPS Woodland Design System button components",
4
+ "version": "8.0.0-rc1",
5
+ "author": "SPS Commerce",
6
+ "license": "UNLICENSED",
7
+ "repository": "https://github.com/SPSCommerce/woodland/tree/main/packages/@sps-woodland/buttons",
8
+ "homepage": "https://github.com/SPSCommerce/woodland/tree/master/packages/@sps-woodland/buttons#readme",
9
+ "main": "./lib/index.es.js",
10
+ "module": "./lib/index.es.js",
11
+ "types": "./lib/index.d.ts",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "peerDependencies": {
16
+ "@spscommerce/utils": "^6.12.1",
17
+ "react": "^16.9.0",
18
+ "react-dom": "^16.9.0",
19
+ "@sps-woodland/core": "8.0.0-rc1",
20
+ "@sps-woodland/tokens": "8.0.0-rc1"
21
+ },
22
+ "devDependencies": {
23
+ "@vanilla-extract/css": "^1.9.3",
24
+ "@vanilla-extract/recipes": "^0.2.5",
25
+ "@spscommerce/utils": "^6.12.1",
26
+ "@react-aria/button": "^3.3.5",
27
+ "react": "^16.9.0",
28
+ "react-dom": "^16.9.0",
29
+ "@sps-woodland/core": "8.0.0-rc1",
30
+ "@sps-woodland/tokens": "8.0.0-rc1"
31
+ },
32
+ "scripts": {
33
+ "build": "pnpm run build:js && pnpm run build:types",
34
+ "build:js": "vite build",
35
+ "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir lib",
36
+ "watch": "vite build --watch",
37
+ "clean": "git clean -fdX",
38
+ "pub": "node ../../scripts/publish-package.js"
39
+ }
40
+ }
package/vite.config.js ADDED
@@ -0,0 +1,21 @@
1
+ import path from "path";
2
+ import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
3
+ import { defineConfig } from "vite";
4
+
5
+ import pkg from "./package.json";
6
+
7
+ export default defineConfig({
8
+ plugins: [vanillaExtractPlugin()],
9
+ build: {
10
+ lib: {
11
+ entry: path.resolve(__dirname, "src/index.ts"),
12
+ formats: ["es", "cjs"],
13
+ fileName: (format) => `index.${format}.js`,
14
+ },
15
+ outDir: path.resolve(__dirname, "./lib"),
16
+ emptyOutDir: false,
17
+ rollupOptions: {
18
+ external: pkg.peerDependencies ? Object.keys(pkg.peerDependencies) : [],
19
+ },
20
+ },
21
+ });