{"id":24505758,"url":"https://github.com/ioncakephper/ui","last_synced_at":"2026-02-19T10:31:39.629Z","repository":{"id":189123739,"uuid":"680088712","full_name":"ioncakephper/ui","owner":"ioncakephper","description":"Framework for building UI elements programmatically in JavaScript.","archived":false,"fork":false,"pushed_at":"2025-03-11T22:26:12.000Z","size":10915,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T18:07:21.023Z","etag":null,"topics":["generated-code","html5","javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ioncakephper.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"patreon":"iongireada"}},"created_at":"2023-08-18T10:07:23.000Z","updated_at":"2023-08-18T21:36:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf581402-f943-4673-9dcc-1db70f4543cb","html_url":"https://github.com/ioncakephper/ui","commit_stats":null,"previous_names":["ioncakephper/ui"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ioncakephper/ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioncakephper%2Fui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioncakephper%2Fui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioncakephper%2Fui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioncakephper%2Fui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ioncakephper","download_url":"https://codeload.github.com/ioncakephper/ui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioncakephper%2Fui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29609801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["generated-code","html5","javascript"],"created_at":"2025-01-21T23:31:34.128Z","updated_at":"2026-02-19T10:31:38.030Z","avatar_url":"https://github.com/ioncakephper.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003eWelcome to uijs-kit 👋\u003c/h1\u003e\n\u003cp\u003e\n  \u003ca href=\"https://www.npmjs.com/package/uijs-kit\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/npm/v/uijs-kit.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ioncakephper/ui#readme\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ioncakephper/ui/graphs/commit-activity\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Maintenance\" src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ioncakephper/ui/blob/master/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/github/license/ioncakephper/ui\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e Framework for building UI elements programmatically using JavaScript.\n\n### 🏠 [UIJS-KIT Homepage](https://github.com/ioncakephper/ui)\n\n## Introduction\n\nAre you a JavaScript developer and want to create UI elements quickly with a consistent Bootstrap code? Take a look at `UIJS-KIT`. Out of the box, it provides functions to generate UI element. For example: \n\n- `textField` function creates the HTML code for `\u003cinput type=\"text\" .../\u003e` and provides the `label` tag for the input field. All is encapsulated with a `.form-group`.\n- functions for popular input UI elements: checkboxes, boolean, color, radio, select, textarea, color, time, url, date, datetime, datetime-local, or week.\n- quick indicator for required fields: a trailing asterisk (*) in the label field.\n- options field allows you to specify custom name and id attributes. You can also add additional properties and use them in field type templates.\n\n## Install\n\n```sh\nnpm install uijs-kit\n```\n\n## Usage\n\n```js\nconst {textField, colorField} = require('uijs-kit')\n\nlet fields = [\n  textField('First name'), // optional. Label, name, and id properties derived from text parameter\n  textField('Last name*'), // required (see trailing asterisk). Label, name, required, and id properties derived from text parameter\n  colorField('Background color', {name: 'bg-color'}), // optional. Label derived from text parameter, name and id specified in name property\n]\n\nlet values = {}\nlet renderedFields = fields.map(field =\u003e field.render(values))\n\nconsole.log(JSON.stringify(renderedFields))\n```\n\n### SelectField: field with choices\n\n```js\nconst {selectField} = require('uijs-kit');\n\n// choices as array of objects with label and value properties\nlet choices = [\"Choice 1\", \"Choice 2\"].map((label, value) =\u003e {\n  return {\n    label,\n    value: `${value}`\n  }\n})\n\n// generate the selectField and pass the choices\nlet f = selectField('Select', choices);\n\nlet values = {select: '1'}; // a record storing values for fields\n\nlet html = f.render(values);\nconsole.log(html);\n\n// \u003cdiv class=\"form-group\" id=\"select-group\"\u003e\n//     \u003clabel for=\"select\"\u003eSelect:\u003c/label\u003e\n// \u003cselect name=\"select\" id=\"select\" class=\"form-control\"\u003e\n//     \u003coption value=\"0\"\u003eChoice 1\u003c/option\u003e\n//     \u003coption value=\"1\" selected=\"selected\"\u003eChoice 2\u003c/option\u003e\n// \u003c/select\u003e\n// \u003c/div\u003e\n```\n\n## API\n\nSee [api](./api.md) for API documentation.\n\n\n## Run tests\n\n```sh\nnpm run test\n```\n\n## Roadmap\n\n- [x] UiField descendant (UiFieldWithFields) to handle collection of fields\n- [x] UiFormField class to generate form\n- [x] Update shortcut functions code documentation: type, default param values, return type.\n- [ ] Create documentation site with Docusaurus, outlined with Skelosaurus. Store it at Github pages for this repository\n- [ x] Create button Ui classes and shortcut functions (e.g UiButton, UiSubmit, UiReset)\n- [ ] Extend formField function to add submit and reset buttons.\n\n## Author\n\n👤 **Ion Gireada**\n\n* Github: [@ioncakephper](https://github.com/ioncakephper)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check [issues page](https://github.com/ioncakephper/ui/issues). You can also take a look at the [contributing guide](https://github.com/ioncakephper/ui/blob/master/CONTRIBUTING.md).\n\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n\u003ca href=\"https://www.patreon.com/iongireada\"\u003e\n  \u003cimg src=\"https://c5.patreon.com/external/logo/become_a_patron_button@2x.png\" width=\"160\"\u003e\n\u003c/a\u003e\n\n## 📝 License\n\nCopyright © 2023 [Ion Gireada](https://github.com/ioncakephper).\u003cbr /\u003e\nThis project is [MIT](https://github.com/ioncakephper/ui/blob/master/LICENSE) licensed.\n\n  \u003ca href=\"https://github.com/ioncakephper/ui/blob/master/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/github/license/ioncakephper/ui\" /\u003e\n  \u003c/a\u003e\n\n","funding_links":["https://patreon.com/iongireada","https://www.patreon.com/iongireada"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fioncakephper%2Fui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fioncakephper%2Fui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fioncakephper%2Fui/lists"}