@julo-ui/input
Advanced tools
Comparing version 0.0.6 to 0.0.7
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __commonJS = (cb, mod) => function __require() { | ||
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; | ||
}; | ||
var __export = (target, all) => { | ||
@@ -23,54 +18,4 @@ for (var name in all) | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// ../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/isFn.js | ||
var require_isFn = __commonJS({ | ||
"../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/isFn.js"(exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: () => _default | ||
}); | ||
function isFn(value) { | ||
return typeof value === "function"; | ||
} | ||
var _default = isFn; | ||
} | ||
}); | ||
// ../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/mergeRefs.js | ||
var require_mergeRefs = __commonJS({ | ||
"../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/mergeRefs.js"(exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: () => _default | ||
}); | ||
var _isFn = /* @__PURE__ */ _interopRequireDefault(require_isFn()); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { | ||
default: obj | ||
}; | ||
} | ||
var mergeRefs3 = function() { | ||
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) { | ||
refs[_key] = arguments[_key]; | ||
} | ||
const filteredRefs = refs.filter(Boolean); | ||
return (inst) => filteredRefs.forEach((ref) => (0, _isFn.default)(ref) ? ref(inst) : ref.current = inst); | ||
}; | ||
var _default = mergeRefs3; | ||
} | ||
}); | ||
// src/components/input-group/index.ts | ||
@@ -85,4 +30,4 @@ var input_group_exports = {}; | ||
var import_react4 = require("react"); | ||
var import_dom_utils2 = require("@julo-ui/dom-utils"); | ||
var import_system = require("@julo-ui/system"); | ||
var import_mergeRefs2 = __toESM(require_mergeRefs()); | ||
@@ -142,3 +87,3 @@ // src/components/input-group/usecase/use-listen-input.tsx | ||
}; | ||
}, [inputRef]); | ||
}, [groupRef, inputRef]); | ||
} | ||
@@ -149,3 +94,3 @@ var use_listen_input_default = useListenInput; | ||
var import_react3 = require("react"); | ||
var import_mergeRefs = __toESM(require_mergeRefs()); | ||
var import_dom_utils = require("@julo-ui/dom-utils"); | ||
@@ -288,3 +233,3 @@ // src/components/input-group/styles.ts | ||
...!isAddonExist && { | ||
ref: (0, import_mergeRefs.default)(inputRef, child.ref) | ||
ref: (0, import_dom_utils.mergeRefs)(inputRef, child.ref) | ||
}, | ||
@@ -303,3 +248,3 @@ sx: inputElementSx({ | ||
...!isAddonExist && { | ||
ref: (0, import_mergeRefs.default)(inputRef, child.ref) | ||
ref: (0, import_dom_utils.mergeRefs)(inputRef, child.ref) | ||
}, | ||
@@ -343,3 +288,3 @@ sx: inputElementSx({ | ||
{ | ||
ref: (0, import_mergeRefs2.default)(groupRef, ref), | ||
ref: (0, import_dom_utils2.mergeRefs)(groupRef, ref), | ||
className: (0, import_system.cx)("julo-input-group", className), | ||
@@ -346,0 +291,0 @@ ...resProps, |
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __commonJS = (cb, mod) => function __require() { | ||
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; | ||
}; | ||
var __export = (target, all) => { | ||
@@ -23,54 +18,4 @@ for (var name in all) | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// ../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/isFn.js | ||
var require_isFn = __commonJS({ | ||
"../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/isFn.js"(exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: () => _default | ||
}); | ||
function isFn(value) { | ||
return typeof value === "function"; | ||
} | ||
var _default = isFn; | ||
} | ||
}); | ||
// ../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/mergeRefs.js | ||
var require_mergeRefs = __commonJS({ | ||
"../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/mergeRefs.js"(exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: () => _default | ||
}); | ||
var _isFn = /* @__PURE__ */ _interopRequireDefault(require_isFn()); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { | ||
default: obj | ||
}; | ||
} | ||
var mergeRefs3 = function() { | ||
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) { | ||
refs[_key] = arguments[_key]; | ||
} | ||
const filteredRefs = refs.filter(Boolean); | ||
return (inst) => filteredRefs.forEach((ref) => (0, _isFn.default)(ref) ? ref(inst) : ref.current = inst); | ||
}; | ||
var _default = mergeRefs3; | ||
} | ||
}); | ||
// src/components/input-group/InputGroup.tsx | ||
@@ -83,4 +28,4 @@ var InputGroup_exports = {}; | ||
var import_react4 = require("react"); | ||
var import_dom_utils2 = require("@julo-ui/dom-utils"); | ||
var import_system = require("@julo-ui/system"); | ||
var import_mergeRefs2 = __toESM(require_mergeRefs()); | ||
@@ -140,3 +85,3 @@ // src/components/input-group/usecase/use-listen-input.tsx | ||
}; | ||
}, [inputRef]); | ||
}, [groupRef, inputRef]); | ||
} | ||
@@ -147,3 +92,3 @@ var use_listen_input_default = useListenInput; | ||
var import_react3 = require("react"); | ||
var import_mergeRefs = __toESM(require_mergeRefs()); | ||
var import_dom_utils = require("@julo-ui/dom-utils"); | ||
@@ -286,3 +231,3 @@ // src/components/input-group/styles.ts | ||
...!isAddonExist && { | ||
ref: (0, import_mergeRefs.default)(inputRef, child.ref) | ||
ref: (0, import_dom_utils.mergeRefs)(inputRef, child.ref) | ||
}, | ||
@@ -301,3 +246,3 @@ sx: inputElementSx({ | ||
...!isAddonExist && { | ||
ref: (0, import_mergeRefs.default)(inputRef, child.ref) | ||
ref: (0, import_dom_utils.mergeRefs)(inputRef, child.ref) | ||
}, | ||
@@ -341,3 +286,3 @@ sx: inputElementSx({ | ||
{ | ||
ref: (0, import_mergeRefs2.default)(groupRef, ref), | ||
ref: (0, import_dom_utils2.mergeRefs)(groupRef, ref), | ||
className: (0, import_system.cx)("julo-input-group", className), | ||
@@ -344,0 +289,0 @@ ...resProps, |
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __commonJS = (cb, mod) => function __require() { | ||
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; | ||
}; | ||
var __export = (target, all) => { | ||
@@ -23,54 +18,4 @@ for (var name in all) | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// ../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/isFn.js | ||
var require_isFn = __commonJS({ | ||
"../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/isFn.js"(exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: () => _default | ||
}); | ||
function isFn(value) { | ||
return typeof value === "function"; | ||
} | ||
var _default = isFn; | ||
} | ||
}); | ||
// ../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/mergeRefs.js | ||
var require_mergeRefs = __commonJS({ | ||
"../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/mergeRefs.js"(exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: () => _default | ||
}); | ||
var _isFn = /* @__PURE__ */ _interopRequireDefault(require_isFn()); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { | ||
default: obj | ||
}; | ||
} | ||
var mergeRefs2 = function() { | ||
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) { | ||
refs[_key] = arguments[_key]; | ||
} | ||
const filteredRefs = refs.filter(Boolean); | ||
return (inst) => filteredRefs.forEach((ref) => (0, _isFn.default)(ref) ? ref(inst) : ref.current = inst); | ||
}; | ||
var _default = mergeRefs2; | ||
} | ||
}); | ||
// src/components/input-group/usecase/use-handle-children.tsx | ||
@@ -83,3 +28,3 @@ var use_handle_children_exports = {}; | ||
var import_react2 = require("react"); | ||
var import_mergeRefs = __toESM(require_mergeRefs()); | ||
var import_dom_utils = require("@julo-ui/dom-utils"); | ||
@@ -222,3 +167,3 @@ // src/components/input-group/styles.ts | ||
...!isAddonExist && { | ||
ref: (0, import_mergeRefs.default)(inputRef, child.ref) | ||
ref: (0, import_dom_utils.mergeRefs)(inputRef, child.ref) | ||
}, | ||
@@ -237,3 +182,3 @@ sx: inputElementSx({ | ||
...!isAddonExist && { | ||
ref: (0, import_mergeRefs.default)(inputRef, child.ref) | ||
ref: (0, import_dom_utils.mergeRefs)(inputRef, child.ref) | ||
}, | ||
@@ -240,0 +185,0 @@ sx: inputElementSx({ |
@@ -78,3 +78,3 @@ "use strict"; | ||
}; | ||
}, [inputRef]); | ||
}, [groupRef, inputRef]); | ||
} | ||
@@ -81,0 +81,0 @@ var use_listen_input_default = useListenInput; |
@@ -8,5 +8,2 @@ "use strict"; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __commonJS = (cb, mod) => function __require() { | ||
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; | ||
}; | ||
var __export = (target, all) => { | ||
@@ -30,48 +27,2 @@ for (var name in all) | ||
// ../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/isFn.js | ||
var require_isFn = __commonJS({ | ||
"../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/isFn.js"(exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: () => _default | ||
}); | ||
function isFn(value) { | ||
return typeof value === "function"; | ||
} | ||
var _default = isFn; | ||
} | ||
}); | ||
// ../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/mergeRefs.js | ||
var require_mergeRefs = __commonJS({ | ||
"../../../node_modules/.pnpm/@julofinance+web-helpers@1.0.3/node_modules/@julofinance/web-helpers/dist/fn/mergeRefs.js"(exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: () => _default | ||
}); | ||
var _isFn = /* @__PURE__ */ _interopRequireDefault(require_isFn()); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { | ||
default: obj | ||
}; | ||
} | ||
var mergeRefs3 = function() { | ||
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) { | ||
refs[_key] = arguments[_key]; | ||
} | ||
const filteredRefs = refs.filter(Boolean); | ||
return (inst) => filteredRefs.forEach((ref) => (0, _isFn.default)(ref) ? ref(inst) : ref.current = inst); | ||
}; | ||
var _default = mergeRefs3; | ||
} | ||
}); | ||
// src/index.ts | ||
@@ -159,4 +110,4 @@ var src_exports = {}; | ||
var import_react5 = require("react"); | ||
var import_dom_utils2 = require("@julo-ui/dom-utils"); | ||
var import_system2 = require("@julo-ui/system"); | ||
var import_mergeRefs2 = __toESM(require_mergeRefs()); | ||
@@ -216,3 +167,3 @@ // src/components/input-group/usecase/use-listen-input.tsx | ||
}; | ||
}, [inputRef]); | ||
}, [groupRef, inputRef]); | ||
} | ||
@@ -223,3 +174,3 @@ var use_listen_input_default = useListenInput; | ||
var import_react4 = require("react"); | ||
var import_mergeRefs = __toESM(require_mergeRefs()); | ||
var import_dom_utils = require("@julo-ui/dom-utils"); | ||
@@ -362,3 +313,3 @@ // src/components/input-group/styles.ts | ||
...!isAddonExist && { | ||
ref: (0, import_mergeRefs.default)(inputRef, child.ref) | ||
ref: (0, import_dom_utils.mergeRefs)(inputRef, child.ref) | ||
}, | ||
@@ -377,3 +328,3 @@ sx: inputElementSx({ | ||
...!isAddonExist && { | ||
ref: (0, import_mergeRefs.default)(inputRef, child.ref) | ||
ref: (0, import_dom_utils.mergeRefs)(inputRef, child.ref) | ||
}, | ||
@@ -417,3 +368,3 @@ sx: inputElementSx({ | ||
{ | ||
ref: (0, import_mergeRefs2.default)(groupRef, ref), | ||
ref: (0, import_dom_utils2.mergeRefs)(groupRef, ref), | ||
className: (0, import_system2.cx)("julo-input-group", className), | ||
@@ -420,0 +371,0 @@ ...resProps, |
{ | ||
"name": "@julo-ui/input", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "A React Component for Input Text Field", | ||
@@ -29,7 +29,8 @@ "keywords": [ | ||
"@emotion/react": "^11.10.6", | ||
"@julo-ui/form-control": "^0.0.5", | ||
"@julo-ui/typography": "1.0.5" | ||
"@julo-ui/form-control": "^0.0.6", | ||
"@julo-ui/typography": "1.0.6", | ||
"@julo-ui/dom-utils": "0.0.1" | ||
}, | ||
"devDependencies": { | ||
"@julo-ui/system": "0.0.1-alpha.5" | ||
"@julo-ui/system": "0.0.1-alpha.6" | ||
}, | ||
@@ -39,3 +40,3 @@ "peerDependencies": { | ||
"react": ">=18", | ||
"@julo-ui/system": "0.0.1-alpha.5" | ||
"@julo-ui/system": "0.0.1-alpha.6" | ||
}, | ||
@@ -42,0 +43,0 @@ "clean-package": "../../../clean-package.config.json", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103394
7
86
3185
+ Added@julo-ui/dom-utils@0.0.1
+ Added@julo-ui/dom-utils@0.0.1(transitive)
+ Added@julo-ui/form-control@0.0.6(transitive)
+ Added@julo-ui/function-utils@0.0.1(transitive)
+ Added@julo-ui/system@0.0.1-alpha.6(transitive)
+ Added@julo-ui/typography@1.0.6(transitive)
- Removed@julo-ui/form-control@0.0.5(transitive)
- Removed@julo-ui/system@0.0.1-alpha.5(transitive)
Updated@julo-ui/form-control@^0.0.6
Updated@julo-ui/typography@1.0.6