@sakura-ui/sakura-ui 0.3.0 → 0.4.2
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 +71 -0
- package/package.json +26 -25
- package/packages/core/package.json +10 -8
- package/packages/core/src/components/Button.tsx +1 -1
- package/packages/core/src/components/Card.tsx +8 -3
- package/packages/core/src/components/IconButton.tsx +1 -1
- package/packages/core/src/components/LangSelector.tsx +2 -2
- package/packages/core/src/components/Link.tsx +0 -1
- package/packages/core/src/components/LinkCard.tsx +87 -52
- package/packages/core/src/components/MenuButton.tsx +2 -2
- package/packages/core/src/components/NavigationItem.tsx +1 -1
- package/packages/core/src/components/NotificationBanner.tsx +20 -0
- package/packages/core/src/components/PopoverMenu.tsx +1 -0
- package/packages/core/src/components/buttonStyle.ts +1 -1
- package/packages/core/src/components/index.ts +1 -1
- package/packages/core/src/icons/index.ts +1 -1
- package/packages/core/src/index.ts +1 -0
- package/packages/core/vite.config.ts +2 -1
- package/packages/forms/.turbo/turbo-build.log +12 -22
- package/packages/forms/dist/index.cjs.js +52 -79
- package/packages/forms/dist/index.es.js +455 -646
- package/packages/forms/dist/types/components/Checkbox.d.ts +2 -2
- package/packages/forms/dist/types/components/Checkbox.d.ts.map +1 -1
- package/packages/forms/dist/types/components/FieldsetControl.d.ts +2 -2
- package/packages/forms/dist/types/components/FieldsetControl.d.ts.map +1 -1
- package/packages/forms/dist/types/components/FileInput.d.ts +2 -2
- package/packages/forms/dist/types/components/FileInput.d.ts.map +1 -1
- package/packages/forms/dist/types/components/Input.d.ts +2 -2
- package/packages/forms/dist/types/components/Input.d.ts.map +1 -1
- package/packages/forms/dist/types/components/LabelControl.d.ts +2 -2
- package/packages/forms/dist/types/components/LabelControl.d.ts.map +1 -1
- package/packages/forms/dist/types/components/Radio.d.ts +2 -2
- package/packages/forms/dist/types/components/Radio.d.ts.map +1 -1
- package/packages/forms/dist/types/components/Select.d.ts +2 -2
- package/packages/forms/dist/types/components/Select.d.ts.map +1 -1
- package/packages/forms/dist/types/components/Textarea.d.ts +2 -2
- package/packages/forms/dist/types/components/Textarea.d.ts.map +1 -1
- package/packages/forms/dist/types/components/controlled/CheckboxGroup.d.ts +1 -1
- package/packages/forms/dist/types/components/controlled/RadioGroup.d.ts +1 -1
- package/packages/forms/dist/types/components/inputStyle.d.ts +1 -1
- package/packages/forms/dist/types/components/inputStyle.d.ts.map +1 -1
- package/packages/forms/node_modules/.bin/autoprefixer +44 -6
- package/packages/forms/package.json +9 -7
- package/packages/forms/src/components/Checkbox.tsx +1 -2
- package/packages/forms/src/components/FileInput.tsx +3 -3
- package/packages/forms/src/components/Input.tsx +0 -1
- package/packages/forms/src/components/Radio.tsx +0 -1
- package/packages/forms/src/components/Select.tsx +0 -1
- package/packages/forms/src/components/Textarea.tsx +0 -1
- package/packages/forms/tests/FieldsetControl.test.tsx +8 -2
- package/packages/forms/tests/FileInput.test.tsx +30 -5
- package/packages/forms/tests/LabelControl.test.tsx +8 -2
- package/packages/forms/vite.config.ts +2 -1
- package/packages/helper/.turbo/turbo-build.log +12 -23
- package/packages/helper/dist/index.cjs.js +7 -9
- package/packages/helper/dist/index.es.js +23 -23
- package/packages/helper/dist/types/calc.d.ts.map +1 -1
- package/packages/helper/dist/types/cx.d.ts.map +1 -1
- package/packages/helper/dist/types/styles.d.ts +9 -9
- package/packages/helper/dist/types/styles.d.ts.map +1 -1
- package/packages/helper/dist/types/treefy.d.ts.map +1 -1
- package/packages/helper/node_modules/.bin/vitest +55 -0
- package/packages/helper/package.json +13 -3
- package/packages/helper/src/cx.ts +1 -1
- package/packages/helper/src/styles.ts +2 -4
- package/packages/helper/src/treefy.ts +3 -1
- package/packages/helper/tests/calc.test.ts +22 -0
- package/packages/helper/tests/cx.test.ts +30 -0
- package/packages/helper/tests/querySelector.test.ts +24 -0
- package/packages/helper/tests/treefy.test.ts +111 -0
- package/packages/helper/tests/vitest.setup.ts +2 -0
- package/packages/markdown/.turbo/turbo-build.log +12 -22
- package/packages/markdown/dist/index.cjs.js +37 -63
- package/packages/markdown/dist/index.es.js +4287 -4425
- package/packages/markdown/dist/types/components/Markdown.d.ts.map +1 -1
- package/packages/markdown/dist/types/plugins/attr.d.ts.map +1 -1
- package/packages/markdown/dist/types/plugins/card.d.ts.map +1 -1
- package/packages/markdown/dist/types/plugins/cell.d.ts.map +1 -1
- package/packages/markdown/dist/types/plugins/faq.d.ts.map +1 -1
- package/packages/markdown/dist/types/plugins/grid.d.ts.map +1 -1
- package/packages/markdown/dist/types/plugins/headings.d.ts +3 -1
- package/packages/markdown/dist/types/plugins/headings.d.ts.map +1 -1
- package/packages/markdown/dist/types/plugins/helper.d.ts.map +1 -1
- package/packages/markdown/dist/types/plugins/linkButton.d.ts.map +1 -1
- package/packages/markdown/dist/types/plugins/youtube.d.ts.map +1 -1
- package/packages/markdown/node_modules/.bin/autoprefixer +44 -6
- package/packages/markdown/package.json +16 -15
- package/packages/markdown/src/components/Markdown.tsx +4 -0
- package/packages/markdown/src/plugins/grid.ts +4 -1
- package/packages/markdown/src/plugins/headings.ts +6 -3
- package/packages/markdown/src/plugins/linkButton.ts +2 -1
- package/packages/markdown/src/plugins/youtube.ts +5 -4
- package/packages/tailwind-theme-plugin/#package.json# +51 -0
- package/packages/tailwind-theme-plugin/.turbo/turbo-build.log +12 -22
- package/packages/tailwind-theme-plugin/dist/index.cjs.js +1 -1
- package/packages/tailwind-theme-plugin/dist/index.es.js +1111 -1477
- package/packages/tailwind-theme-plugin/dist/types/index.d.ts +1 -4
- package/packages/tailwind-theme-plugin/dist/types/index.d.ts.map +1 -1
- package/packages/tailwind-theme-plugin/node_modules/.bin/autoprefixer +44 -6
- package/packages/tailwind-theme-plugin/package.json +8 -6
- package/packages/tailwind-theme-plugin/src/index.ts +15 -58
- package/packages/tailwind-theme-plugin/vite.config.ts +2 -0
- package/packages/forms/node_modules/.bin/tailwind +0 -17
- package/packages/forms/node_modules/.bin/tailwindcss +0 -17
- package/packages/forms/node_modules/.bin/ts-node +0 -17
- package/packages/forms/node_modules/.bin/ts-node-cwd +0 -17
- package/packages/forms/node_modules/.bin/ts-node-esm +0 -17
- package/packages/forms/node_modules/.bin/ts-node-script +0 -17
- package/packages/forms/node_modules/.bin/ts-node-transpile-only +0 -17
- package/packages/forms/node_modules/.bin/ts-script +0 -17
- package/packages/forms/node_modules/.bin/tsc +0 -17
- package/packages/forms/node_modules/.bin/tsserver +0 -17
- package/packages/forms/node_modules/.vite/vitest/results.json +0 -1
- package/packages/markdown/node_modules/.bin/tailwind +0 -17
- package/packages/markdown/node_modules/.bin/tailwindcss +0 -17
- package/packages/markdown/node_modules/.bin/ts-node +0 -17
- package/packages/markdown/node_modules/.bin/ts-node-cwd +0 -17
- package/packages/markdown/node_modules/.bin/ts-node-esm +0 -17
- package/packages/markdown/node_modules/.bin/ts-node-script +0 -17
- package/packages/markdown/node_modules/.bin/ts-node-transpile-only +0 -17
- package/packages/markdown/node_modules/.bin/ts-script +0 -17
- package/packages/markdown/node_modules/.bin/tsc +0 -17
- package/packages/markdown/node_modules/.bin/tsserver +0 -17
- package/packages/tailwind-theme-plugin/node_modules/.bin/tailwind +0 -17
- package/packages/tailwind-theme-plugin/node_modules/.bin/tailwindcss +0 -17
- package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node +0 -17
- package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-cwd +0 -17
- package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-esm +0 -17
- package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-script +0 -17
- package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-transpile-only +0 -17
- package/packages/tailwind-theme-plugin/node_modules/.bin/ts-script +0 -17
- package/packages/tailwind-theme-plugin/node_modules/.bin/tsc +0 -17
- package/packages/tailwind-theme-plugin/node_modules/.bin/tsserver +0 -17
|
@@ -1,84 +1,58 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Re;function Ge(){if(Re)return q;Re=1;var s=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");function f(b,i,o){var n=null;if(o!==void 0&&(n=""+o),i.key!==void 0&&(n=""+i.key),"key"in i){o={};for(var g in i)g!=="key"&&(o[g]=i[g])}else o=i;return i=o.ref,{$$typeof:s,type:b,key:n,ref:i!==void 0?i:null,props:o}}return q.Fragment=d,q.jsx=f,q.jsxs=f,q}var M={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Ne;function He(){return Ne||(Ne=1,process.env.NODE_ENV!=="production"&&function(){function s(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case ze:return"Portal";case le:return"Profiler";case oe:return"StrictMode";case H:return"Suspense";case J:return"SuspenseList"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case ie:return(e.displayName||"Context")+".Provider";case ae:return(e._context.displayName||"Context")+".Consumer";case G:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return r=e.displayName||null,r!==null?r:s(e.type)||"Memo";case L:r=e._payload,e=e._init;try{return s(e(r))}catch{}}return null}function d(e){return""+e}function f(e){try{d(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,u=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",u),d(e)}}function b(){}function i(){if(O===0){de=console.log,ue=console.info,fe=console.warn,be=console.error,ge=console.group,pe=console.groupCollapsed,xe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:b,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}O++}function o(){if(O--,O===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},e,{value:de}),info:_({},e,{value:ue}),warn:_({},e,{value:fe}),error:_({},e,{value:be}),group:_({},e,{value:ge}),groupCollapsed:_({},e,{value:pe}),groupEnd:_({},e,{value:xe})})}0>O&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function n(e){if(Z===void 0)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);Z=r&&r[1]||"",me=-1<t.stack.indexOf(`
|
|
18
|
-
at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
-
`+Z+e+me}function g(e,r){if(!e||Q)return"";var t=K.get(e);if(t!==void 0)return t;Q=!0,t=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var u=null;u=S.H,S.H=null,i();try{var v={DetermineComponentFrameRoot:function(){try{if(r){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(C){var Y=C}Reflect.construct(e,[],T)}else{try{T.call()}catch(C){Y=C}e.call(T.prototype)}}else{try{throw Error()}catch(C){Y=C}(T=e())&&typeof T.catch=="function"&&T.catch(function(){})}}catch(C){if(C&&Y&&typeof C.stack=="string")return[C.stack,Y.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var x=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");x&&x.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=v.DetermineComponentFrameRoot(),w=a[0],A=a[1];if(w&&A){var h=w.split(`
|
|
20
|
-
`),P=A.split(`
|
|
21
|
-
`);for(a=x=0;x<h.length&&!h[x].includes("DetermineComponentFrameRoot");)x++;for(;a<P.length&&!P[a].includes("DetermineComponentFrameRoot");)a++;if(x===h.length||a===P.length)for(x=h.length-1,a=P.length-1;1<=x&&0<=a&&h[x]!==P[a];)a--;for(;1<=x&&0<=a;x--,a--)if(h[x]!==P[a]){if(x!==1||a!==1)do if(x--,a--,0>a||h[x]!==P[a]){var $=`
|
|
22
|
-
`+h[x].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&K.set(e,$),$}while(1<=x&&0<=a);break}}}finally{Q=!1,S.H=u,o(),Error.prepareStackTrace=t}return h=(h=e?e.displayName||e.name:"")?n(h):"",typeof e=="function"&&K.set(e,h),h}function c(e){if(e==null)return"";if(typeof e=="function"){var r=e.prototype;return g(e,!(!r||!r.isReactComponent))}if(typeof e=="string")return n(e);switch(e){case H:return n("Suspense");case J:return n("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case G:return e=g(e.render,!1),e;case V:return c(e.type);case L:r=e._payload,e=e._init;try{return c(e(r))}catch{}}return""}function m(){var e=S.A;return e===null?null:e.getOwner()}function p(e){if(ce.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function y(e,r){function t(){ve||(ve=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function E(){var e=s(this.type);return he[e]||(he[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function j(e,r,t,u,v,x){return t=x.ref,e={$$typeof:F,type:e,key:r,props:x,_owner:v},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:E}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function re(e,r,t,u,v,x){if(typeof e=="string"||typeof e=="function"||e===U||e===le||e===oe||e===H||e===J||e===We||typeof e=="object"&&e!==null&&(e.$$typeof===L||e.$$typeof===V||e.$$typeof===ie||e.$$typeof===ae||e.$$typeof===G||e.$$typeof===Fe||e.getModuleId!==void 0)){var a=r.children;if(a!==void 0)if(u)if(X(a)){for(u=0;u<a.length;u++)te(a[u],e);Object.freeze&&Object.freeze(a)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else te(a,e)}else a="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?u="null":X(e)?u="array":e!==void 0&&e.$$typeof===F?(u="<"+(s(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):u=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,a);if(ce.call(r,"key")){a=s(e);var w=Object.keys(r).filter(function(h){return h!=="key"});u=0<w.length?"{key: someKey, "+w.join(": ..., ")+": ...}":"{key: someKey}",ye[a+u]||(w=0<w.length?"{"+w.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react");var k={exports:{}},E={};var G;function ve(){if(G)return E;G=1;var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function d(i,o,t){var a=null;if(t!==void 0&&(a=""+t),o.key!==void 0&&(a=""+o.key),"key"in o){t={};for(var u in o)u!=="key"&&(t[u]=o[u])}else t=o;return o=t.ref,{$$typeof:r,type:i,key:a,ref:o!==void 0?o:null,props:t}}return E.Fragment=n,E.jsx=d,E.jsxs=d,E}var _={};var U;function ye(){return U||(U=1,process.env.NODE_ENV!=="production"&&(function(){function r(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case ie:return"Profiler";case ne:return"StrictMode";case fe:return"Suspense";case pe:return"SuspenseList";case xe:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case ae:return"Portal";case ce:return e.displayName||"Context";case de:return(e._context.displayName||"Context")+".Consumer";case ue:var l=e.render;return e=e.displayName,e||(e=l.displayName||l.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case be:return l=e.displayName||null,l!==null?l:r(e.type)||"Memo";case P:l=e._payload,e=e._init;try{return r(e(l))}catch{}}return null}function n(e){return""+e}function d(e){try{n(e);var l=!1}catch{l=!0}if(l){l=console;var p=l.error,b=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return p.call(l,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",b),n(e)}}function i(e){if(e===C)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var l=r(e);return l?"<"+l+">":"<...>"}catch{return"<...>"}}function o(){var e=S.A;return e===null?null:e.getOwner()}function t(){return Error("react-stack-top-frame")}function a(e){if(Y.call(e,"key")){var l=Object.getOwnPropertyDescriptor(e,"key").get;if(l&&l.isReactWarning)return!1}return e.key!==void 0}function u(e,l){function p(){z||(z=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",l))}p.isReactWarning=!0,Object.defineProperty(e,"key",{get:p,configurable:!0})}function c(){var e=r(this.type);return L[e]||(L[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function m(e,l,p,b,I,A){var x=p.ref;return e={$$typeof:F,type:e,key:l,props:p,_owner:b},(x!==void 0?x:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:c}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:I}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,l,p,b,I,A){var x=l.children;if(x!==void 0)if(b)if(ge(x)){for(b=0;b<x.length;b++)g(x[b]);Object.freeze&&Object.freeze(x)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else g(x);if(Y.call(l,"key")){x=r(e);var j=Object.keys(l).filter(function(he){return he!=="key"});b=0<j.length?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}",B[x+b]||(j=0<j.length?"{"+j.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
23
2
|
let props = %s;
|
|
24
3
|
<%s {...props} />
|
|
25
4
|
React keys must be passed directly to JSX without using spread:
|
|
26
5
|
let props = %s;
|
|
27
|
-
<%s key={someKey} {...props} />`,
|
|
28
|
-
|
|
29
|
-
Check the render method of \``+t+"`."),r||(e=s(e))&&(r=`
|
|
30
|
-
|
|
31
|
-
Check the top-level render call using <`+e+">."),r}var Ye=N,F=Symbol.for("react.transitional.element"),ze=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),oe=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),ae=Symbol.for("react.consumer"),ie=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),We=Symbol.for("react.offscreen"),ne=Symbol.iterator,Be=Symbol.for("react.client.reference"),S=Ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Object.prototype.hasOwnProperty,_=Object.assign,Fe=Symbol.for("react.client.reference"),X=Array.isArray,O=0,de,ue,fe,be,ge,pe,xe;b.__reactDisabledLog=!0;var Z,me,Q=!1,K=new(typeof WeakMap=="function"?WeakMap:Map),Ue=Symbol.for("react.client.reference"),ve,he={},ye={},Ee={};M.Fragment=U,M.jsx=function(e,r,t,u,v){return re(e,r,t,!1,u,v)},M.jsxs=function(e,r,t,u,v){return re(e,r,t,!0,u,v)}}()),M}var je;function Je(){return je||(je=1,process.env.NODE_ENV==="production"?z.exports=Ge():z.exports=He()),z.exports}var l=Je();const R=(...s)=>s.filter(Boolean).join(" ");var k;(s=>{s.clickable=`
|
|
6
|
+
<%s key={someKey} {...props} />`,b,x,j,x),B[x+b]=!0)}if(x=null,p!==void 0&&(d(p),x=""+p),a(l)&&(d(l.key),x=""+l.key),"key"in l){p={};for(var $ in l)$!=="key"&&(p[$]=l[$])}else p=l;return x&&u(p,typeof e=="function"?e.displayName||e.name||"Unknown":e),m(e,x,p,o(),I,A)}function g(e){h(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===P&&(e._payload.status==="fulfilled"?h(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function h(e){return typeof e=="object"&&e!==null&&e.$$typeof===F}var v=R,F=Symbol.for("react.transitional.element"),ae=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),de=Symbol.for("react.consumer"),ce=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),fe=Symbol.for("react.suspense"),pe=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),xe=Symbol.for("react.activity"),me=Symbol.for("react.client.reference"),S=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,ge=Array.isArray,O=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var z,L={},D=v.react_stack_bottom_frame.bind(v,t)(),W=O(i(t)),B={};_.Fragment=C,_.jsx=function(e,l,p){var b=1e4>S.recentlyCreatedOwnerStacks++;return f(e,l,p,!1,b?Error("react-stack-top-frame"):D,b?O(i(e)):W)},_.jsxs=function(e,l,p){var b=1e4>S.recentlyCreatedOwnerStacks++;return f(e,l,p,!0,b?Error("react-stack-top-frame"):D,b?O(i(e)):W)}})()),_}var V;function Re(){return V||(V=1,process.env.NODE_ENV==="production"?k.exports=ve():k.exports=ye()),k.exports}var s=Re();const y=(...r)=>r.filter(Boolean).join(" ");var N;(r=>{r.clickable=`
|
|
32
7
|
px-2
|
|
33
8
|
min-h-[calc(44/16*1rem)]
|
|
34
9
|
border
|
|
35
10
|
border-transparent
|
|
36
11
|
rounded-lg
|
|
37
12
|
hover:bg-solid-grey-50
|
|
38
|
-
`,
|
|
13
|
+
`,r.selected=`
|
|
39
14
|
rounded-full
|
|
40
15
|
bg-yellow-50
|
|
41
|
-
`;const
|
|
42
|
-
focus-visible:outline
|
|
16
|
+
`;const n=`
|
|
43
17
|
focus-visible:outline-4
|
|
44
18
|
focus-visible:outline-black
|
|
45
19
|
focus-visible:ring-yellow-300
|
|
46
|
-
`;
|
|
47
|
-
${
|
|
20
|
+
`;r.focusRectCondensed=`
|
|
21
|
+
${n}
|
|
48
22
|
focus-visible:-outline-offset-4
|
|
49
23
|
focus-visible:ring-[calc(6/16*1rem)]
|
|
50
24
|
focus-visible:ring-inset
|
|
51
|
-
`,
|
|
52
|
-
${
|
|
25
|
+
`,r.focusRectCondensedWithBg=`
|
|
26
|
+
${r.focusRectCondensed}
|
|
53
27
|
focus-visible:bg-yellow-300
|
|
54
|
-
`,
|
|
55
|
-
${
|
|
28
|
+
`,r.focusRect=`
|
|
29
|
+
${n}
|
|
56
30
|
focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
57
31
|
focus-visible:ring-[calc(2/16*1rem)]
|
|
58
|
-
`,
|
|
59
|
-
${
|
|
60
|
-
focus-visible:rounded
|
|
61
|
-
`,
|
|
62
|
-
${
|
|
32
|
+
`,r.focusRounded=`
|
|
33
|
+
${r.focusRect}
|
|
34
|
+
focus-visible:rounded-sm
|
|
35
|
+
`,r.focusCard=`
|
|
36
|
+
${r.focusRect}
|
|
63
37
|
focus-visible:rounded-2xl
|
|
64
38
|
sm:focus-visible:rounded-3xl
|
|
65
|
-
`,
|
|
66
|
-
${
|
|
39
|
+
`,r.focusRectWithBg=`
|
|
40
|
+
${r.focusRect}
|
|
67
41
|
focus-visible:bg-yellow-300
|
|
68
|
-
`,
|
|
69
|
-
${
|
|
70
|
-
focus-visible:rounded
|
|
71
|
-
`,
|
|
42
|
+
`,r.focusRoundedWithBg=`
|
|
43
|
+
${r.focusRectWithBg}
|
|
44
|
+
focus-visible:rounded-sm
|
|
45
|
+
`,r.hoverUnderline=`
|
|
72
46
|
hover:underline
|
|
73
47
|
hover:underline-offset-[calc(3/16*1rem)]
|
|
74
|
-
`,
|
|
48
|
+
`,r.underline=`
|
|
75
49
|
underline
|
|
76
50
|
underline-offset-[calc(3/16*1rem)]
|
|
77
51
|
hover:decoration-[calc(3/16*1rem)]
|
|
78
|
-
`,
|
|
52
|
+
`,r.underlineNoDeco=`
|
|
79
53
|
underline
|
|
80
54
|
underline-offset-[calc(3/16*1rem)]
|
|
81
|
-
`,
|
|
55
|
+
`,r.popover=`
|
|
82
56
|
min-w-fit
|
|
83
57
|
w-auto
|
|
84
58
|
py-2
|
|
@@ -88,24 +62,23 @@ Check the top-level render call using <`+e+">."),r}var Ye=N,F=Symbol.for("react.
|
|
|
88
62
|
border
|
|
89
63
|
border-solid-grey-420
|
|
90
64
|
has-[>:nth-child(7)]:rounded-r-none
|
|
91
|
-
`,
|
|
65
|
+
`,r.popoverPositionBottomRight=`
|
|
92
66
|
absolute
|
|
93
67
|
top-11
|
|
94
68
|
right-0
|
|
95
|
-
`,
|
|
69
|
+
`,r.popoverPositionBottomLeft=`
|
|
96
70
|
absolute
|
|
97
71
|
top-11
|
|
98
72
|
left-0
|
|
99
|
-
`,(
|
|
100
|
-
peer-focus-visible:outline
|
|
73
|
+
`,(d=>{d.focus=`
|
|
101
74
|
peer-focus-visible:outline-4
|
|
102
75
|
peer-focus-visible:outline-black
|
|
103
76
|
peer-focus-visible:ring-yellow-300
|
|
104
|
-
`,
|
|
105
|
-
${
|
|
77
|
+
`,d.focusRect=`
|
|
78
|
+
${d.focus}
|
|
106
79
|
peer-focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
107
80
|
peer-focus-visible:ring-[calc(2/16*1rem)]
|
|
108
|
-
`})(
|
|
81
|
+
`})(r.Peer||(r.Peer={}))})(N||(N={}));const T=R.createContext({helperTextId:"",errorMessageId:"",isInvalid:!1,isRequired:!1}),J=`
|
|
109
82
|
bg-white
|
|
110
83
|
border
|
|
111
84
|
border-solid
|
|
@@ -114,8 +87,8 @@ Check the top-level render call using <`+e+">."),r}var Ye=N,F=Symbol.for("react.
|
|
|
114
87
|
disabled:text-solid-gray-500
|
|
115
88
|
disabled:border-solid-gray-500
|
|
116
89
|
aria-invalid:border-red-800
|
|
117
|
-
${
|
|
118
|
-
`,
|
|
90
|
+
${N.focusRect}
|
|
91
|
+
`,H={lg:`
|
|
119
92
|
p-4
|
|
120
93
|
text-label
|
|
121
94
|
rounded-lg
|
|
@@ -132,13 +105,13 @@ Check the top-level render call using <`+e+">."),r}var Ye=N,F=Symbol.for("react.
|
|
|
132
105
|
text-label
|
|
133
106
|
rounded-md
|
|
134
107
|
leading-snug
|
|
135
|
-
`},
|
|
108
|
+
`},X=`
|
|
136
109
|
inline-block
|
|
137
110
|
cursor-pointer
|
|
138
111
|
border
|
|
139
112
|
border-solid
|
|
140
113
|
border-transparent
|
|
141
|
-
`,
|
|
114
|
+
`,Z={lg:`
|
|
142
115
|
pr-8
|
|
143
116
|
py-4
|
|
144
117
|
text-label
|
|
@@ -153,12 +126,12 @@ Check the top-level render call using <`+e+">."),r}var Ye=N,F=Symbol.for("react.
|
|
|
153
126
|
py-2
|
|
154
127
|
text-label
|
|
155
128
|
leading-snug
|
|
156
|
-
`},
|
|
129
|
+
`},Q={lg:"w-[22px] h-[22px] mr-2",md:"w-[18px] h-[18px] mr-1.5",sm:"w-[18px] h-[18px] mr-1"},M=r=>{const{id:n,className:d,size:i="lg",children:o,...t}=r,a=R.useId(),u=n||a,c=R.useContext(T);c.isRequired&&(t.required=!0),c.groupName&&(t.name=c.groupName);const m={lg:22/24,md:18/24,sm:18/24},f=`
|
|
157
130
|
peer
|
|
158
131
|
sr-only
|
|
159
|
-
`,
|
|
132
|
+
`,g=`
|
|
160
133
|
bg-clip-content
|
|
161
|
-
rounded
|
|
134
|
+
rounded-sm
|
|
162
135
|
border
|
|
163
136
|
border-solid
|
|
164
137
|
border-solid-gray-900
|
|
@@ -167,11 +140,11 @@ Check the top-level render call using <`+e+">."),r}var Ye=N,F=Symbol.for("react.
|
|
|
167
140
|
peer-checked:bg-blue-600
|
|
168
141
|
peer-checked:border-none
|
|
169
142
|
peer-disabled:border-solid-gray-500
|
|
170
|
-
${
|
|
171
|
-
`;return
|
|
143
|
+
${N.Peer.focusRect}
|
|
144
|
+
`;return s.jsx("label",{htmlFor:u,className:y(X,Z[i],d),children:s.jsxs("span",{className:"flex items-center",children:[s.jsx("input",{id:u,className:f,type:"checkbox","aria-describedby":c.helperTextId,"aria-errormessage":c.errorMessageId,"aria-invalid":c.isInvalid??!1,...t}),s.jsx("span",{className:y(g,Q[i]),children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",children:s.jsx("g",{transform:`scale(${m[i]} ${m[i]})`,children:s.jsx("path",{d:"m9.55 17.65-5.325-5.325 1.05-1.075 4.275 4.275 9.175-9.175 1.05 1.075Z"})})})}),s.jsx("span",{className:"peer-disabled:text-solid-gray-500",children:o})]})})};M.displayName="Checkbox";const q=r=>{const{id:n,className:d,size:i="lg",children:o,...t}=r,a=R.useId(),u=n||a,c=R.useContext(T);c.isRequired&&(t.required=!0),c.groupName&&(t.name=c.groupName);const m=`
|
|
172
145
|
peer
|
|
173
146
|
sr-only
|
|
174
|
-
`,
|
|
147
|
+
`,f=`
|
|
175
148
|
bg-clip-content
|
|
176
149
|
rounded-full
|
|
177
150
|
border
|
|
@@ -180,13 +153,13 @@ Check the top-level render call using <`+e+">."),r}var Ye=N,F=Symbol.for("react.
|
|
|
180
153
|
peer-checked:bg-blue-600
|
|
181
154
|
peer-checked:border-blue-600
|
|
182
155
|
peer-disabled:border-solid-gray-500
|
|
183
|
-
${
|
|
184
|
-
`,
|
|
156
|
+
${N.Peer.focusRect}
|
|
157
|
+
`,g={lg:"p-1",md:"p-[3px]",sm:"p-[3px]"};return s.jsx("label",{htmlFor:u,className:y(X,Z[i],d),children:s.jsxs("span",{className:"flex items-center",children:[s.jsx("input",{id:u,className:m,type:"radio","aria-describedby":c.helperTextId,"aria-errormessage":c.errorMessageId,"aria-invalid":c.isInvalid??!1,...t}),s.jsx("span",{"aria-hidden":!0,className:y(f,g[i],Q[i])}),s.jsx("span",{className:"peer-disabled:text-solid-gray-500",children:o})]})})};q.displayName="Radio";const K=r=>{const{id:n,className:d,size:i="lg",children:o,...t}=r,a=R.useContext(T);return a.isRequired&&(t.required=!0),s.jsxs("div",{className:"inline-block relative",children:[s.jsx("select",{id:n||a.id,className:y(`
|
|
185
158
|
!pr-8
|
|
186
159
|
peer
|
|
187
160
|
cursor-pointer
|
|
188
161
|
appearance-none
|
|
189
|
-
`,
|
|
162
|
+
`,J,H[i],d),"aria-describedby":a.helperTextId,"aria-errormessage":a.errorMessageId,"aria-invalid":a.isInvalid??!1,...t,children:o}),s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,className:`
|
|
190
163
|
pointer-events-none
|
|
191
164
|
absolute
|
|
192
165
|
right-4
|
|
@@ -194,7 +167,7 @@ Check the top-level render call using <`+e+">."),r}var Ye=N,F=Symbol.for("react.
|
|
|
194
167
|
-translate-y-1/2
|
|
195
168
|
text-solid-gray-900
|
|
196
169
|
peer-disabled:text-solid-gray-500
|
|
197
|
-
`,fill:"none",width:"16",height:"16",viewBox:"0 0 16 16",children:[
|
|
170
|
+
`,fill:"none",width:"16",height:"16",viewBox:"0 0 16 16",children:[s.jsx("title",{children:"arrow down"}),s.jsx("path",{d:"M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z",fill:"currentColor"})]})]})};K.displayName="Select";const ee=r=>{const{id:n,className:d,size:i="lg",...o}=r,t=R.useContext(T);t.isRequired&&(o.required=!0);const a=`
|
|
198
171
|
file:mr-2
|
|
199
172
|
file:inline-block
|
|
200
173
|
file:text-button
|
|
@@ -210,7 +183,7 @@ Check the top-level render call using <`+e+">."),r}var Ye=N,F=Symbol.for("react.
|
|
|
210
183
|
file:active:border-blue-1200
|
|
211
184
|
file:disabled:border-solid-gray-500
|
|
212
185
|
file:disabled:cursor-not-allowed
|
|
213
|
-
`,
|
|
186
|
+
`,u=`
|
|
214
187
|
file:text-blue-900
|
|
215
188
|
file:hover:text-blue-1000
|
|
216
189
|
file:active:text-blue-1200
|
|
@@ -225,8 +198,8 @@ Check the top-level render call using <`+e+">."),r}var Ye=N,F=Symbol.for("react.
|
|
|
225
198
|
rounded-lg
|
|
226
199
|
outline-offset-2
|
|
227
200
|
aria-invalid:text-red-800
|
|
228
|
-
${
|
|
229
|
-
${
|
|
201
|
+
${N.hoverUnderline}
|
|
202
|
+
${N.focusRounded}
|
|
230
203
|
`,m={lg:`
|
|
231
204
|
file:p-4
|
|
232
205
|
file:text-button
|
|
@@ -244,7 +217,7 @@ Check the top-level render call using <`+e+">."),r}var Ye=N,F=Symbol.for("react.
|
|
|
244
217
|
file:text-button
|
|
245
218
|
file:rounded-md
|
|
246
219
|
file:leading-snug
|
|
247
|
-
`};return
|
|
220
|
+
`};return s.jsx("input",{type:"file",id:n||t.id,className:y(a,u,m[i],c,d),"aria-describedby":t.helperTextId,"aria-errormessage":t.errorMessageId,"aria-invalid":t.isInvalid??!1,...o})};ee.displayName="FileInput";const re=r=>{const{id:n,className:d,size:i="lg",...o}=r,t=R.useContext(T);return t.isRequired&&(o.required=!0),s.jsx("input",{type:"text",id:n||t.id,className:y(J,H[i],d),"aria-describedby":t.helperTextId,"aria-errormessage":t.errorMessageId,"aria-invalid":t.isInvalid??!1,...o})};re.displayName="Input";const te=r=>{const{id:n,className:d,children:i,onChange:o,maxLength:t,...a}=r,[u,c]=R.useState(0),m=v=>{o&&o(v),c(v.target.value.length)},f=R.useContext(T);f.isRequired&&(a.required=!0);const g=u>(t||0)?"text-red-800":"text-solid-gray-700",h=`
|
|
248
221
|
p-4
|
|
249
222
|
text-label
|
|
250
223
|
rounded-lg
|
|
@@ -255,9 +228,9 @@ Check the top-level render call using <`+e+">."),r}var Ye=N,F=Symbol.for("react.
|
|
|
255
228
|
disabled:text-solid-gray-500
|
|
256
229
|
disabled:border-solid-gray-500
|
|
257
230
|
aria-invalid:border-red-800
|
|
258
|
-
${
|
|
259
|
-
`;return
|
|
231
|
+
${N.focusRect}
|
|
232
|
+
`;return s.jsxs(s.Fragment,{children:[s.jsx("textarea",{id:n||f.id,className:y(h,d),"aria-describedby":f.helperTextId,"aria-errormessage":f.errorMessageId,"aria-invalid":f.isInvalid??!1,onChange:m,...a,children:i}),t?s.jsxs("p",{className:"text-label text-solid-gray-700",children:[s.jsx("span",{className:g,children:u}),"/",s.jsx("span",{children:t})]}):""]})};te.displayName="Textarea";const se=r=>{const n=R.useId(),{labelText:d,className:i,helperText:o,errorMessage:t,isInvalid:a,isRequired:u,children:c,...m}=r,f={id:r.htmlFor??`input-${n}`,helperTextId:`helper-text-${n}`,errorMessageId:`error-message-${n}`,isInvalid:a??!1,isRequired:u??!1};return s.jsx(T.Provider,{value:f,children:s.jsxs("div",{className:y("flex flex-col items-start gap-2",i),children:[s.jsxs("label",{className:y("block text-label",a&&"text-red-800"),htmlFor:f.id,...m,children:[d,u&&s.jsx("span",{className:"text-label text-red-800",children:" *"})]}),o&&s.jsx("p",{id:f.helperTextId,className:`
|
|
260
233
|
text-label text-solid-gray-700
|
|
261
|
-
`,children:
|
|
234
|
+
`,children:o}),c,a&&s.jsx("p",{id:f.errorMessageId,className:`
|
|
262
235
|
text-label text-red-800
|
|
263
|
-
`,children:
|
|
236
|
+
`,children:t})]})})};se.displayName="LabelControl";const w=r=>{const n=R.useId(),{labelText:d,className:i,helperText:o,errorMessage:t,isInvalid:a,isRequired:u,direction:c,children:m,...f}=r,h={groupName:f.name??`group-${n}`,helperTextId:`helper-text-${n}`,errorMessageId:`error-message-${n}`,isInvalid:a??!1,isRequired:u??!1},v=c??"flex-col";return s.jsx(T.Provider,{value:h,children:s.jsxs("fieldset",{className:y("flex flex-col items-start gap-2",i),...f,children:[s.jsx("legend",{children:s.jsxs("p",{className:y("block text-label",a&&"text-red-800"),children:[d,u&&s.jsx("span",{className:"text-red-800",children:" *"})]})}),s.jsx("div",{className:y("inline-flex",v),children:m}),o&&s.jsx("p",{id:h.helperTextId,className:"text-sup text-solid-gray-700",children:o}),a&&s.jsx("p",{id:h.errorMessageId,className:"text-label text-red-800",children:t})]})})};w.displayName="FieldsetControl";const le=r=>{const{items:n,onChange:d,className:i,labelText:o,helperText:t,errorMessage:a,isInvalid:u,isRequired:c,size:m,...f}=r;return s.jsx(w,{className:i,labelText:o,helperText:t,errorMessage:a,isInvalid:u,isRequired:c,...f,children:n.map(({label:g,value:h})=>s.jsx(M,{size:m,value:h,onChange:d,children:g},`${g}-${h}`))})};le.displayName="CheckboxGroup";const oe=r=>{const{items:n,onChange:d,className:i,labelText:o,helperText:t,errorMessage:a,isInvalid:u,isRequired:c,defaultValue:m,size:f,...g}=r;return s.jsx(w,{className:i,labelText:o,helperText:t,errorMessage:a,isInvalid:u,isRequired:c,...g,children:n.map(({label:h,value:v})=>s.jsx(q,{size:f,value:v,onChange:d,defaultChecked:m===v,children:h},`${h}-${v}`))})};oe.displayName="RadioGroup";exports.Checkbox=M;exports.CheckboxGroup=le;exports.FieldsetControl=w;exports.FileInput=ee;exports.Input=re;exports.LabelControl=se;exports.Radio=q;exports.RadioGroup=oe;exports.Select=K;exports.Textarea=te;
|