@bigbinary/neeto-templates-frontend 1.2.0 → 2.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.
- package/README.md +30 -11
- package/app/javascript/src/translations/en.json +4 -0
- package/dist/index.cjs.js +681 -2563
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +544 -2433
- package/dist/index.js.map +1 -1
- package/package.json +17 -16
- package/types.d.ts +7 -0
package/README.md
CHANGED
|
@@ -65,17 +65,6 @@ Install the latest `NeetoTemplatesNano` package using the below command:
|
|
|
65
65
|
yarn add @bigbinary/neeto-templates-frontend
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
Install the dependency package:
|
|
69
|
-
|
|
70
|
-
```shell
|
|
71
|
-
yarn add @tailwindcss/line-clamp
|
|
72
|
-
```
|
|
73
|
-
Once installed add the plugin to your `tailwind.config.js` file:
|
|
74
|
-
|
|
75
|
-
```js
|
|
76
|
-
plugins: [require("@tailwindcss/line-clamp")]
|
|
77
|
-
```
|
|
78
|
-
|
|
79
68
|
### Instructions for development
|
|
80
69
|
Check the [Frontend package development guide](https://neeto-engineering.neetokb.com/p/a-d34cb4b0) for step-by-step instructions to develop the
|
|
81
70
|
|
|
@@ -143,6 +132,36 @@ const App = () => {
|
|
|
143
132
|
|
|
144
133
|
Use the `PrivateRoute` component to conditionally render this component only for the `templates` subdomain.
|
|
145
134
|
|
|
135
|
+
#### `TemplateTags` ([source code](https://github.com/bigbinary/neeto-templates-nano/blob/aec3368475c252284a25820c08ff151c1cdd254c/app/javascript/src/components/TemplateTags/index.jsx))
|
|
136
|
+
The TemplateTags component is a React component used for displaying and managing tags within a web application. It provides a user interface for users to add, remove, edit and merge tags.
|
|
137
|
+
|
|
138
|
+
##### Props
|
|
139
|
+
- `breadcrumbs`: An array of breadcrumb items for navigation.
|
|
140
|
+
- `tagsPath`: A string representing the path to the frontend route for tags page.
|
|
141
|
+
- `otherProps`: Additional props to be passed to the component.
|
|
142
|
+
|
|
143
|
+
##### Usage
|
|
144
|
+
```jsx
|
|
145
|
+
import React from "react";
|
|
146
|
+
import { TemplateTags } from "@bigbinary/neeto-templates-frontend";
|
|
147
|
+
|
|
148
|
+
const App = () => {
|
|
149
|
+
const breadcrumbs = [
|
|
150
|
+
{
|
|
151
|
+
link: "/forms",
|
|
152
|
+
text: "Forms",
|
|
153
|
+
},
|
|
154
|
+
];
|
|
155
|
+
return (
|
|
156
|
+
<TemplateTags
|
|
157
|
+
breadcrumbs={breadcrumbs}
|
|
158
|
+
tagsPath="/settings/templates/tags"
|
|
159
|
+
/>
|
|
160
|
+
);
|
|
161
|
+
};
|
|
162
|
+
```
|
|
163
|
+
Use the `PrivateRoute` component (no need to add exact) to conditionally render this component only for the `templates` subdomain.
|
|
164
|
+
|
|
146
165
|
# Instructions for Publishing
|
|
147
166
|
|
|
148
167
|
Consult the [building and releasing packages](https://neeto-engineering.neetokb.com/articles/building-and-releasing-packages) guide for details on how to publish.
|