@redneckz/wildless-cms-uni-blocks 0.3.1 → 0.3.2

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.
Files changed (72) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +4 -2
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Gallery/GalleryCardInner.js +3 -1
  5. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  6. package/dist/components/Gallery/GalleryContent.d.ts +1 -1
  7. package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
  8. package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  9. package/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  10. package/dist/components/LinkDocs/LinkDocsList.d.ts +1 -1
  11. package/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
  12. package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  13. package/dist/components/LinkDocs/LinkDocsListItem.mobile.js +1 -1
  14. package/dist/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -1
  15. package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
  16. package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
  17. package/lib/common.css +1 -1
  18. package/lib/components/Gallery/GalleryCardInner.js +3 -1
  19. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  20. package/lib/components/Gallery/GalleryContent.d.ts +1 -1
  21. package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
  22. package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  23. package/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  24. package/lib/components/LinkDocs/LinkDocsList.d.ts +1 -1
  25. package/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
  26. package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  27. package/lib/components/LinkDocs/LinkDocsListItem.mobile.js +1 -1
  28. package/lib/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -1
  29. package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
  30. package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
  31. package/mobile/bundle/bundle.umd.js +5 -3
  32. package/mobile/bundle/bundle.umd.min.js +1 -1
  33. package/mobile/dist/components/Gallery/GalleryCardInner.js +3 -1
  34. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  35. package/mobile/dist/components/Gallery/GalleryContent.d.ts +1 -1
  36. package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
  37. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  38. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  39. package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +1 -1
  40. package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
  41. package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  42. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
  43. package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
  44. package/mobile/lib/components/Gallery/GalleryCardInner.js +3 -1
  45. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  46. package/mobile/lib/components/Gallery/GalleryContent.d.ts +1 -1
  47. package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
  48. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  49. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  50. package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +1 -1
  51. package/mobile/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
  52. package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  53. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
  54. package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
  55. package/mobile/src/components/Gallery/GalleryCardInner.tsx +3 -1
  56. package/mobile/src/components/Gallery/GalleryContent.ts +1 -1
  57. package/mobile/src/components/LinkDocs/LinkDocs.tsx +2 -2
  58. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +1 -1
  59. package/mobile/src/components/LinkDocs/LinkDocsList.tsx +1 -1
  60. package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
  61. package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +1 -1
  62. package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +1 -1
  63. package/package.json +4 -4
  64. package/src/components/Gallery/GalleryCardInner.tsx +3 -1
  65. package/src/components/Gallery/GalleryContent.ts +1 -1
  66. package/src/components/LinkDocs/LinkDocs.mobile.tsx +2 -2
  67. package/src/components/LinkDocs/LinkDocsContent.ts +1 -1
  68. package/src/components/LinkDocs/LinkDocsList.tsx +1 -1
  69. package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +1 -1
  70. package/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
  71. package/src/components/LinkDocs/LinkDocsListItemBase.tsx +1 -1
  72. package/src/components/LinkDocs/LinkDocsVerticalList.tsx +1 -1
