@umituz/web-design-system 6.6.0 → 6.7.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/web-design-system",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Web Design System - Tailwind v4 authored, precompiled CSS shipped. Atomic Design components (Atoms, Molecules, Organisms, Templates) for React applications.",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"./hooks": "./src/presentation/hooks/index.ts",
|
|
21
21
|
"./molecules": "./src/presentation/molecules/index.ts",
|
|
22
22
|
"./organisms": "./src/presentation/organisms/index.ts",
|
|
23
|
+
"./page-kit": "./src/presentation/page-kit/index.ts",
|
|
23
24
|
"./package.json": "./package.json",
|
|
24
25
|
"./source.css": "./src/styles/source.css",
|
|
25
26
|
"./styles.css": "./dist/styles.css",
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import * as pageKit from '../presentation/page-kit';
|
|
3
|
+
|
|
4
|
+
const COMPONENTS = [
|
|
5
|
+
'PageHeader',
|
|
6
|
+
'SectionHeader',
|
|
7
|
+
'FilterBar',
|
|
8
|
+
'FilterSelect',
|
|
9
|
+
'FilterPanel',
|
|
10
|
+
'FilterSection',
|
|
11
|
+
'CheckFilterList',
|
|
12
|
+
'SingleSelectFilterList',
|
|
13
|
+
'TabNav',
|
|
14
|
+
'NextSteps',
|
|
15
|
+
] as const;
|
|
16
|
+
|
|
17
|
+
describe('page-kit barrel', () => {
|
|
18
|
+
it('exports every page scaffolding component as a renderable', () => {
|
|
19
|
+
for (const name of COMPONENTS) {
|
|
20
|
+
expect(['function', 'object'], `pageKit.${name}`).toContain(typeof pageKit[name]);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it('exports the full surface with no extra values beyond the documented kit', () => {
|
|
25
|
+
const record = pageKit as unknown as Record<string, unknown>;
|
|
26
|
+
const valueNames = Object.keys(record).filter((k) => record[k] !== undefined);
|
|
27
|
+
expect(valueNames.sort()).toEqual([...COMPONENTS].sort());
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('re-exports the same bindings as their layer barrels', async () => {
|
|
31
|
+
const templates = await import('../presentation/templates');
|
|
32
|
+
const molecules = await import('../presentation/molecules');
|
|
33
|
+
const organisms = await import('../presentation/organisms');
|
|
34
|
+
expect(pageKit.PageHeader).toBe(templates.PageHeader);
|
|
35
|
+
expect(pageKit.SectionHeader).toBe(templates.SectionHeader);
|
|
36
|
+
expect(pageKit.FilterSelect).toBe(molecules.FilterSelect);
|
|
37
|
+
expect(pageKit.TabNav).toBe(molecules.TabNav);
|
|
38
|
+
expect(pageKit.FilterBar).toBe(organisms.FilterBar);
|
|
39
|
+
expect(pageKit.FilterPanel).toBe(organisms.FilterPanel);
|
|
40
|
+
expect(pageKit.NextSteps).toBe(organisms.NextSteps);
|
|
41
|
+
});
|
|
42
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { FilterBar } from '../organisms/FilterBar';
|
|
2
|
+
export type { FilterBarProps, FilterBarSearch } from '../organisms/FilterBar';
|
|
3
|
+
|
|
4
|
+
export { FilterSelect } from '../molecules/FilterSelect';
|
|
5
|
+
export type { FilterSelectProps, FilterSelectOption } from '../molecules/FilterSelect';
|
|
6
|
+
|
|
7
|
+
export { PageHeader } from '../templates/PageHeader';
|
|
8
|
+
export type { PageHeaderProps, PageHeaderCrumb, TextAlign, HeaderSize } from '../templates/PageHeader';
|
|
9
|
+
|
|
10
|
+
export { SectionHeader } from '../templates/SectionHeader';
|
|
11
|
+
export type { SectionHeaderProps } from '../templates/SectionHeader';
|
|
12
|
+
|
|
13
|
+
export { TabNav } from '../molecules/TabNav';
|
|
14
|
+
export type { TabNavItem, TabNavProps } from '../molecules/TabNav';
|
|
15
|
+
|
|
16
|
+
export { FilterPanel, FilterSection, CheckFilterList, SingleSelectFilterList } from '../organisms/FilterPanel';
|
|
17
|
+
export type {
|
|
18
|
+
FilterPanelProps,
|
|
19
|
+
FilterSectionProps,
|
|
20
|
+
FilterListOption,
|
|
21
|
+
CheckFilterListProps,
|
|
22
|
+
SingleSelectFilterListProps,
|
|
23
|
+
} from '../organisms/FilterPanel';
|
|
24
|
+
|
|
25
|
+
export { NextSteps } from '../organisms/NextSteps';
|
|
26
|
+
export type { NextStepsProps, NextStepLink } from '../organisms/NextSteps';
|