arkenstone-ui 0.0.14 → 0.0.15
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/dist/arkenstone-ui.es.js
CHANGED
|
@@ -13,8 +13,8 @@ var F;
|
|
|
13
13
|
function ee() {
|
|
14
14
|
if (F) return _;
|
|
15
15
|
F = 1;
|
|
16
|
-
var l = Symbol.for("react.transitional.element"),
|
|
17
|
-
function
|
|
16
|
+
var l = Symbol.for("react.transitional.element"), c = Symbol.for("react.fragment");
|
|
17
|
+
function u(f, o, s) {
|
|
18
18
|
var d = null;
|
|
19
19
|
if (s !== void 0 && (d = "" + s), o.key !== void 0 && (d = "" + o.key), "key" in o) {
|
|
20
20
|
s = {};
|
|
@@ -29,7 +29,7 @@ function ee() {
|
|
|
29
29
|
props: s
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
return _.Fragment =
|
|
32
|
+
return _.Fragment = c, _.jsx = u, _.jsxs = u, _;
|
|
33
33
|
}
|
|
34
34
|
var E = {};
|
|
35
35
|
/**
|
|
@@ -87,12 +87,12 @@ function re() {
|
|
|
87
87
|
}
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function c(e) {
|
|
91
91
|
return "" + e;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function u(e) {
|
|
94
94
|
try {
|
|
95
|
-
|
|
95
|
+
c(e);
|
|
96
96
|
var r = !1;
|
|
97
97
|
} catch {
|
|
98
98
|
r = !0;
|
|
@@ -104,7 +104,7 @@ function re() {
|
|
|
104
104
|
r,
|
|
105
105
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
106
|
n
|
|
107
|
-
),
|
|
107
|
+
), c(e);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
function f(e) {
|
|
@@ -198,10 +198,10 @@ function re() {
|
|
|
198
198
|
else P(a);
|
|
199
199
|
if (g.call(r, "key")) {
|
|
200
200
|
a = l(e);
|
|
201
|
-
var
|
|
201
|
+
var i = Object.keys(r).filter(function(Q) {
|
|
202
202
|
return Q !== "key";
|
|
203
203
|
});
|
|
204
|
-
n = 0 <
|
|
204
|
+
n = 0 < i.length ? "{key: someKey, " + i.join(": ..., ") + ": ...}" : "{key: someKey}", $[a + n] || (i = 0 < i.length ? "{" + i.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
205
|
`A props object containing a "key" prop is being spread into JSX:
|
|
206
206
|
let props = %s;
|
|
207
207
|
<%s {...props} />
|
|
@@ -210,11 +210,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
210
210
|
<%s key={someKey} {...props} />`,
|
|
211
211
|
n,
|
|
212
212
|
a,
|
|
213
|
-
|
|
213
|
+
i,
|
|
214
214
|
a
|
|
215
215
|
), $[a + n] = !0);
|
|
216
216
|
}
|
|
217
|
-
if (a = null, t !== void 0 && (
|
|
217
|
+
if (a = null, t !== void 0 && (u(t), a = "" + t), d(r) && (u(r.key), a = "" + r.key), "key" in r) {
|
|
218
218
|
t = {};
|
|
219
219
|
for (var S in r)
|
|
220
220
|
S !== "key" && (t[S] = r[S]);
|
|
@@ -274,11 +274,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
274
274
|
}
|
|
275
275
|
process.env.NODE_ENV === "production" ? j.exports = ee() : j.exports = re();
|
|
276
276
|
var p = j.exports;
|
|
277
|
-
function ne({ children: l, className: u }) {
|
|
277
|
+
function ne({ children: l, className: c, active: u }) {
|
|
278
278
|
return /* @__PURE__ */ p.jsxs("div", { className: "px-10 py-5 rounded-full w-full bg-green-500", children: [
|
|
279
279
|
/* @__PURE__ */ p.jsx("h3", { className: "c-text", children: "Button Field" }),
|
|
280
|
-
/* @__PURE__ */ p.jsx("button", { className:
|
|
281
|
-
/* @__PURE__ */ p.jsx("p", { children: "description" })
|
|
280
|
+
/* @__PURE__ */ p.jsx("button", { className: c, children: l }),
|
|
281
|
+
u && /* @__PURE__ */ p.jsx("p", { children: "description" })
|
|
282
282
|
] });
|
|
283
283
|
}
|
|
284
284
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(u,
|
|
1
|
+
(function(u,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],d):(u=typeof globalThis<"u"?globalThis:u||self,d(u["arkenstone-ui"]={},u.React))})(this,function(u,d){"use strict";var k={exports:{}},m={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var P;function L(){if(P)return
|
|
9
|
+
*/var P;function L(){if(P)return m;P=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(E,o,s){var p=null;if(s!==void 0&&(p=""+s),o.key!==void 0&&(p=""+o.key),"key"in o){s={};for(var b in o)b!=="key"&&(s[b]=o[b])}else s=o;return o=s.ref,{$$typeof:l,type:E,key:p,ref:o!==void 0?o:null,props:s}}return m.Fragment=i,m.jsx=c,m.jsxs=c,m}var _={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var h;function W(){return h||(h=1,process.env.NODE_ENV!=="production"&&function(){function l(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case J:return"Profiler";case G:return"StrictMode";case Z:return"Suspense";case Q:return"SuspenseList";case ee: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 q:return"Portal";case X:return e.displayName||"Context";case B:return(e._context.displayName||"Context")+".Consumer";case H:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return r=e.displayName||null,r!==null?r:l(e.type)||"Memo";case y:r=e._payload,e=e._init;try{return l(e(r))}catch{}}return null}function
|
|
17
|
+
*/var h;function W(){return h||(h=1,process.env.NODE_ENV!=="production"&&function(){function l(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case J:return"Profiler";case G:return"StrictMode";case Z:return"Suspense";case Q:return"SuspenseList";case ee: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 q:return"Portal";case X:return e.displayName||"Context";case B:return(e._context.displayName||"Context")+".Consumer";case H:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return r=e.displayName||null,r!==null?r:l(e.type)||"Memo";case y:r=e._payload,e=e._init;try{return l(e(r))}catch{}}return null}function i(e){return""+e}function c(e){try{i(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=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.",n),i(e)}}function E(e){if(e===O)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===y)return"<...>";try{var r=l(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function o(){var e=S.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function p(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){F||(F=!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 V(){var e=l(this.type);return I[e]||(I[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 z(e,r,t,n,T,A){var a=t.ref;return e={$$typeof:C,type:e,key:r,props:t,_owner:n},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:V}):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:T}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function w(e,r,t,n,T,A){var a=r.children;if(a!==void 0)if(n)if(te(a)){for(n=0;n<a.length;n++)g(a[n]);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 g(a);if(Y.call(r,"key")){a=l(e);var f=Object.keys(r).filter(function(ne){return ne!=="key"});n=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",M[a+n]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,n,a,
|
|
22
|
+
<%s key={someKey} {...props} />`,n,a,f,a),M[a+n]=!0)}if(a=null,t!==void 0&&(c(t),a=""+t),p(r)&&(c(r.key),a=""+r.key),"key"in r){t={};for(var x in r)x!=="key"&&(t[x]=r[x])}else t=r;return a&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),z(e,a,t,o(),T,A)}function g(e){N(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===y&&(e._payload.status==="fulfilled"?N(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function N(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}var v=d,C=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),X=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),re=Symbol.for("react.client.reference"),S=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,te=Array.isArray,j=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var F,I={},$=v.react_stack_bottom_frame.bind(v,s)(),D=j(E(s)),M={};_.Fragment=O,_.jsx=function(e,r,t){var n=1e4>S.recentlyCreatedOwnerStacks++;return w(e,r,t,!1,n?Error("react-stack-top-frame"):$,n?j(E(e)):D)},_.jsxs=function(e,r,t){var n=1e4>S.recentlyCreatedOwnerStacks++;return w(e,r,t,!0,n?Error("react-stack-top-frame"):$,n?j(E(e)):D)}}()),_}process.env.NODE_ENV==="production"?k.exports=L():k.exports=W();var R=k.exports;function U({children:l,className:i,active:c}){return R.jsxs("div",{className:"px-10 py-5 rounded-full w-full bg-green-500",children:[R.jsx("h3",{className:"c-text",children:"Button Field"}),R.jsx("button",{className:i,children:l}),c&&R.jsx("p",{children:"description"})]})}u.Button=U,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
@tailwind base;@tailwind components;@tailwind utilities;:root{--background: #f4f8f5;--foreground: #2c2f2a;--card: #e7edea;--card-foreground: #2c2f2a;--popover: #edf3ef;--popover-foreground: #2c2f2a;--primary: #8ca982;--primary-foreground: #ffffff;--secondary: #d9e1db;--secondary-foreground: #1e241f;--muted: #c4ccc7;--muted-foreground: #5a605b;--accent: #aa8745;--accent-foreground: #ffffff;--destructive: #b54949;--destructive-foreground: #ffffff;--border: #a1b0a2;--input: #90a093;--ring: #b9cbbd;--chart-1: #6b8e6d;--chart-2: #b2a56e;--chart-3: #748f99;--chart-4: #e5c67c;--chart-5: #9e7a3e;--radius: .625rem;--sidebar: #e0e8e3;--sidebar-foreground: #2c2f2a;--sidebar-primary: #8ca982;--sidebar-primary-foreground: #ffffff;--sidebar-accent: #aa8745;--sidebar-accent-foreground: #ffffff;--sidebar-border: #cdd9d3;--sidebar-ring: #b9cbbd;--color-card: #dce5de}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{border-radius:30px;background:var(--background)}::-webkit-scrollbar-thumb{border-radius:30px;background:var(--muted-foreground)}::-webkit-scrollbar-thumb:hover{background:var(--accent)}::-webkit-scrollbar-thumb:active{background:var(--accent)}.c-text{color:#ffb428}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arkenstone-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/arkenstone-ui.umd.js",
|
|
6
6
|
"module": "./dist/arkenstone-ui.es.js",
|
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
"dev": "vite",
|
|
20
20
|
"build": "vite build",
|
|
21
21
|
"preview": "vite preview",
|
|
22
|
-
"typecheck": "tsc --noEmit"
|
|
22
|
+
"typecheck": "tsc --noEmit",
|
|
23
|
+
"storybook": "storybook dev -p 6006",
|
|
24
|
+
"build-storybook": "storybook build"
|
|
23
25
|
},
|
|
24
26
|
"peerDependencies": {
|
|
25
27
|
"react": "^19.2.0",
|
|
@@ -27,12 +29,27 @@
|
|
|
27
29
|
"tailwindcss": "^4.0.0"
|
|
28
30
|
},
|
|
29
31
|
"devDependencies": {
|
|
32
|
+
"@chromatic-com/storybook": "^4.1.2",
|
|
33
|
+
"@storybook/addon-a11y": "^10.0.7",
|
|
34
|
+
"@storybook/addon-docs": "^10.0.7",
|
|
35
|
+
"@storybook/addon-onboarding": "^10.0.7",
|
|
36
|
+
"@storybook/addon-vitest": "^10.0.7",
|
|
37
|
+
"@storybook/react-vite": "^10.0.7",
|
|
30
38
|
"@types/node": "^24.10.1",
|
|
31
39
|
"@types/react": "^19.2.2",
|
|
32
40
|
"@types/react-dom": "^19.2.2",
|
|
33
41
|
"@vitejs/plugin-react": "^5.1.0",
|
|
42
|
+
"@vitest/browser-playwright": "^4.0.9",
|
|
43
|
+
"@vitest/coverage-v8": "^4.0.9",
|
|
44
|
+
"autoprefixer": "^10.4.22",
|
|
45
|
+
"eslint-plugin-storybook": "^10.0.7",
|
|
46
|
+
"playwright": "^1.56.1",
|
|
47
|
+
"postcss": "^8.5.6",
|
|
48
|
+
"storybook": "^10.0.7",
|
|
49
|
+
"tailwindcss": "^4.1.17",
|
|
34
50
|
"typescript": "^5.4.0",
|
|
35
51
|
"vite": "^5.4.10",
|
|
36
|
-
"vite-plugin-dts": "^4.5.4"
|
|
52
|
+
"vite-plugin-dts": "^4.5.4",
|
|
53
|
+
"vitest": "^4.0.9"
|
|
37
54
|
}
|
|
38
55
|
}
|