@@ -19,7 +19,9 @@ export const GalleryCardInner = JSX<GalleryCard>(
19
19
  {description ? <div className={`font-normal text-sm mt-2`}>{description}</div> : null}
20
20
  {items?.length ? (
21
21
  <section className={`max-w-[308px] mt-2`} role="list">
22
- {items.map((item, i) => renderItem(item.text, i, version))}
22
+ {items
23
+ .filter((item) => item.text)
24
+ .map((item, i) => renderItem(item.text as string, i, version))}
23
25
  </section>
24
26
  ) : null}
25
27
  </div>
@@ -4,7 +4,7 @@ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
4
4
 
5
5
  export interface GalleryItem {
6
6
  title?: string; //TODO: for mobile
7
- text: string;
7
+ text?: string;
8
8
  }
9
9
 
10
10
  /**
@@ -19,7 +19,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
19
19
  hasBorder = true,
20
20
  }) => {
21
21
  return (
22
- <section className={`py-6 px-4 bg-white ${className}`}>
22
+ <section className={`font-sans py-6 px-4 bg-white ${className}`}>
23
23
  {title ? (
24
24
  <Heading
25
25
  headingType="h2"
@@ -27,7 +27,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
27
27
  title={title}
28
28
  />
29
29
  ) : null}
30
- {subtitle ? <h3 className="mb-5 text-center text-m-base">{subtitle}</h3> : null}
30
+ {subtitle ? <h3 className="mb-5 text-center text-m-md">{subtitle}</h3> : null}
31
31
  {listMode === 'vertical' ? (
32
32
  <LinkDocsVerticalList hasBorder={hasBorder} documents={documents} icon={icon} />
33
33
  ) : (
@@ -1,5 +1,5 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
- import type { IconName } from '../../icons/IconName';
2
+ import type { IconName } from '../../ui-kit/Icon/IconProps';
3
3
  import type { AlignType } from '../BaseTile/BaseTileProps';
4
4
 
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { LinkDocsListItem } from './LinkDocsListItem';
3
- import type { IconName } from '../../icons/IconName';
3
+ import type { IconName } from '../../ui-kit/Icon/IconProps';
4
4
  import type { LinkColumnsMode, LinkDocsItem } from './LinkDocsContent';
5
5
 
6
6
  export interface LinkDocsListProps {
@@ -5,7 +5,7 @@ import type { LinkDocsListItemProps } from './LinkDocsListItemBase';
5
5
  export const LinkDocsListItem = JSX<LinkDocsListItemProps>(({ className = '', doc, icon }) => (
6
6
  <LinkDocsListItemBase
7
7
  className={`flex h-full ${className}`}
8
- iconClassName="mr-2.5 min-w-6 min-h-6"
8
+ iconClassName="mr-3 min-w-6 min-h-6"
9
9
  doc={doc}
10
10
  icon={icon}
11
11
  />
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { Icon } from '../../ui-kit/Icon/Icon';
3
- import type { IconName } from '../../icons/IconName';
3
+ import type { IconName } from '../../ui-kit/Icon/IconProps';
4
4
  import type { LinkDocsItem } from './LinkDocsContent';
5
5
 
6
6
  export interface LinkDocsListItemProps {
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { IconName } from '../../icons/IconName';
2
+ import type { IconName } from '../../ui-kit/Icon/IconProps';
3
3
  import type { LinkDocsItem } from './LinkDocsContent';
4
4
  import { LinkDocsListItem } from './LinkDocsListItem';
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -89,7 +89,7 @@
89
89
  "prebuild:schema": "npm run build:icons",
90
90
  "build:schema": "node ./scripts/build-schema.js ./bundle/blocks.schema.json",
91
91
  "build:style": "postcss ./src/**/*.css --env production --dir ./lib",
92
- "build:icons": "node ./scripts/prepare-icons.js ./src/icons ./cosmos-static/icons > ./src/icons/IconName.ts",
92
+ "build:icons": "rimraf ./cosmos-static/icons && node ./scripts/prepare-icons.js ./src/icons ./cosmos-static/icons > ./src/icons/IconName.ts",
93
93
  "size": "size-limit",
94
94
  "lint": "eslint ./src",
95
95
  "pretest": "npm run lint",
@@ -168,8 +168,8 @@
168
168
  ],
169
169
  "src/**/*.{js,jsx,ts,tsx,css}": [
170
170
  "prettier --write",
171
- "npm run cosmos:export",
172
- "git add ./docs"
171
+ "npm run build:icons",
172
+ "git add ./cosmos-static/icons"
173
173
  ]
174
174
  },
