@redneckz/wildless-cms-uni-blocks 0.14.47 → 0.14.49
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +12 -12
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/RollupItem/{PrimaryFoldButton.d.ts → AccordionFoldButton.d.ts} +2 -2
- package/bundle/components/RollupItem/RollupItemContent.d.ts +6 -0
- package/dist/components/Depository/useDepository.js +2 -2
- package/dist/components/Depository/useDepository.js.map +1 -1
- package/dist/components/RollupItem/{PrimaryFoldButton.d.ts → AccordionFoldButton.d.ts} +2 -2
- package/dist/components/RollupItem/AccordionFoldButton.js +12 -0
- package/dist/components/RollupItem/AccordionFoldButton.js.map +1 -0
- package/dist/components/RollupItem/RollupItem.js +5 -5
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/RollupItemContent.d.ts +6 -0
- package/lib/components/Depository/useDepository.js +2 -2
- package/lib/components/Depository/useDepository.js.map +1 -1
- package/lib/components/RollupItem/{PrimaryFoldButton.d.ts → AccordionFoldButton.d.ts} +2 -2
- package/lib/components/RollupItem/AccordionFoldButton.js +10 -0
- package/lib/components/RollupItem/AccordionFoldButton.js.map +1 -0
- package/lib/components/RollupItem/RollupItem.fixture.d.ts +2 -2
- package/lib/components/RollupItem/RollupItem.js +5 -5
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/RollupItemContent.d.ts +6 -0
- package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +10 -10
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/RollupItem/{PrimaryFoldButton.d.ts → AccordionFoldButton.d.ts} +2 -2
- package/mobile/bundle/components/RollupItem/RollupItemContent.d.ts +6 -0
- package/mobile/dist/components/Depository/useDepository.js +2 -2
- package/mobile/dist/components/Depository/useDepository.js.map +1 -1
- package/mobile/dist/components/RollupItem/AccordionFoldButton.d.ts +12 -0
- package/mobile/dist/components/RollupItem/AccordionFoldButton.js +12 -0
- package/mobile/dist/components/RollupItem/AccordionFoldButton.js.map +1 -0
- package/mobile/dist/components/RollupItem/RollupItem.js +5 -5
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItemContent.d.ts +6 -0
- package/mobile/lib/components/Depository/useDepository.js +2 -2
- package/mobile/lib/components/Depository/useDepository.js.map +1 -1
- package/mobile/lib/components/RollupItem/AccordionFoldButton.d.ts +12 -0
- package/mobile/lib/components/RollupItem/AccordionFoldButton.js +10 -0
- package/mobile/lib/components/RollupItem/AccordionFoldButton.js.map +1 -0
- package/mobile/lib/components/RollupItem/RollupItem.js +5 -5
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItemContent.d.ts +6 -0
- package/mobile/src/components/Depository/useDepository.ts +2 -2
- package/mobile/src/components/RollupItem/{PrimaryFoldButton.tsx → AccordionFoldButton.tsx} +2 -2
- package/mobile/src/components/RollupItem/RollupItem.example.json +2 -1
- package/mobile/src/components/RollupItem/RollupItem.tsx +8 -9
- package/mobile/src/components/RollupItem/RollupItemContent.ts +7 -0
- package/package.json +1 -1
- package/src/components/Depository/useDepository.ts +2 -2
- package/src/components/RollupItem/{PrimaryFoldButton.tsx → AccordionFoldButton.tsx} +2 -2
- package/src/components/RollupItem/RollupItem.example.json +2 -1
- package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +1 -1
- package/src/components/RollupItem/RollupItem.fixture.tsx +6 -6
- package/src/components/RollupItem/RollupItem.tsx +8 -9
- package/src/components/RollupItem/RollupItemContent.ts +7 -0
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +29 -28
- package/dist/components/RollupItem/PrimaryFoldButton.js +0 -12
- package/dist/components/RollupItem/PrimaryFoldButton.js.map +0 -1
- package/lib/components/RollupItem/PrimaryFoldButton.js +0 -10
- package/lib/components/RollupItem/PrimaryFoldButton.js.map +0 -1
- package/mobile/dist/components/RollupItem/PrimaryFoldButton.d.ts +0 -12
- package/mobile/dist/components/RollupItem/PrimaryFoldButton.js +0 -12
- package/mobile/dist/components/RollupItem/PrimaryFoldButton.js.map +0 -1
- package/mobile/lib/components/RollupItem/PrimaryFoldButton.d.ts +0 -12
- package/mobile/lib/components/RollupItem/PrimaryFoldButton.js +0 -10
- package/mobile/lib/components/RollupItem/PrimaryFoldButton.js.map +0 -1
|
@@ -137,19 +137,23 @@ export default {
|
|
|
137
137
|
/>
|
|
138
138
|
</div>
|
|
139
139
|
),
|
|
140
|
+
|
|
140
141
|
rollup: (
|
|
141
142
|
<div className="container grid grid-cols-12">
|
|
142
143
|
<VerticalLayout
|
|
144
|
+
gap="XS"
|
|
145
|
+
version="transparent"
|
|
143
146
|
className="col-span-12"
|
|
144
|
-
version="primary"
|
|
145
|
-
isPadding={true}
|
|
146
147
|
block={{
|
|
147
148
|
type: 'VerticalLayout',
|
|
148
149
|
blocks: [
|
|
149
150
|
{
|
|
150
151
|
type: 'RollupItem',
|
|
151
152
|
content: {
|
|
152
|
-
label: 'Rollup button 1',
|
|
153
|
+
label: 'Rollup button 1 with TEXT_BLOCK',
|
|
154
|
+
foldButtonVersion: 'default',
|
|
155
|
+
isFoldButtonOnTop: false,
|
|
156
|
+
isExpanded: true,
|
|
153
157
|
},
|
|
154
158
|
blocks: [
|
|
155
159
|
{ type: 'TextBlock', content: TEXT_BLOCK },
|
|
@@ -159,22 +163,14 @@ export default {
|
|
|
159
163
|
{
|
|
160
164
|
type: 'RollupItem',
|
|
161
165
|
content: {
|
|
162
|
-
label: 'Rollup button 2',
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
blocks: [{ type: 'LinkDocs', content: linkDocsExample }],
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
type: 'RollupItem',
|
|
169
|
-
content: {
|
|
170
|
-
label: 'Rollup button 3 RichText',
|
|
166
|
+
label: 'Rollup button 2 with TEXT_BLOCK',
|
|
167
|
+
foldButtonVersion: 'default',
|
|
168
|
+
isFoldButtonOnTop: false,
|
|
171
169
|
isExpanded: true,
|
|
172
170
|
},
|
|
173
171
|
blocks: [
|
|
174
|
-
{
|
|
175
|
-
|
|
176
|
-
content: RICH_TEXT_SEPARATOR,
|
|
177
|
-
},
|
|
172
|
+
{ type: 'TextBlock', content: TEXT_BLOCK },
|
|
173
|
+
{ type: 'TextBlock', content: TEXT_BLOCK },
|
|
178
174
|
],
|
|
179
175
|
},
|
|
180
176
|
],
|
|
@@ -183,22 +179,19 @@ export default {
|
|
|
183
179
|
/>
|
|
184
180
|
</div>
|
|
185
181
|
),
|
|
186
|
-
'rollup
|
|
182
|
+
'rollup accordion': (
|
|
187
183
|
<div className="container grid grid-cols-12">
|
|
188
184
|
<VerticalLayout
|
|
189
|
-
gap="XS"
|
|
190
|
-
version="transparent"
|
|
191
185
|
className="col-span-12"
|
|
186
|
+
version="primary"
|
|
187
|
+
isPadding={true}
|
|
192
188
|
block={{
|
|
193
189
|
type: 'VerticalLayout',
|
|
194
190
|
blocks: [
|
|
195
191
|
{
|
|
196
192
|
type: 'RollupItem',
|
|
197
193
|
content: {
|
|
198
|
-
label: 'Rollup button 1
|
|
199
|
-
version: 'secondary',
|
|
200
|
-
isFoldButtonOnTop: false,
|
|
201
|
-
isExpanded: true,
|
|
194
|
+
label: 'Rollup button 1',
|
|
202
195
|
},
|
|
203
196
|
blocks: [
|
|
204
197
|
{ type: 'TextBlock', content: TEXT_BLOCK },
|
|
@@ -208,14 +201,22 @@ export default {
|
|
|
208
201
|
{
|
|
209
202
|
type: 'RollupItem',
|
|
210
203
|
content: {
|
|
211
|
-
label: 'Rollup button 2
|
|
212
|
-
|
|
213
|
-
|
|
204
|
+
label: 'Rollup button 2',
|
|
205
|
+
isExpanded: true,
|
|
206
|
+
},
|
|
207
|
+
blocks: [{ type: 'LinkDocs', content: linkDocsExample }],
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
type: 'RollupItem',
|
|
211
|
+
content: {
|
|
212
|
+
label: 'Rollup button 3 RichText',
|
|
214
213
|
isExpanded: true,
|
|
215
214
|
},
|
|
216
215
|
blocks: [
|
|
217
|
-
{
|
|
218
|
-
|
|
216
|
+
{
|
|
217
|
+
type: 'RichTextBlock',
|
|
218
|
+
content: RICH_TEXT_SEPARATOR,
|
|
219
|
+
},
|
|
219
220
|
],
|
|
220
221
|
},
|
|
221
222
|
],
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.PrimaryFoldButton = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
6
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
7
|
-
const TextWithIcon_1 = require("../../ui-kit/TextWithIcon/TextWithIcon");
|
|
8
|
-
const style_1 = require("../../utils/style");
|
|
9
|
-
const renderRoundedIcon_1 = require("./renderRoundedIcon");
|
|
10
|
-
const rollupIconVersion_1 = require("./rollupIconVersion");
|
|
11
|
-
exports.PrimaryFoldButton = (0, uni_jsx_1.JSX)(({ label, labelIconBgVersion, icon, onToggle, labelIcon }) => ((0, jsx_runtime_1.jsx)(TextWithIcon_1.TextWithIcon, { tag: "button", className: (0, style_1.style)('border-none bg-transparent items-center group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, textNode: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-start group-hover/button:text-primary-main gap-s", children: [(0, renderRoundedIcon_1.renderRoundedIcon)(labelIcon, labelIconBgVersion), label ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), iconNode: icon ? (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, iconVersion: rollupIconVersion_1.rollupIconVersion, width: "24", height: "24" }) : null })));
|
|
12
|
-
//# sourceMappingURL=PrimaryFoldButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PrimaryFoldButton.js","sourceRoot":"","sources":["../../../src/components/RollupItem/PrimaryFoldButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,iDAA8C;AAE9C,iDAA8C;AAC9C,yEAAsE;AACtE,6CAA0C;AAC1C,2DAAwD;AACxD,2DAAwD;AAU3C,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAC5D,uBAAC,2BAAY,IACX,GAAG,EAAC,QAAQ,EACZ,SAAS,EAAE,IAAA,aAAK,EACd,sDAAsD,EACtD,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CACpC,EACD,OAAO,EAAE,QAAQ,EACjB,QAAQ,EACN,iCAAK,SAAS,EAAC,yEAAyE,aACrF,IAAA,qCAAiB,EAAC,SAAS,EAAE,kBAAkB,CAAC,EAChD,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,aAAa,YACpC,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,EAER,QAAQ,EACN,IAAI,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,qCAAiB,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,GAE3F,CACH,CACF,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
4
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
5
|
-
import { TextWithIcon } from '../../ui-kit/TextWithIcon/TextWithIcon.js';
|
|
6
|
-
import { style } from '../../utils/style.js';
|
|
7
|
-
import { renderRoundedIcon } from './renderRoundedIcon.js';
|
|
8
|
-
import { rollupIconVersion } from './rollupIconVersion.js';
|
|
9
|
-
export const PrimaryFoldButton = JSX(({ label, labelIconBgVersion, icon, onToggle, labelIcon }) => (_jsx(TextWithIcon, { tag: "button", className: style('border-none bg-transparent items-center group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, textNode: _jsxs("div", { className: "flex items-center text-start group-hover/button:text-primary-main gap-s", children: [renderRoundedIcon(labelIcon, labelIconBgVersion), label ? (_jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), iconNode: icon ? _jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null })));
|
|
10
|
-
//# sourceMappingURL=PrimaryFoldButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PrimaryFoldButton.js","sourceRoot":"","sources":["../../../src/components/RollupItem/PrimaryFoldButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAUxD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAC5D,KAAC,YAAY,IACX,GAAG,EAAC,QAAQ,EACZ,SAAS,EAAE,KAAK,CACd,sDAAsD,EACtD,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CACpC,EACD,OAAO,EAAE,QAAQ,EACjB,QAAQ,EACN,eAAK,SAAS,EAAC,yEAAyE,aACrF,iBAAiB,CAAC,SAAS,EAAE,kBAAkB,CAAC,EAChD,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,aAAa,YACpC,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,EAER,QAAQ,EACN,IAAI,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,GAE3F,CACH,CACF,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type IconName } from '../../icons/IconName';
|
|
2
|
-
import { type Picture } from '../../model/Picture';
|
|
3
|
-
import { type IconBgVersion } from '../../ui-kit/Icon/IconProps';
|
|
4
|
-
interface PrimaryFoldButtonProps {
|
|
5
|
-
label?: string;
|
|
6
|
-
labelIcon?: Picture;
|
|
7
|
-
labelIconBgVersion?: IconBgVersion;
|
|
8
|
-
icon?: IconName;
|
|
9
|
-
onToggle?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const PrimaryFoldButton: import("@redneckz/uni-jsx").UNIComponent<PrimaryFoldButtonProps, any, any>;
|
|
12
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.PrimaryFoldButton = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
6
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
7
|
-
const TextWithIcon_1 = require("../../ui-kit/TextWithIcon/TextWithIcon");
|
|
8
|
-
const style_1 = require("../../utils/style");
|
|
9
|
-
const renderRoundedIcon_1 = require("./renderRoundedIcon");
|
|
10
|
-
const rollupIconVersion_1 = require("./rollupIconVersion");
|
|
11
|
-
exports.PrimaryFoldButton = (0, uni_jsx_1.JSX)(({ label, labelIconBgVersion, icon, onToggle, labelIcon }) => ((0, jsx_runtime_1.jsx)(TextWithIcon_1.TextWithIcon, { tag: "button", className: (0, style_1.style)('border-none bg-transparent items-center group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, textNode: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-start group-hover/button:text-primary-main gap-s", children: [(0, renderRoundedIcon_1.renderRoundedIcon)(labelIcon, labelIconBgVersion), label ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), iconNode: icon ? (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, iconVersion: rollupIconVersion_1.rollupIconVersion, width: "24", height: "24" }) : null })));
|
|
12
|
-
//# sourceMappingURL=PrimaryFoldButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PrimaryFoldButton.js","sourceRoot":"","sources":["../../../src/components/RollupItem/PrimaryFoldButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,iDAA8C;AAE9C,iDAA8C;AAC9C,yEAAsE;AACtE,6CAA0C;AAC1C,2DAAwD;AACxD,2DAAwD;AAU3C,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAC5D,uBAAC,2BAAY,IACX,GAAG,EAAC,QAAQ,EACZ,SAAS,EAAE,IAAA,aAAK,EACd,sDAAsD,EACtD,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CACpC,EACD,OAAO,EAAE,QAAQ,EACjB,QAAQ,EACN,iCAAK,SAAS,EAAC,yEAAyE,aACrF,IAAA,qCAAiB,EAAC,SAAS,EAAE,kBAAkB,CAAC,EAChD,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,aAAa,YACpC,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,EAER,QAAQ,EACN,IAAI,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,qCAAiB,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,GAE3F,CACH,CACF,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type IconName } from '../../icons/IconName';
|
|
2
|
-
import { type Picture } from '../../model/Picture';
|
|
3
|
-
import { type IconBgVersion } from '../../ui-kit/Icon/IconProps';
|
|
4
|
-
interface PrimaryFoldButtonProps {
|
|
5
|
-
label?: string;
|
|
6
|
-
labelIcon?: Picture;
|
|
7
|
-
labelIconBgVersion?: IconBgVersion;
|
|
8
|
-
icon?: IconName;
|
|
9
|
-
onToggle?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const PrimaryFoldButton: import("@redneckz/uni-jsx").UNIComponent<PrimaryFoldButtonProps, any, any>;
|
|
12
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
4
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
5
|
-
import { TextWithIcon } from '../../ui-kit/TextWithIcon/TextWithIcon.js';
|
|
6
|
-
import { style } from '../../utils/style.js';
|
|
7
|
-
import { renderRoundedIcon } from './renderRoundedIcon.js';
|
|
8
|
-
import { rollupIconVersion } from './rollupIconVersion.js';
|
|
9
|
-
export const PrimaryFoldButton = JSX(({ label, labelIconBgVersion, icon, onToggle, labelIcon }) => (_jsx(TextWithIcon, { tag: "button", className: style('border-none bg-transparent items-center group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, textNode: _jsxs("div", { className: "flex items-center text-start group-hover/button:text-primary-main gap-s", children: [renderRoundedIcon(labelIcon, labelIconBgVersion), label ? (_jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), iconNode: icon ? _jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null })));
|
|
10
|
-
//# sourceMappingURL=PrimaryFoldButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PrimaryFoldButton.js","sourceRoot":"","sources":["../../../src/components/RollupItem/PrimaryFoldButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAUxD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAC5D,KAAC,YAAY,IACX,GAAG,EAAC,QAAQ,EACZ,SAAS,EAAE,KAAK,CACd,sDAAsD,EACtD,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CACpC,EACD,OAAO,EAAE,QAAQ,EACjB,QAAQ,EACN,eAAK,SAAS,EAAC,yEAAyE,aACrF,iBAAiB,CAAC,SAAS,EAAE,kBAAkB,CAAC,EAChD,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,aAAa,YACpC,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,EAER,QAAQ,EACN,IAAI,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,GAE3F,CACH,CACF,CAAC"}
|