@redneckz/wildless-cms-uni-blocks 0.9.0 → 0.9.1
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 +7 -9
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/dist/components/Filtration/FiltrationInner.js +1 -1
- package/dist/components/Filtration/FiltrationInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.js +3 -5
- package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Filtration/FiltrationInner.js +1 -1
- package/lib/components/Filtration/FiltrationInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +1 -0
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.js +3 -5
- package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -6
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/mobile/dist/components/Filtration/FiltrationInner.js +1 -1
- package/mobile/dist/components/Filtration/FiltrationInner.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +3 -5
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/lib/components/Filtration/FiltrationInner.js +1 -1
- package/mobile/lib/components/Filtration/FiltrationInner.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +3 -5
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/src/components/Filtration/FiltrationInner.tsx +2 -2
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +2 -1
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +2 -0
- package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +3 -9
- package/package.json +1 -1
- package/src/components/Filtration/FiltrationInner.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.example.json +2 -1
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +17 -0
- package/src/components/ProductBlock/ProductBlockContent.ts +2 -0
- package/src/components/ProductBlock/ProductBlockInner.tsx +4 -1
- package/src/ui-kit/Foldable/DefaultFoldButton.tsx +3 -9
|
@@ -16,19 +16,13 @@ interface DefaultFoldButtonProps {
|
|
|
16
16
|
|
|
17
17
|
export const DefaultFoldButton = JSX<DefaultFoldButtonProps>(
|
|
18
18
|
({ className = '', label, icon, dataTheme = '', disabled = false, onClick }) => {
|
|
19
|
-
const STATE_STYLE =
|
|
20
|
-
'hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none';
|
|
21
|
-
const DIMENSIONS_STYLE = 'flex justify-center w-full px-0 py-5';
|
|
22
|
-
|
|
23
19
|
return (
|
|
24
20
|
<button
|
|
25
21
|
className={style(
|
|
26
|
-
'
|
|
27
|
-
STATE_STYLE,
|
|
28
|
-
DIMENSIONS_STYLE,
|
|
22
|
+
'flex justify-center w-full px-0 py-5 border border-transparent outline-none focus:border-primary-text',
|
|
29
23
|
disabled
|
|
30
|
-
? 'bg-main-divider text-main-disabled
|
|
31
|
-
: '',
|
|
24
|
+
? 'bg-main-divider text-main-disabled hover:bg-main-divider'
|
|
25
|
+
: 'bg-primary-main text-white hover:bg-primary-hove',
|
|
32
26
|
className,
|
|
33
27
|
)}
|
|
34
28
|
onClick={onClick}
|