@planningcenter/doxy-web
Advanced tools
Comparing version 1.13.0-rc.3 to 1.13.0
@@ -1,2 +0,2 @@ | ||
declare type TextColor = "tint0" | "tint1" | "tint2" | "tint3" | "tint4" | "tint5" | "tint6" | "tint7" | "tint8" | "tint9" | "tint10"; | ||
declare type TextColor = "brand" | "tint0" | "tint1" | "tint2" | "tint3" | "tint4" | "tint5" | "tint6" | "tint7" | "tint8" | "tint9" | "tint10"; | ||
export interface HeadingProps { | ||
@@ -3,0 +3,0 @@ color?: TextColor; |
@@ -0,8 +1,15 @@ | ||
import React from "react"; | ||
export interface SelectProps { | ||
children: JSX.Element[]; | ||
disabled?: boolean; | ||
id: string; | ||
label?: string; | ||
onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void; | ||
options: { | ||
label: string; | ||
value: string; | ||
disabled?: boolean; | ||
}[]; | ||
size?: "md" | "sm"; | ||
value?: string; | ||
} | ||
export declare const Select: ({ children, disabled, id, label, size, }: SelectProps) => JSX.Element; | ||
export declare const Select: ({ disabled, id, label, onChange, options, size, value, }: SelectProps) => JSX.Element; |
@@ -1,2 +0,2 @@ | ||
declare type TextColor = "tint0" | "tint1" | "tint2" | "tint3" | "tint4" | "tint5" | "tint6" | "tint7" | "tint8" | "tint9" | "tint10"; | ||
declare type TextColor = "brand" | "tint0" | "tint1" | "tint2" | "tint3" | "tint4" | "tint5" | "tint6" | "tint7" | "tint8" | "tint9" | "tint10"; | ||
export interface SubheadingProps { | ||
@@ -3,0 +3,0 @@ color?: TextColor; |
@@ -0,8 +1,12 @@ | ||
import React from "react"; | ||
export interface TextareaProps { | ||
disabled?: boolean; | ||
id: string; | ||
label?: string; | ||
name: string; | ||
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void; | ||
placeholder?: string; | ||
rows?: number; | ||
value?: string; | ||
} | ||
export declare const Textarea: ({ disabled, id, name, placeholder, rows, }: TextareaProps) => JSX.Element; | ||
export declare const Textarea: ({ disabled, id, label, name, onChange, placeholder, rows, value, }: TextareaProps) => JSX.Element; |
@@ -0,1 +1,2 @@ | ||
import React from "react"; | ||
export interface TextInputProps { | ||
@@ -5,5 +6,7 @@ disabled?: boolean; | ||
label?: string; | ||
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void; | ||
placeholder?: string; | ||
size?: "md" | "sm"; | ||
value?: string; | ||
} | ||
export declare const TextInput: ({ disabled, id, label, placeholder, size, }: TextInputProps) => JSX.Element; | ||
export declare const TextInput: ({ disabled, id, label, onChange, placeholder, size, value, }: TextInputProps) => JSX.Element; |
@@ -6,3 +6,3 @@ import e from"react";var t,l={exports:{}}; | ||
http://jedwatson.github.io/classnames | ||
*/t=l,function(){var e={}.hasOwnProperty;function l(){for(var t=[],a=0;a<arguments.length;a++){var r=arguments[a];if(r){var n=typeof r;if("string"===n||"number"===n)t.push(r);else if(Array.isArray(r)){if(r.length){var s=l.apply(null,r);s&&t.push(s)}}else if("object"===n){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){t.push(r.toString());continue}for(var c in r)e.call(r,c)&&r[c]&&t.push(c)}}}return t.join(" ")}t.exports?(l.default=l,t.exports=l):window.classNames=l}();var a=l.exports;const r=t=>{let{size:l="md",text:r,theme:n="default",variant:s="default"}=t;return e.createElement("div",{className:a("alert",`${l}-alert`,`${n}-alert`,`${s}-alert`),role:"alert"},r)},n=t=>{let{size:l="md",text:a,theme:r="default"}=t;return e.createElement("span",{className:["badge",`${r}-badge`,`${l}-badge`].join(" ")},a)},s=t=>{let{disabled:l=!1,onClick:r,size:n="lg",text:s,theme:c="primary",type:i="button",variant:d="filled"}=t;return e.createElement("button",{type:i,className:a("btn",`${n}-btn`,`${d}-btn`,`${c}-btn`),disabled:l,onClick:r},s)},c=t=>{let{checked:l,disabled:r=!1,id:n,onChange:s,size:c="md",label:i}=t;return e.createElement("div",{className:"d-f p-r"},e.createElement("input",{type:"checkbox",id:n,className:a("checkbox","lg"===c&&"large-checkbox"),checked:l,disabled:r,onChange:e=>{s&&s(e)}}),e.createElement("label",{htmlFor:n,className:a("checkbox-label","lg"===c&&"large-checkbox-label")},e.createElement("span",{className:"d-b ml-1"},i)))},i={1:"fs-0",2:"fs-21",3:"fs-2",4:"fs-3",5:"fs-4",6:"fs-5"},d=e=>`c-${e}`,m=(e,t)=>i[t||e],o=t=>{let{color:l="tint0",level:r,size:n,text:s}=t;const c=`h${r}`;return e.createElement(c,{className:a("lh-1.333",d(l),m(r,n),5===r&&"tt-n","fw-600")},s)},h=t=>{let{alt:l,src:a,width:r,height:n}=t;return e.createElement("img",{alt:l,height:n,src:a,width:r})},b=t=>{let{children:l,disabled:r=!1,id:n,label:s="",size:c="md"}=t;return e.createElement(e.Fragment,null,s&&e.createElement("label",{htmlFor:n},s),e.createElement("select",{id:n,className:a("select","sm"===c&&"small-select"),disabled:r},l))},u=e=>`c-${e}`,p=t=>{let{color:l="tint3",level:r,text:n}=t;const s=`h${r}`;return e.createElement(s,{className:a("fs-4 fw-600 lh-20p tt-u",u(l))},n)},f=t=>{let{disabled:l=!1,id:a,name:r,placeholder:n="",rows:s=2}=t;return e.createElement("textarea",{disabled:l,id:a,name:r,placeholder:n,rows:s})},g=t=>{let{disabled:l=!1,id:a,label:r="",placeholder:n="",size:s="md"}=t;return e.createElement(e.Fragment,null,r&&e.createElement("label",{htmlFor:a},r),e.createElement("input",{type:"text",className:["text-input",`${(()=>{if("sm"==s)return"sm-input"})()}`].join(" "),name:a,id:a,placeholder:n,disabled:l}))};export{r as Alert,n as Badge,s as Button,c as Checkbox,o as Heading,h as Image,b as Select,p as Subheading,g as TextInput,f as Textarea}; | ||
*/t=l,function(){var e={}.hasOwnProperty;function l(){for(var t=[],a=0;a<arguments.length;a++){var n=arguments[a];if(n){var r=typeof n;if("string"===r||"number"===r)t.push(n);else if(Array.isArray(n)){if(n.length){var s=l.apply(null,n);s&&t.push(s)}}else if("object"===r){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){t.push(n.toString());continue}for(var c in n)e.call(n,c)&&n[c]&&t.push(c)}}}return t.join(" ")}t.exports?(l.default=l,t.exports=l):window.classNames=l}();var a=l.exports;const n=t=>{let{size:l="md",text:n,theme:r="default",variant:s="default"}=t;return e.createElement("div",{className:a("alert",`${l}-alert`,`${r}-alert`,`${s}-alert`),role:"alert"},n)},r=t=>{let{size:l="md",text:a,theme:n="default"}=t;return e.createElement("span",{className:["badge",`${n}-badge`,`${l}-badge`].join(" ")},a)},s=t=>{let{disabled:l=!1,onClick:n,size:r="lg",text:s,theme:c="primary",type:i="button",variant:o="filled"}=t;return e.createElement("button",{type:i,className:a("btn",`${r}-btn`,`${o}-btn`,`${c}-btn`),disabled:l,onClick:n},s)},c=t=>{let{checked:l,disabled:n=!1,id:r,onChange:s,size:c="md",label:i}=t;return e.createElement("div",{className:"d-f p-r"},e.createElement("input",{type:"checkbox",id:r,className:a("checkbox","lg"===c&&"large-checkbox"),checked:l,disabled:n,onChange:e=>{s&&s(e)}}),e.createElement("label",{htmlFor:r,className:a("checkbox-label","lg"===c&&"large-checkbox-label")},e.createElement("span",{className:"d-b ml-1"},i)))},i={1:"fs-0",2:"fs-21",3:"fs-2",4:"fs-3",5:"fs-4",6:"fs-5"},o=e=>`c-${e}`,m=(e,t)=>i[t||e],d=t=>{let{color:l="tint0",level:n,size:r,text:s}=t;const c=`h${n}`;return e.createElement(c,{className:a("lh-1.333",o(l),m(n,r),5===n&&"tt-n","fw-600")},s)},u=t=>{let{alt:l,src:a,width:n,height:r}=t;return e.createElement("img",{alt:l,height:r,src:a,width:n})},h=t=>{let{disabled:l=!1,id:n,label:r="",onChange:s,options:c=[],size:i="md",value:o}=t;return e.createElement(e.Fragment,null,r&&e.createElement("label",{htmlFor:n},r),e.createElement("select",{id:n,className:a("select","sm"===i&&"small-select"),disabled:l,onChange:e=>"function"==typeof s&&s(e),value:o},c.map((t=>{let{label:l,value:a,disabled:n}=t;return e.createElement("option",{key:l,value:a,disabled:n},l)}))))},b=e=>`c-${e}`,p=t=>{let{color:l="tint3",level:n,text:r}=t;const s=`h${n}`;return e.createElement(s,{className:a("fs-4 fw-600 lh-20p tt-u",b(l))},r)},f=t=>{let{disabled:l=!1,id:a,label:n="",name:r,onChange:s,placeholder:c="",rows:i=2,value:o=""}=t;return e.createElement(e.Fragment,null,n&&e.createElement("label",{htmlFor:a},n),e.createElement("textarea",{disabled:l,id:a,name:r,onChange:e=>"function"==typeof s&&s(e),placeholder:c,rows:i,value:o}))},g=t=>{let{disabled:l=!1,id:a,label:n="",onChange:r,placeholder:s="",size:c="md",value:i=""}=t;return e.createElement(e.Fragment,null,n&&e.createElement("label",{htmlFor:a},n),e.createElement("input",{className:["text-input",`${(()=>{if("sm"==c)return"sm-input"})()}`].join(" "),disabled:l,id:a,name:a,onChange:e=>"function"==typeof r&&r(e),placeholder:s,type:"text",value:i}))};export{n as Alert,r as Badge,s as Button,c as Checkbox,d as Heading,u as Image,h as Select,p as Subheading,g as TextInput,f as Textarea}; | ||
//# sourceMappingURL=index.es.js.map |
@@ -7,3 +7,3 @@ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t,l=e(require("react")),a={exports:{}}; | ||
*/ | ||
t=a,function(){var e={}.hasOwnProperty;function l(){for(var t=[],a=0;a<arguments.length;a++){var r=arguments[a];if(r){var n=typeof r;if("string"===n||"number"===n)t.push(r);else if(Array.isArray(r)){if(r.length){var s=l.apply(null,r);s&&t.push(s)}}else if("object"===n){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){t.push(r.toString());continue}for(var d in r)e.call(r,d)&&r[d]&&t.push(d)}}}return t.join(" ")}t.exports?(l.default=l,t.exports=l):window.classNames=l}();var r=a.exports;const n={1:"fs-0",2:"fs-21",3:"fs-2",4:"fs-3",5:"fs-4",6:"fs-5"},s=e=>`c-${e}`,d=(e,t)=>n[t||e],c=e=>`c-${e}`;exports.Alert=e=>{let{size:t="md",text:a,theme:n="default",variant:s="default"}=e;return l.default.createElement("div",{className:r("alert",`${t}-alert`,`${n}-alert`,`${s}-alert`),role:"alert"},a)},exports.Badge=e=>{let{size:t="md",text:a,theme:r="default"}=e;return l.default.createElement("span",{className:["badge",`${r}-badge`,`${t}-badge`].join(" ")},a)},exports.Button=e=>{let{disabled:t=!1,onClick:a,size:n="lg",text:s,theme:d="primary",type:c="button",variant:i="filled"}=e;return l.default.createElement("button",{type:c,className:r("btn",`${n}-btn`,`${i}-btn`,`${d}-btn`),disabled:t,onClick:a},s)},exports.Checkbox=e=>{let{checked:t,disabled:a=!1,id:n,onChange:s,size:d="md",label:c}=e;return l.default.createElement("div",{className:"d-f p-r"},l.default.createElement("input",{type:"checkbox",id:n,className:r("checkbox","lg"===d&&"large-checkbox"),checked:t,disabled:a,onChange:e=>{s&&s(e)}}),l.default.createElement("label",{htmlFor:n,className:r("checkbox-label","lg"===d&&"large-checkbox-label")},l.default.createElement("span",{className:"d-b ml-1"},c)))},exports.Heading=e=>{let{color:t="tint0",level:a,size:n,text:c}=e;const i=`h${a}`;return l.default.createElement(i,{className:r("lh-1.333",s(t),d(a,n),5===a&&"tt-n","fw-600")},c)},exports.Image=e=>{let{alt:t,src:a,width:r,height:n}=e;return l.default.createElement("img",{alt:t,height:n,src:a,width:r})},exports.Select=e=>{let{children:t,disabled:a=!1,id:n,label:s="",size:d="md"}=e;return l.default.createElement(l.default.Fragment,null,s&&l.default.createElement("label",{htmlFor:n},s),l.default.createElement("select",{id:n,className:r("select","sm"===d&&"small-select"),disabled:a},t))},exports.Subheading=e=>{let{color:t="tint3",level:a,text:n}=e;const s=`h${a}`;return l.default.createElement(s,{className:r("fs-4 fw-600 lh-20p tt-u",c(t))},n)},exports.TextInput=e=>{let{disabled:t=!1,id:a,label:r="",placeholder:n="",size:s="md"}=e;return l.default.createElement(l.default.Fragment,null,r&&l.default.createElement("label",{htmlFor:a},r),l.default.createElement("input",{type:"text",className:["text-input",`${(()=>{if("sm"==s)return"sm-input"})()}`].join(" "),name:a,id:a,placeholder:n,disabled:t}))},exports.Textarea=e=>{let{disabled:t=!1,id:a,name:r,placeholder:n="",rows:s=2}=e;return l.default.createElement("textarea",{disabled:t,id:a,name:r,placeholder:n,rows:s})}; | ||
t=a,function(){var e={}.hasOwnProperty;function l(){for(var t=[],a=0;a<arguments.length;a++){var r=arguments[a];if(r){var n=typeof r;if("string"===n||"number"===n)t.push(r);else if(Array.isArray(r)){if(r.length){var s=l.apply(null,r);s&&t.push(s)}}else if("object"===n){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){t.push(r.toString());continue}for(var d in r)e.call(r,d)&&r[d]&&t.push(d)}}}return t.join(" ")}t.exports?(l.default=l,t.exports=l):window.classNames=l}();var r=a.exports;const n={1:"fs-0",2:"fs-21",3:"fs-2",4:"fs-3",5:"fs-4",6:"fs-5"},s=e=>`c-${e}`,d=(e,t)=>n[t||e],o=e=>`c-${e}`;exports.Alert=e=>{let{size:t="md",text:a,theme:n="default",variant:s="default"}=e;return l.default.createElement("div",{className:r("alert",`${t}-alert`,`${n}-alert`,`${s}-alert`),role:"alert"},a)},exports.Badge=e=>{let{size:t="md",text:a,theme:r="default"}=e;return l.default.createElement("span",{className:["badge",`${r}-badge`,`${t}-badge`].join(" ")},a)},exports.Button=e=>{let{disabled:t=!1,onClick:a,size:n="lg",text:s,theme:d="primary",type:o="button",variant:c="filled"}=e;return l.default.createElement("button",{type:o,className:r("btn",`${n}-btn`,`${c}-btn`,`${d}-btn`),disabled:t,onClick:a},s)},exports.Checkbox=e=>{let{checked:t,disabled:a=!1,id:n,onChange:s,size:d="md",label:o}=e;return l.default.createElement("div",{className:"d-f p-r"},l.default.createElement("input",{type:"checkbox",id:n,className:r("checkbox","lg"===d&&"large-checkbox"),checked:t,disabled:a,onChange:e=>{s&&s(e)}}),l.default.createElement("label",{htmlFor:n,className:r("checkbox-label","lg"===d&&"large-checkbox-label")},l.default.createElement("span",{className:"d-b ml-1"},o)))},exports.Heading=e=>{let{color:t="tint0",level:a,size:n,text:o}=e;const c=`h${a}`;return l.default.createElement(c,{className:r("lh-1.333",s(t),d(a,n),5===a&&"tt-n","fw-600")},o)},exports.Image=e=>{let{alt:t,src:a,width:r,height:n}=e;return l.default.createElement("img",{alt:t,height:n,src:a,width:r})},exports.Select=e=>{let{disabled:t=!1,id:a,label:n="",onChange:s,options:d=[],size:o="md",value:c}=e;return l.default.createElement(l.default.Fragment,null,n&&l.default.createElement("label",{htmlFor:a},n),l.default.createElement("select",{id:a,className:r("select","sm"===o&&"small-select"),disabled:t,onChange:e=>"function"==typeof s&&s(e),value:c},d.map((e=>{let{label:t,value:a,disabled:r}=e;return l.default.createElement("option",{key:t,value:a,disabled:r},t)}))))},exports.Subheading=e=>{let{color:t="tint3",level:a,text:n}=e;const s=`h${a}`;return l.default.createElement(s,{className:r("fs-4 fw-600 lh-20p tt-u",o(t))},n)},exports.TextInput=e=>{let{disabled:t=!1,id:a,label:r="",onChange:n,placeholder:s="",size:d="md",value:o=""}=e;return l.default.createElement(l.default.Fragment,null,r&&l.default.createElement("label",{htmlFor:a},r),l.default.createElement("input",{className:["text-input",`${(()=>{if("sm"==d)return"sm-input"})()}`].join(" "),disabled:t,id:a,name:a,onChange:e=>"function"==typeof n&&n(e),placeholder:s,type:"text",value:o}))},exports.Textarea=e=>{let{disabled:t=!1,id:a,label:r="",name:n,onChange:s,placeholder:d="",rows:o=2,value:c=""}=e;return l.default.createElement(l.default.Fragment,null,r&&l.default.createElement("label",{htmlFor:a},r),l.default.createElement("textarea",{disabled:t,id:a,name:n,onChange:e=>"function"==typeof s&&s(e),placeholder:d,rows:o,value:c}))}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@planningcenter/doxy-web", | ||
"version": "1.13.0-rc.3", | ||
"version": "1.13.0", | ||
"description": "Doxy for Church Center Web", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
199210
164
1
30