ahmeds-framework-test 1.0.0

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.
@@ -0,0 +1,8 @@
1
+ import type { InputHTMLAttributes } from "react";
2
+ import "./Input.css";
3
+ export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
4
+ label?: string;
5
+ big?: boolean;
6
+ }
7
+ declare const Input: ({ label, big, className, ...props }: InputProps) => import("react").JSX.Element;
8
+ export default Input;
@@ -0,0 +1,9 @@
1
+ import type { ReactNode } from "react";
2
+ import "./HelloWorld.css";
3
+ export interface HelloWorldProps {
4
+ color: string;
5
+ big?: boolean;
6
+ children?: ReactNode;
7
+ }
8
+ declare const HelloWorld: ({ children, color, big }: HelloWorldProps) => import("react").JSX.Element;
9
+ export default HelloWorld;
@@ -0,0 +1,3 @@
1
+ import HelloWorld from "./hello-world/hello-world";
2
+ import Input from "./MyInput/my-input";
3
+ export { HelloWorld, Input };
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ !function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t=n();for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,()=>(()=>{"use strict";var e={68(e,n,t){var r=t(601),o=t.n(r),a=t(314),i=t.n(a)()(o());i.push([e.id,".input-wrapper {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.input-label {\n font-size: 14px;\n font-weight: 500;\n}\n\n.input {\n padding: 8px 12px;\n border: 1px solid #ccc;\n border-radius: 6px;\n font-size: 16px;\n outline: none;\n}\n\n.input:focus {\n border-color: #000;\n}\n\n.input.big {\n padding: 12px 16px;\n font-size: 20px;\n}",""]);const s=i;t.d(n,["A",0,s])},741(e,n,t){var r=t(601),o=t.n(r),a=t(314),i=t.n(a)()(o());i.push([e.id,".helloWorld{\n color: black;\n padding: 10px 5px;\n}\n.big{\n font-size: 50px;\n color: red;\n}",""]);const s=i;t.d(n,["A",0,s])},314(e){e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t="",r=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),r&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),r&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t}).join("")},n.i=function(e,t,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(i[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&i[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),t&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=t):u[2]=t),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),n.push(u))}},n}},601(e){e.exports=function(e){return e[1]}},698(e,n){var t=Symbol.for("react.transitional.element");function r(e,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var a in r={},n)"key"!==a&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:o,ref:void 0!==n?n:null,props:r}}Symbol.for("react.fragment"),n.jsx=r,n.jsxs=r},848(e,n,t){e.exports=t(698)},191(e,n,t){var r=t(72),o=t.n(r),a=t(825),i=t.n(a),s=t(659),c=t.n(s),l=t(56),u=t.n(l),p=t(540),d=t.n(p),f=t(113),v=t.n(f),y=t(68),m={};m.styleTagTransform=v(),m.setAttributes=u(),m.insert=c().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=d(),o()(y.A,m),y.A&&y.A.locals&&y.A.locals},880(e,n,t){var r=t(72),o=t.n(r),a=t(825),i=t.n(a),s=t(659),c=t.n(s),l=t(56),u=t.n(l),p=t(540),d=t.n(p),f=t(113),v=t.n(f),y=t(741),m={};m.styleTagTransform=v(),m.setAttributes=u(),m.insert=c().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=d(),o()(y.A,m),y.A&&y.A.locals&&y.A.locals},72(e){var n=[];function t(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}function r(e,r){for(var a={},i=[],s=0;s<e.length;s++){var c=e[s],l=r.base?c[0]+r.base:c[0],u=a[l]||0,p="".concat(l," ").concat(u);a[l]=u+1;var d=t(p),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)n[d].references++,n[d].updater(f);else{var v=o(f,r);r.byIndex=s,n.splice(s,0,{identifier:p,updater:v,references:1})}i.push(p)}return i}function o(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=t(a[i]);n[s].references--}for(var c=r(e,o),l=0;l<a.length;l++){var u=t(a[l]);0===n[u].references&&(n[u].updater(),n.splice(u,1))}a=c}}},659(e){var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}},540(e){e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},56(e,n,t){e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},825(e){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var r="";t.supports&&(r+="@supports (".concat(t.supports,") {")),t.media&&(r+="@media ".concat(t.media," {"));var o=void 0!==t.layer;o&&(r+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),r+=t.css,o&&(r+="}"),t.media&&(r+="}"),t.supports&&(r+="}");var a=t.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),n.styleTagTransform(r,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},113(e){e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},754(e,n,t){var r=this&&this.__rest||function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};Object.defineProperty(n,"__esModule",{value:!0});const o=t(848);t(191),n.default=e=>{var{label:n,big:t,className:a}=e,i=r(e,["label","big","className"]);const s=["input"];return t&&s.push("big"),a&&s.push(a),(0,o.jsxs)("label",{className:"input-wrapper",children:[n&&(0,o.jsx)("span",{className:"input-label",children:n}),(0,o.jsx)("input",Object.assign({},i,{className:s.join(" ")}))]})}},185(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});const r=t(848);t(880),n.default=({children:e,color:n,big:t})=>{const o=["my-button"];return t&&o.push("big"),(0,r.jsx)("h1",{className:o.join(" "),style:{color:n},children:e})}},156(e,n,t){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Input=n.HelloWorld=void 0;const o=r(t(185));n.HelloWorld=o.default;const a=r(t(754));n.Input=a.default}};const n={};function t(r){const o=n[r];if(void 0!==o)return o.exports;const a=n[r]={id:r,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.exports}return t.n=e=>{const n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{if(Array.isArray(n))for(var r=0;r<n.length;){var o=n[r++],a=n[r++],i=0===a?{enumerable:!0,value:n[r++]}:{enumerable:!0,get:a};t.o(e,o)||Object.defineProperty(e,o,i)}else for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.nc=void 0,t(156)})());
@@ -0,0 +1,9 @@
1
+ /**
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
+ */
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "ahmeds-framework-test",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "./dist/index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "type": "commonjs",
13
+ "devDependencies": {
14
+ "@types/react": "^19.3.0",
15
+ "css-loader": "^7.1.5",
16
+ "react": "^19.3.0",
17
+ "react-dom": "^19.3.0",
18
+ "style-loader": "^4.0.0",
19
+ "ts-loader": "^9.6.2",
20
+ "typescript": "^6.0.3",
21
+ "webpack": "^5.111.1",
22
+ "webpack-cli": "^7.2.3"
23
+ },
24
+ "peerDependencies": {
25
+ "react": "*",
26
+ "react-dom": "*"
27
+ },
28
+ "files": [
29
+ "dist"
30
+ ]
31
+ }