@yahoo/uds 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";var u=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var y=(o,t)=>{for(var e in t)u(o,e,{get:t[e],enumerable:!0})},b=(o,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of a(t))!i.call(o,n)&&n!==e&&u(o,n,{get:()=>t[n],enumerable:!(r=B(t,n))||r.enumerable});return o};var c=o=>b(u({},"__esModule",{value:!0}),o);var m={};y(m,{Button:()=>p});module.exports=c(m);var s=require("react/jsx-runtime"),p=({children:o,type:t="button",variant:e="primary",...r})=>(0,s.jsxs)("button",{type:t,...r,children:[o," (",e,")"]});0&&(module.exports={Button});
@@ -0,0 +1,17 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React, { ButtonHTMLAttributes } from 'react';
3
+
4
+ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
5
+ /** Label for the button. Should be a string. */
6
+ children: React.ReactNode;
7
+ /** The HTML `type` attribute for the button. */
8
+ type?: 'button' | 'submit' | 'reset';
9
+ /** Variant for the button. */
10
+ variant?: 'primary' | 'secondary';
11
+ }
12
+ /**
13
+ * Buttons allow users to take actions, and make choices, with a single tap.
14
+ */
15
+ declare const Button: ({ children, type, variant, ...otherProps }: ButtonProps) => react_jsx_runtime.JSX.Element;
16
+
17
+ export { Button, ButtonProps };
@@ -0,0 +1,17 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React, { ButtonHTMLAttributes } from 'react';
3
+
4
+ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
5
+ /** Label for the button. Should be a string. */
6
+ children: React.ReactNode;
7
+ /** The HTML `type` attribute for the button. */
8
+ type?: 'button' | 'submit' | 'reset';
9
+ /** Variant for the button. */
10
+ variant?: 'primary' | 'secondary';
11
+ }
12
+ /**
13
+ * Buttons allow users to take actions, and make choices, with a single tap.
14
+ */
15
+ declare const Button: ({ children, type, variant, ...otherProps }: ButtonProps) => react_jsx_runtime.JSX.Element;
16
+
17
+ export { Button, ButtonProps };
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ import{jsxs as u}from"react/jsx-runtime";var r=({children:t,type:o="button",variant:e="primary",...n})=>u("button",{type:o,...n,children:[t," (",e,")"]});export{r as Button};
@@ -0,0 +1 @@
1
+ "use strict";var t=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var n=Object.prototype.hasOwnProperty;var c=(o,r)=>{for(var l in r)t(o,l,{get:r[l],enumerable:!0})},v=(o,r,l,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of y(r))!n.call(o,e)&&e!==l&&t(o,e,{get:()=>r[e],enumerable:!(a=p(r,e))||a.enumerable});return o};var x=o=>v(t({},"__esModule",{value:!0}),o);var i={};c(i,{red60:()=>d,textPrimary:()=>u});module.exports=x(i);var d={color:"var(--red60)",value:60},u={color:"var(--text-primary)",value:6};0&&(module.exports={red60,textPrimary});
@@ -0,0 +1,12 @@
1
+ /**
2
+ * DO NOT EDIT THIS FILE DIRECTLY
3
+ * This file would be generated from style-dictionary or other tooling
4
+ */
5
+ type ColorType = {
6
+ readonly color: string;
7
+ readonly value: number;
8
+ };
9
+ declare const red60: ColorType;
10
+ declare const textPrimary: ColorType;
11
+
12
+ export { ColorType, red60, textPrimary };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * DO NOT EDIT THIS FILE DIRECTLY
3
+ * This file would be generated from style-dictionary or other tooling
4
+ */
5
+ type ColorType = {
6
+ readonly color: string;
7
+ readonly value: number;
8
+ };
9
+ declare const red60: ColorType;
10
+ declare const textPrimary: ColorType;
11
+
12
+ export { ColorType, red60, textPrimary };
@@ -0,0 +1 @@
1
+ var r={color:"var(--red60)",value:60},o={color:"var(--text-primary)",value:6};export{r as red60,o as textPrimary};
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@yahoo/uds",
3
+ "version": "0.0.6",
4
+ "description": "Yahoo Universal System",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "sideEffects": false,
10
+ "exports": {
11
+ ".": "./dist/index.js",
12
+ "./tokens/*": "./dist/tokens/*.js",
13
+ "./package.json": "./package.json"
14
+ },
15
+ "files": [
16
+ "dist/**",
17
+ "package.json"
18
+ ],
19
+ "devDependencies": {
20
+ "@types/react": "^18.2.33",
21
+ "@types/react-dom": "^18.2.14",
22
+ "react": "^18.2.0",
23
+ "react-dom": "^18.2.0",
24
+ "tsup": "^7.2.0",
25
+ "typescript": "^5.2.2",
26
+ "eslint-config-custom": "0.0.1",
27
+ "tsconfig": "0.0.1"
28
+ },
29
+ "scripts": {
30
+ "build": "tsup",
31
+ "dev": "tsup --watch",
32
+ "lint": "eslint .",
33
+ "test": "vitest run",
34
+ "test:watch": "vitest",
35
+ "test:coverage": "vitest run --coverage",
36
+ "test:ui": "vitest --ui --coverage",
37
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
38
+ }
39
+ }