175
175
  "peerDependenciesMeta": {
@@ -19,7 +19,9 @@ export const GalleryCardInner = JSX<GalleryCard>(
19
19
  {description ? <div className={`font-normal text-sm mt-2`}>{description}</div> : null}
20
20
  {items?.length ? (
21
21
  <section className={`max-w-[308px] mt-2`} role="list">
22
- {items.map((item, i) => renderItem(item.text, i, version))}
22
+ {items
23
+ .filter((item) => item.text)
24
+ .map((item, i) => renderItem(item.text as string, i, version))}
23
25
  </section>
24
26
  ) : null}
25
27
  </div>
@@ -4,7 +4,7 @@ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
4
4
 
5
5
  export interface GalleryItem {
6
6
  title?: string; //TODO: for mobile
7
- text: string;
7
+ text?: string;
8
8
  }
9
9
 
10
10
  /**
@@ -19,7 +19,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
19
19
  hasBorder = true,
20
20
  }) => {
21
21
  return (
22
- <section className={`py-6 px-4 bg-white ${className}`}>
22
+ <section className={`font-sans py-6 px-4 bg-white ${className}`}>
23
23
  {title ? (
24
24
  <Heading
25
25
  headingType="h2"
@@ -27,7 +27,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
27
27
  title={title}
28
28
  />
29
29
  ) : null}
30
- {subtitle ? <h3 className="mb-5 text-center text-m-base">{subtitle}</h3> : null}
30
+ {subtitle ? <h3 className="mb-5 text-center text-m-md">{subtitle}</h3> : null}
31
31
  {listMode === 'vertical' ? (
32
32
  <LinkDocsVerticalList hasBorder={hasBorder} documents={documents} icon={icon} />
33
33
  ) : (
@@ -1,5 +1,5 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
- import type { IconName } from '../../icons/IconName';
2
+ import type { IconName } from '../../ui-kit/Icon/IconProps';
3
3
  import type { AlignType } from '../BaseTile/BaseTileProps';
4
4
 
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { LinkDocsListItem } from './LinkDocsListItem';
3
- import type { IconName } from '../../icons/IconName';
3
+ import type { IconName } from '../../ui-kit/Icon/IconProps';
4
4
  import type { LinkColumnsMode, LinkDocsItem } from './LinkDocsContent';
5
5
 
6
6
  export interface LinkDocsListProps {
@@ -5,7 +5,7 @@ import type { LinkDocsListItemProps } from './LinkDocsListItemBase';
5
5
  export const LinkDocsListItem = JSX<LinkDocsListItemProps>(({ className = '', doc, icon }) => (
6
6
  <LinkDocsListItemBase
7
7
  className={`flex h-full ${className}`}
8
- iconClassName="mr-2.5 min-w-6 min-h-6"
8
+ iconClassName="mr-3 min-w-6 min-h-6"
9
9
  doc={doc}
10
10
  icon={icon}
11
11
  />
@@ -5,7 +5,7 @@ import type { LinkDocsListItemProps } from './LinkDocsListItemBase';
5
5
  export const LinkDocsListItem = JSX<LinkDocsListItemProps>(({ className = '', doc, icon }) => (
6
6
  <LinkDocsListItemBase
7
7
  className={className}
8
- iconClassName="mr-4 min-w-6 min-h-6 text-primary-text"
8
+ iconClassName="mr-2.5 min-w-6 min-h-6 text-primary-text"
9
9
  textClassName="self-center"
10
10
  suffixClassName="text-secondary-text group-hover:text-primary-main"
11
11
  doc={doc}
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { Icon } from '../../ui-kit/Icon/Icon';
3
- import type { IconName } from '../../icons/IconName';
3
+ import type { IconName } from '../../ui-kit/Icon/IconProps';
4
4
  import type { LinkDocsItem } from './LinkDocsContent';
5
5
 
6
6
  export interface LinkDocsListItemProps {
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { IconName } from '../../icons/IconName';
2
+ import type { IconName } from '../../ui-kit/Icon/IconProps';
3
3
  import type { LinkDocsItem } from './LinkDocsContent';
4
4
  import { LinkDocsListItem } from './LinkDocsListItem';
5
5