diff --git a/docs/project.json b/docs/project.json index 3cd16c02..aacbb5ee 100644 --- a/docs/project.json +++ b/docs/project.json @@ -1 +1 @@ -{"generatedAt":1724955849942,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@jest/types":"29.6.3","@testing-library/dom":"8.16.1","@testing-library/jest-dom":"6.4.6","@testing-library/react":"11.2.7","@testing-library/react-hooks":"5.1.3","@testing-library/user-event":"13.5.0","@types/jest":"29.5.12","@types/sinon":"10.0.13","jest":"29.7.0","jest-environment-jsdom":"29.7.0","sinon":"9.2.4"},"packageManager":{"type":"yarn","version":"3.2.2"},"typescriptOptions":{"reactDocgen":false},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"8.1.5","storybookVersionSpecifier":"^8.1.5","language":"typescript","storybookPackages":{"@storybook/addon-links":{"version":"8.1.5"},"@storybook/react":{"version":"8.1.5"},"@storybook/react-webpack5":{"version":"8.1.6"},"storybook":{"version":"8.1.5"}},"addons":{"@storybook/addon-essentials":{"version":"8.1.5"},"@storybook/addon-controls":{"version":"8.1.5"},"@storybook/addon-actions":{"version":"8.1.5"},"storybook-source-link":{"version":"4.0.1"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.3"},"@chromatic-com/storybook":{"version":"1.5.0"},"@storybook/addon-viewport":{"version":"8.1.5"},"@storybook/addon-a11y":{"version":"8.1.5"}}} +{"generatedAt":1725481762487,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@jest/types":"29.6.3","@testing-library/dom":"8.16.1","@testing-library/jest-dom":"6.4.6","@testing-library/react":"11.2.7","@testing-library/react-hooks":"5.1.3","@testing-library/user-event":"13.5.0","@types/jest":"29.5.12","@types/sinon":"10.0.13","jest":"29.7.0","jest-environment-jsdom":"29.7.0","sinon":"9.2.4"},"packageManager":{"type":"yarn","version":"3.2.2"},"typescriptOptions":{"reactDocgen":false},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"8.1.5","storybookVersionSpecifier":"^8.1.5","language":"typescript","storybookPackages":{"@storybook/addon-links":{"version":"8.1.5"},"@storybook/react":{"version":"8.1.5"},"@storybook/react-webpack5":{"version":"8.1.6"},"storybook":{"version":"8.1.5"}},"addons":{"@storybook/addon-essentials":{"version":"8.1.5"},"@storybook/addon-controls":{"version":"8.1.5"},"@storybook/addon-actions":{"version":"8.1.5"},"storybook-source-link":{"version":"4.0.1"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.3"},"@chromatic-com/storybook":{"version":"1.5.0"},"@storybook/addon-viewport":{"version":"8.1.5"},"@storybook/addon-a11y":{"version":"8.1.5"}}} diff --git a/docs/sb-addons/storybook-11/manager-bundle.js b/docs/sb-addons/storybook-11/manager-bundle.js index 50dfe0f3..8b6b0892 100644 --- a/docs/sb-addons/storybook-11/manager-bundle.js +++ b/docs/sb-addons/storybook-11/manager-bundle.js @@ -147,5 +147,5 @@ To pass a single animation please supply them in simple values, e.g. animation(' `,77:`remToPx expects a value in "rem" but you provided it in "%s". `,78:`base must be set in "px" or "%" but you set it in "%s". -`};function ie(){for(var e=arguments.length,t=new Array(e),r=0;r1?o-1:0),i=1;i=0&&o<1?(p=n,l=i):o>=1&&o<2?(p=i,l=n):o>=2&&o<3?(l=n,d=i):o>=3&&o<4?(l=i,d=n):o>=4&&o<5?(p=i,d=n):o>=5&&o<6&&(p=n,d=i);var b=r-n/2,m=p+b,f=l+b,I=d+b;return a(m,f,I)}var Y={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function le(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Y[t]?"#"+Y[t]:e}var de=/^#[a-fA-F0-9]{6}$/,ue=/^#[a-fA-F0-9]{8}$/,fe=/^#[a-fA-F0-9]{3}$/,ce=/^#[a-fA-F0-9]{4}$/,B=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,be=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,me=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ge=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function P(e){if(typeof e!="string")throw new u(3);var t=le(e);if(t.match(de))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(ue)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(fe))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(ce)){var a=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:a}}var o=B.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var n=be.exec(t.substring(0,50));if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10),alpha:parseFloat(""+n[4])>1?parseFloat(""+n[4])/100:parseFloat(""+n[4])};var i=me.exec(t);if(i){var p=parseInt(""+i[1],10),l=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,b="rgb("+w(p,l,d)+")",m=B.exec(b);if(!m)throw new u(4,t,b);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var f=ge.exec(t.substring(0,50));if(f){var I=parseInt(""+f[1],10),ee=parseInt(""+f[2],10)/100,te=parseInt(""+f[3],10)/100,$="rgb("+w(I,ee,te)+")",k=B.exec($);if(!k)throw new u(4,t,$);return{red:parseInt(""+k[1],10),green:parseInt(""+k[2],10),blue:parseInt(""+k[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new u(5)}function he(e){var t=e.red/255,r=e.green/255,a=e.blue/255,o=Math.max(t,r,a),n=Math.min(t,r,a),i=(o+n)/2;if(o===n)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var p,l=o-n,d=i>.5?l/(2-o-n):l/(o+n);switch(o){case t:p=(r-a)/l+(r=1?C(e,t,r):"rgba("+w(e,t,r)+","+a+")";if(typeof e=="object"&&t===void 0&&r===void 0&&a===void 0)return e.alpha>=1?C(e.hue,e.saturation,e.lightness):"rgba("+w(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new u(2)}function H(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return D("#"+c(e)+c(t)+c(r));if(typeof e=="object"&&t===void 0&&r===void 0)return D("#"+c(e.red)+c(e.green)+c(e.blue));throw new u(6)}function F(e,t,r,a){if(typeof e=="string"&&typeof t=="number"){var o=P(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof a=="number")return a>=1?H(e,t,r):"rgba("+e+","+t+","+r+","+a+")";if(typeof e=="object"&&t===void 0&&r===void 0&&a===void 0)return e.alpha>=1?H(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new u(7)}var Fe=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},ke=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},Se=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Ce=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Q(e){if(typeof e!="object")throw new u(8);if(ke(e))return F(e);if(Fe(e))return H(e);if(Ce(e))return we(e);if(Se(e))return xe(e);throw new u(8)}function X(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):X(e,t,a)}}function O(e){return X(e,e.length,[])}function T(e,t,r){return Math.max(e,Math.min(t,r))}function je(e,t){if(t==="transparent")return t;var r=J(t);return Q(v({},r,{lightness:T(0,1,r.lightness-parseFloat(e))}))}var Pe=O(je),Oe=Pe;function Te(e,t){if(t==="transparent")return t;var r=J(t);return Q(v({},r,{lightness:T(0,1,r.lightness+parseFloat(e))}))}var Ie=O(Te),_e=Ie;function Be(e,t){if(t==="transparent")return t;var r=P(t),a=typeof r.alpha=="number"?r.alpha:1,o=v({},r,{alpha:T(0,1,(a*100+parseFloat(e)*100)/100)});return F(o)}var Kt=O(Be);function Re(e,t){if(t==="transparent")return t;var r=P(t),a=typeof r.alpha=="number"?r.alpha:1,o=v({},r,{alpha:T(0,1,+(a*100-parseFloat(e)*100).toFixed(2)/100)});return F(o)}var Ee=O(Re),ze=Ee,s={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},K={app:"#F6F9FC",bar:s.lightest,content:s.lightest,preview:s.lightest,gridCellSize:10,hoverable:ze(.9,s.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},j={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},Me={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:K.app,appContentBg:s.lightest,appPreviewBg:s.lightest,appBorderColor:s.border,appBorderRadius:4,fontBase:j.fonts.base,fontCode:j.fonts.mono,textColor:s.darkest,textInverseColor:s.lightest,textMutedColor:s.dark,barTextColor:s.mediumdark,barHoverColor:s.secondary,barSelectedColor:s.secondary,barBg:s.lightest,buttonBg:K.app,buttonBorder:s.medium,booleanBg:s.mediumlight,booleanSelectedBg:s.lightest,inputBg:s.lightest,inputBorder:s.border,inputTextColor:s.darkest,inputBorderRadius:4},W=Me,Ae={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:s.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:j.fonts.base,fontCode:j.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:s.mediumdark,barHoverColor:s.secondary,barSelectedColor:s.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:s.lightest,inputBorderRadius:4},De=Ae,{window:E}=G;var He=e=>typeof e!="string"?(L.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,qe=e=>!/(gradient|var|calc)/.test(e),$e=(e,t)=>e==="darken"?F(`${Oe(1,t)}`,.95):e==="lighten"?F(`${_e(1,t)}`,.95):t,Z=e=>t=>{if(!He(t)||!qe(t))return t;try{return $e(e,t)}catch{return t}},Wt=Z("lighten"),Ut=Z("darken"),Ne=()=>!E||!E.matchMedia?"light":E.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",S={light:W,dark:De,normal:W},z=Ne(),q=(e={base:z},t)=>{let r={...S[z],...S[e.base]||{},...e,base:S[e.base]?e.base:z};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}};var V={name:"@appfolio/react-gears",version:"8.14.0",description:"React-based version of Gears",author:"Appfolio, Inc.",repository:{type:"git",url:"https://github.com/appfolio/react-gears.git"},license:"MIT",packageManager:"yarn@3.2.2",main:"lib/index.js",module:"esm/index.js",types:"esm/index.d.ts",sideEffects:!1,files:["lib","esm"],scripts:{tslint:"tsc --noEmit",eslint:"eslint src --ext .js,.ts,.jsx,.tsx","eslint:fix":"yarn eslint --fix",lint:"yarn tslint && yarn eslint","lint:ts":"yarn dist",format:"prettier --check src","format:fix":"prettier --write src",test:"jest --coverage","test:watch":"jest --watch",start:"storybook dev -p 6006",docs:"storybook build -o docs",version:"yarn docs && git add -A docs",clean:"rm -rf esm lib","dist:types":"tsc --project tsconfig.build.json","dist:types:js":"scripts/copyDTSFiles.js","dist:esm":"babel src --out-dir esm --config-file ./babel.esm.config.js --extensions '.js,.ts,.tsx'","dist:lib":"babel src --out-dir lib --config-file ./babel.build.config.js --extensions '.js,.ts,.tsx'",dist:'yarn clean && concurrently "yarn:dist:*"',"storybook:doctor":"npx storybook doctor"},peerDependencies:{react:">= 16.8","react-dom":">= 16.8"},dependencies:{"@fortawesome/fontawesome-free":"^6.2.0","@fortawesome/fontawesome-svg-core":"^6.2.0","@popperjs/core":"^2.10.1",classnames:"^2.2.6","credit-card-type":"^5.0.1","date-fns":"^1.30.1","deprecated-prop-type":"^1.0.0","fast-deep-equal":"^3.1.3",fecha:"^2.3.3",imask:"^6.2.2",invariant:"^2.2.4","lodash.flow":"^3.5.0","lodash.get":"^4.4.2","lodash.includes":"^4.3.0","lodash.isequal":"^4.5.0","lodash.noop":"^3.0.1","lodash.orderby":"^4.6.0","lodash.range":"^3.2.0","lodash.some":"^4.6.0","lodash.tolower":"^4.1.2","lodash.topairs":"^4.3.0","lodash.uniqueid":"^4.0.1","lodash.without":"^4.4.0","memoize-one":"^5.1.1","prop-types":"^15.7.2","react-imask":"^6.2.2","react-resize-detector":"^4.2.3","react-select-plus":"1.2.0","react-sortable-hoc":"^1.11.0","react-text-mask":"~5.0.2","react-transition-group":"^2.9.0","react-use":"^17.3.2",reactstrap:"^9.2.2","styled-jsx":"^5.1.1","text-mask-addons":"^3.8.0",tributejs:"^5.1.3","use-deep-compare-effect":"^1.8.1","use-local-storage-state":"^4.0.0",uuid:"^9.0.1"},devDependencies:{"@appfolio/eslint-config-appfolio-react":"^2.0.2","@babel/cli":"^7.24.7","@babel/core":"^7.24.7","@babel/preset-env":"^7.24.7","@babel/preset-react":"^7.24.7","@babel/preset-typescript":"^7.24.7","@chromatic-com/storybook":"^1.5.0","@jest/types":"^29.6.3","@storybook/addon-a11y":"^8.1.5","@storybook/addon-actions":"^8.1.5","@storybook/addon-controls":"^8.1.5","@storybook/addon-essentials":"^8.1.5","@storybook/addon-links":"^8.1.5","@storybook/addon-viewport":"^8.1.5","@storybook/addon-webpack5-compiler-babel":"^3.0.3","@storybook/react":"^8.1.5","@storybook/react-webpack5":"^8.1.6","@testing-library/dom":"^8.13.0","@testing-library/jest-dom":"^6.4.6","@testing-library/react":"^11.2.6","@testing-library/react-hooks":"^5.1.2","@testing-library/user-event":"^13.5.0","@types/classnames":"^2.2.11","@types/credit-card-type":"^5.0.1","@types/enzyme":"^3.10.8","@types/enzyme-adapter-react-16":"^1.0.6","@types/invariant":"^2.2.35","@types/jest":"^29.5.12","@types/lodash.flow":"^3.5.6","@types/lodash.isequal":"^4.5.5","@types/lodash.noop":"^3.0.6","@types/lodash.orderby":"^4.6.6","@types/lodash.range":"^3.2.6","@types/lodash.some":"^4.6.6","@types/lodash.topairs":"^4.3.6","@types/lodash.uniqueid":"^4.0.6","@types/react":"^16.14.26","@types/react-dom":"^16.9.16","@types/react-resize-detector":"^5.0.0","@types/react-text-mask":"^5.4.6","@types/sinon":"^10.0.0","@types/styled-jsx":"^2.2.8","@types/uniqid":"^4.1.3","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.14.0","@typescript-eslint/parser":"^5.14.0",assert:"~1.4.1","axe-core":"^3.5.5","babel-plugin-add-react-displayname":"^0.0.5",concurrently:"^7.0.0",enzyme:"^3.11.0","enzyme-adapter-react-16":"^1.15.5",eslint:"^8.10.0","eslint-config-prettier":"^8.5.0","eslint-plugin-no-only-tests":"^2.6.0","eslint-plugin-react-hooks":"^4.3.0","fs-extra":"10.0.1",glob:"^7.1.6","identity-obj-proxy":"^3.0.0",jest:"^29.7.0","jest-environment-jsdom":"^29.7.0",prettier:"^2.5.1","raf-stub":"^3.0.0",react:"^16.14.0","react-dom":"^16.14.0","regenerator-runtime":"^0.13.7",sinon:"^9.2.1",storybook:"^8.1.5","storybook-source-link":"^4.0.1","ts-node":"^10.7.0",typescript:"^4.6.3",uncontrollable:"^4.1.0"},resolutions:{"@types/react":"^16.14.26","@types/react-dom":"^16.9.16"},browserslist:"last 2 versions",stableVersion:"7.7.0"};N.setConfig({theme:q({base:"dark",brandTitle:`react-gears ${V.version}`,brandUrl:"https://github.com/appfolio/react-gears"}),sidebar:{showRoots:!1}});})(); +`};function ie(){for(var e=arguments.length,t=new Array(e),r=0;r1?o-1:0),i=1;i=0&&o<1?(p=n,l=i):o>=1&&o<2?(p=i,l=n):o>=2&&o<3?(l=n,d=i):o>=3&&o<4?(l=i,d=n):o>=4&&o<5?(p=i,d=n):o>=5&&o<6&&(p=n,d=i);var b=r-n/2,m=p+b,f=l+b,I=d+b;return a(m,f,I)}var Y={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function le(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Y[t]?"#"+Y[t]:e}var de=/^#[a-fA-F0-9]{6}$/,ue=/^#[a-fA-F0-9]{8}$/,fe=/^#[a-fA-F0-9]{3}$/,ce=/^#[a-fA-F0-9]{4}$/,B=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,be=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,me=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ge=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function P(e){if(typeof e!="string")throw new u(3);var t=le(e);if(t.match(de))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(ue)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(fe))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(ce)){var a=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:a}}var o=B.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var n=be.exec(t.substring(0,50));if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10),alpha:parseFloat(""+n[4])>1?parseFloat(""+n[4])/100:parseFloat(""+n[4])};var i=me.exec(t);if(i){var p=parseInt(""+i[1],10),l=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,b="rgb("+w(p,l,d)+")",m=B.exec(b);if(!m)throw new u(4,t,b);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var f=ge.exec(t.substring(0,50));if(f){var I=parseInt(""+f[1],10),ee=parseInt(""+f[2],10)/100,te=parseInt(""+f[3],10)/100,$="rgb("+w(I,ee,te)+")",k=B.exec($);if(!k)throw new u(4,t,$);return{red:parseInt(""+k[1],10),green:parseInt(""+k[2],10),blue:parseInt(""+k[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new u(5)}function he(e){var t=e.red/255,r=e.green/255,a=e.blue/255,o=Math.max(t,r,a),n=Math.min(t,r,a),i=(o+n)/2;if(o===n)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var p,l=o-n,d=i>.5?l/(2-o-n):l/(o+n);switch(o){case t:p=(r-a)/l+(r=1?C(e,t,r):"rgba("+w(e,t,r)+","+a+")";if(typeof e=="object"&&t===void 0&&r===void 0&&a===void 0)return e.alpha>=1?C(e.hue,e.saturation,e.lightness):"rgba("+w(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new u(2)}function H(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return D("#"+c(e)+c(t)+c(r));if(typeof e=="object"&&t===void 0&&r===void 0)return D("#"+c(e.red)+c(e.green)+c(e.blue));throw new u(6)}function F(e,t,r,a){if(typeof e=="string"&&typeof t=="number"){var o=P(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof a=="number")return a>=1?H(e,t,r):"rgba("+e+","+t+","+r+","+a+")";if(typeof e=="object"&&t===void 0&&r===void 0&&a===void 0)return e.alpha>=1?H(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new u(7)}var Fe=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},ke=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},Se=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Ce=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Q(e){if(typeof e!="object")throw new u(8);if(ke(e))return F(e);if(Fe(e))return H(e);if(Ce(e))return we(e);if(Se(e))return xe(e);throw new u(8)}function X(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):X(e,t,a)}}function O(e){return X(e,e.length,[])}function T(e,t,r){return Math.max(e,Math.min(t,r))}function je(e,t){if(t==="transparent")return t;var r=J(t);return Q(v({},r,{lightness:T(0,1,r.lightness-parseFloat(e))}))}var Pe=O(je),Oe=Pe;function Te(e,t){if(t==="transparent")return t;var r=J(t);return Q(v({},r,{lightness:T(0,1,r.lightness+parseFloat(e))}))}var Ie=O(Te),_e=Ie;function Be(e,t){if(t==="transparent")return t;var r=P(t),a=typeof r.alpha=="number"?r.alpha:1,o=v({},r,{alpha:T(0,1,(a*100+parseFloat(e)*100)/100)});return F(o)}var Kt=O(Be);function Re(e,t){if(t==="transparent")return t;var r=P(t),a=typeof r.alpha=="number"?r.alpha:1,o=v({},r,{alpha:T(0,1,+(a*100-parseFloat(e)*100).toFixed(2)/100)});return F(o)}var Ee=O(Re),ze=Ee,s={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},K={app:"#F6F9FC",bar:s.lightest,content:s.lightest,preview:s.lightest,gridCellSize:10,hoverable:ze(.9,s.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},j={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},Me={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:K.app,appContentBg:s.lightest,appPreviewBg:s.lightest,appBorderColor:s.border,appBorderRadius:4,fontBase:j.fonts.base,fontCode:j.fonts.mono,textColor:s.darkest,textInverseColor:s.lightest,textMutedColor:s.dark,barTextColor:s.mediumdark,barHoverColor:s.secondary,barSelectedColor:s.secondary,barBg:s.lightest,buttonBg:K.app,buttonBorder:s.medium,booleanBg:s.mediumlight,booleanSelectedBg:s.lightest,inputBg:s.lightest,inputBorder:s.border,inputTextColor:s.darkest,inputBorderRadius:4},W=Me,Ae={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:s.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:j.fonts.base,fontCode:j.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:s.mediumdark,barHoverColor:s.secondary,barSelectedColor:s.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:s.lightest,inputBorderRadius:4},De=Ae,{window:E}=G;var He=e=>typeof e!="string"?(L.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,qe=e=>!/(gradient|var|calc)/.test(e),$e=(e,t)=>e==="darken"?F(`${Oe(1,t)}`,.95):e==="lighten"?F(`${_e(1,t)}`,.95):t,Z=e=>t=>{if(!He(t)||!qe(t))return t;try{return $e(e,t)}catch{return t}},Wt=Z("lighten"),Ut=Z("darken"),Ne=()=>!E||!E.matchMedia?"light":E.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",S={light:W,dark:De,normal:W},z=Ne(),q=(e={base:z},t)=>{let r={...S[z],...S[e.base]||{},...e,base:S[e.base]?e.base:z};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}};var V={name:"@appfolio/react-gears",version:"8.14.1",description:"React-based version of Gears",author:"Appfolio, Inc.",repository:{type:"git",url:"https://github.com/appfolio/react-gears.git"},license:"MIT",packageManager:"yarn@3.2.2",main:"lib/index.js",module:"esm/index.js",types:"esm/index.d.ts",sideEffects:!1,files:["lib","esm"],scripts:{tslint:"tsc --noEmit",eslint:"eslint src --ext .js,.ts,.jsx,.tsx","eslint:fix":"yarn eslint --fix",lint:"yarn tslint && yarn eslint","lint:ts":"yarn dist",format:"prettier --check src","format:fix":"prettier --write src",test:"jest --coverage","test:watch":"jest --watch",start:"storybook dev -p 6006",docs:"storybook build -o docs",version:"yarn docs && git add -A docs",clean:"rm -rf esm lib","dist:types":"tsc --project tsconfig.build.json","dist:types:js":"scripts/copyDTSFiles.js","dist:esm":"babel src --out-dir esm --config-file ./babel.esm.config.js --extensions '.js,.ts,.tsx'","dist:lib":"babel src --out-dir lib --config-file ./babel.build.config.js --extensions '.js,.ts,.tsx'",dist:'yarn clean && concurrently "yarn:dist:*"',"storybook:doctor":"npx storybook doctor"},peerDependencies:{react:">= 16.8","react-dom":">= 16.8"},dependencies:{"@fortawesome/fontawesome-free":"^6.2.0","@fortawesome/fontawesome-svg-core":"^6.2.0","@popperjs/core":"^2.10.1",classnames:"^2.2.6","credit-card-type":"^5.0.1","date-fns":"^1.30.1","deprecated-prop-type":"^1.0.0","fast-deep-equal":"^3.1.3",fecha:"^2.3.3",imask:"^6.2.2",invariant:"^2.2.4","lodash.flow":"^3.5.0","lodash.get":"^4.4.2","lodash.includes":"^4.3.0","lodash.isequal":"^4.5.0","lodash.noop":"^3.0.1","lodash.orderby":"^4.6.0","lodash.range":"^3.2.0","lodash.some":"^4.6.0","lodash.tolower":"^4.1.2","lodash.topairs":"^4.3.0","lodash.uniqueid":"^4.0.1","lodash.without":"^4.4.0","memoize-one":"^5.1.1","prop-types":"^15.7.2","react-imask":"^6.2.2","react-resize-detector":"^4.2.3","react-select-plus":"1.2.0","react-sortable-hoc":"^1.11.0","react-text-mask":"~5.0.2","react-transition-group":"^2.9.0","react-use":"^17.3.2",reactstrap:"^9.2.2","styled-jsx":"^5.1.1","text-mask-addons":"^3.8.0",tributejs:"^5.1.3","use-deep-compare-effect":"^1.8.1","use-local-storage-state":"^4.0.0",uuid:"^9.0.1"},devDependencies:{"@appfolio/eslint-config-appfolio-react":"^2.0.2","@babel/cli":"^7.24.7","@babel/core":"^7.24.7","@babel/preset-env":"^7.24.7","@babel/preset-react":"^7.24.7","@babel/preset-typescript":"^7.24.7","@chromatic-com/storybook":"^1.5.0","@jest/types":"^29.6.3","@storybook/addon-a11y":"^8.1.5","@storybook/addon-actions":"^8.1.5","@storybook/addon-controls":"^8.1.5","@storybook/addon-essentials":"^8.1.5","@storybook/addon-links":"^8.1.5","@storybook/addon-viewport":"^8.1.5","@storybook/addon-webpack5-compiler-babel":"^3.0.3","@storybook/react":"^8.1.5","@storybook/react-webpack5":"^8.1.6","@testing-library/dom":"^8.13.0","@testing-library/jest-dom":"^6.4.6","@testing-library/react":"^11.2.6","@testing-library/react-hooks":"^5.1.2","@testing-library/user-event":"^13.5.0","@types/classnames":"^2.2.11","@types/credit-card-type":"^5.0.1","@types/enzyme":"^3.10.8","@types/enzyme-adapter-react-16":"^1.0.6","@types/invariant":"^2.2.35","@types/jest":"^29.5.12","@types/lodash.flow":"^3.5.6","@types/lodash.isequal":"^4.5.5","@types/lodash.noop":"^3.0.6","@types/lodash.orderby":"^4.6.6","@types/lodash.range":"^3.2.6","@types/lodash.some":"^4.6.6","@types/lodash.topairs":"^4.3.6","@types/lodash.uniqueid":"^4.0.6","@types/react":"^16.14.26","@types/react-dom":"^16.9.16","@types/react-resize-detector":"^5.0.0","@types/react-text-mask":"^5.4.6","@types/sinon":"^10.0.0","@types/styled-jsx":"^2.2.8","@types/uniqid":"^4.1.3","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.14.0","@typescript-eslint/parser":"^5.14.0",assert:"~1.4.1","axe-core":"^3.5.5","babel-plugin-add-react-displayname":"^0.0.5",concurrently:"^7.0.0",enzyme:"^3.11.0","enzyme-adapter-react-16":"^1.15.5",eslint:"^8.10.0","eslint-config-prettier":"^8.5.0","eslint-plugin-no-only-tests":"^2.6.0","eslint-plugin-react-hooks":"^4.3.0","fs-extra":"10.0.1",glob:"^7.1.6","identity-obj-proxy":"^3.0.0",jest:"^29.7.0","jest-environment-jsdom":"^29.7.0",prettier:"^2.5.1","raf-stub":"^3.0.0",react:"^16.14.0","react-dom":"^16.14.0","regenerator-runtime":"^0.13.7",sinon:"^9.2.1",storybook:"^8.1.5","storybook-source-link":"^4.0.1","ts-node":"^10.7.0",typescript:"^4.6.3",uncontrollable:"^4.1.0"},resolutions:{"@types/react":"^16.14.26","@types/react-dom":"^16.9.16"},browserslist:"last 2 versions",stableVersion:"7.7.0"};N.setConfig({theme:q({base:"dark",brandTitle:`react-gears ${V.version}`,brandUrl:"https://github.com/appfolio/react-gears"}),sidebar:{showRoots:!1}});})(); }catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }