@jamesrock/rockjs 1.28.0 → 1.29.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/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -167,7 +167,7 @@ export const createLabel = (label = '{label}', id = '{id}', className) => {
|
|
|
167
167
|
return node;
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
-
const makeToggle = (options, name, defaultValue, className = 'toggle') => {
|
|
170
|
+
export const makeToggle = (options, name, defaultValue, className = 'toggle') => {
|
|
171
171
|
const node = createNode('div', className);
|
|
172
172
|
options.forEach(([label, value, optionClassName]) => {
|
|
173
173
|
const optionNode = createNode('div', 'toggle-item');
|