@kosdev-code/base-ui-components 0.1.0-dev.5385 → 0.1.0-dev.5596
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/components/atoms/button/index.d.ts +1 -1
- package/components/atoms/button/index.d.ts.map +1 -1
- package/components/atoms/button-group/button-group-item.d.ts +42 -0
- package/components/atoms/button-group/button-group-item.d.ts.map +1 -0
- package/components/atoms/button-group/button-group.d.ts +40 -0
- package/components/atoms/button-group/button-group.d.ts.map +1 -0
- package/components/atoms/button-group/hooks/use-button-group-context.d.ts +8 -0
- package/components/atoms/button-group/hooks/use-button-group-context.d.ts.map +1 -0
- package/components/atoms/button-group/index.d.ts +4 -0
- package/components/atoms/button-group/index.d.ts.map +1 -0
- package/components/atoms/icon/common/types.d.ts +2 -2
- package/components/atoms/icon/common/types.d.ts.map +1 -1
- package/components/atoms/index.d.ts +2 -0
- package/components/atoms/index.d.ts.map +1 -1
- package/components/atoms/resizable-panel-group/common/hooks/use-resizable-panel-group-context/helpers/get-resize-panel-element.d.ts +6 -1
- package/components/atoms/resizable-panel-group/common/hooks/use-resizable-panel-group-context/helpers/get-resize-panel-element.d.ts.map +1 -1
- package/components/atoms/resizable-panel-group/common/hooks/use-resizable-panel-group-context/use-resizable-panel-group-context.d.ts +6 -2
- package/components/atoms/resizable-panel-group/common/hooks/use-resizable-panel-group-context/use-resizable-panel-group-context.d.ts.map +1 -1
- package/components/atoms/resizable-panel-group/common/types.d.ts +6 -0
- package/components/atoms/resizable-panel-group/common/types.d.ts.map +1 -1
- package/components/atoms/resizable-panel-group/index.d.ts +1 -0
- package/components/atoms/resizable-panel-group/index.d.ts.map +1 -1
- package/components/atoms/resizable-panel-group/resizable-panel-group.d.ts +8 -4
- package/components/atoms/resizable-panel-group/resizable-panel-group.d.ts.map +1 -1
- package/components/molecules/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/components/molecules/form/components/form-input.d.ts.map +1 -1
- package/components/molecules/form/components/form-submit.d.ts.map +1 -1
- package/components/molecules/index.d.ts +2 -0
- package/components/molecules/index.d.ts.map +1 -1
- package/components/molecules/item-selection-list/item-selection-list.d.ts +1 -1
- package/components/molecules/item-selection-list/item-selection-list.d.ts.map +1 -1
- package/components/molecules/list/async-list/async-list-group-header.d.ts +12 -0
- package/components/molecules/list/async-list/async-list-group-header.d.ts.map +1 -0
- package/components/molecules/list/async-list/async-list.d.ts +139 -0
- package/components/molecules/list/async-list/async-list.d.ts.map +1 -0
- package/components/molecules/list/async-list/helpers/is-item-template-factory.d.ts +19 -0
- package/components/molecules/list/async-list/helpers/is-item-template-factory.d.ts.map +1 -0
- package/components/molecules/list/async-list/index.d.ts +9 -0
- package/components/molecules/list/async-list/index.d.ts.map +1 -0
- package/components/molecules/list/async-list/item-action-bar.d.ts +31 -0
- package/components/molecules/list/async-list/item-action-bar.d.ts.map +1 -0
- package/components/molecules/list/async-list/templates/studio-named-list-item.d.ts +41 -0
- package/components/molecules/list/async-list/templates/studio-named-list-item.d.ts.map +1 -0
- package/components/molecules/list/async-list/types.d.ts +286 -0
- package/components/molecules/list/async-list/types.d.ts.map +1 -0
- package/components/molecules/list/common/data-providers/base-async-tree-data-provider.d.ts +117 -56
- package/components/molecules/list/common/data-providers/base-async-tree-data-provider.d.ts.map +1 -1
- package/components/molecules/list/common/types.d.ts +111 -0
- package/components/molecules/list/common/types.d.ts.map +1 -1
- package/components/molecules/list/index.d.ts +1 -0
- package/components/molecules/list/index.d.ts.map +1 -1
- package/components/molecules/list/select-list/select-list.d.ts +1 -0
- package/components/molecules/list/select-list/select-list.d.ts.map +1 -1
- package/components/molecules/list/tree-list/async-tree-list.d.ts +253 -30
- package/components/molecules/list/tree-list/async-tree-list.d.ts.map +1 -1
- package/components/molecules/list/tree-list/helpers/is-item-template-factory.d.ts +19 -0
- package/components/molecules/list/tree-list/helpers/is-item-template-factory.d.ts.map +1 -0
- package/components/molecules/list/tree-list/templates/async-named-collapsible-branch.d.ts.map +1 -1
- package/components/molecules/table/table.d.ts.map +1 -1
- package/components/molecules/table/virtual-table.d.ts.map +1 -1
- package/components/molecules/view/action-bar.d.ts +27 -0
- package/components/molecules/view/action-bar.d.ts.map +1 -0
- package/components/molecules/view/index.d.ts +9 -0
- package/components/molecules/view/index.d.ts.map +1 -0
- package/components/molecules/view/types.d.ts +103 -0
- package/components/molecules/view/types.d.ts.map +1 -0
- package/components/molecules/view/view-header.d.ts +32 -0
- package/components/molecules/view/view-header.d.ts.map +1 -0
- package/components/molecules/view/view.d.ts +60 -0
- package/components/molecules/view/view.d.ts.map +1 -0
- package/components/molecules/view-container/index.d.ts +6 -0
- package/components/molecules/view-container/index.d.ts.map +1 -0
- package/components/molecules/view-container/types.d.ts +28 -0
- package/components/molecules/view-container/types.d.ts.map +1 -0
- package/components/molecules/view-container/view-container.d.ts +52 -0
- package/components/molecules/view-container/view-container.d.ts.map +1 -0
- package/index.cjs +1058 -824
- package/index.cjs.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +6495 -4614
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/providers/data-providers/create-observable-list-provider.d.ts +116 -0
- package/providers/data-providers/create-observable-list-provider.d.ts.map +1 -0
- package/providers/data-providers/index.d.ts +86 -0
- package/providers/data-providers/index.d.ts.map +1 -0
- package/providers/data-providers/lifecycle-aware-list-provider.d.ts +206 -0
- package/providers/data-providers/lifecycle-aware-list-provider.d.ts.map +1 -0
- package/providers/data-providers/lifecycle-aware-tree-provider.d.ts +187 -0
- package/providers/data-providers/lifecycle-aware-tree-provider.d.ts.map +1 -0
- package/providers/data-providers/types.d.ts +124 -0
- package/providers/data-providers/types.d.ts.map +1 -0
- package/providers/index.d.ts +13 -0
- package/providers/index.d.ts.map +1 -0
- package/styles/tokens/component-tokens/button-group/index.d.ts +18 -0
- package/styles/tokens/component-tokens/button-group/index.d.ts.map +1 -0
- package/styles/tokens/component-tokens/icon/index.d.ts +1 -0
- package/styles/tokens/component-tokens/icon/index.d.ts.map +1 -1
- package/styles/tokens/component-tokens/index.d.ts +80 -0
- package/styles/tokens/component-tokens/index.d.ts.map +1 -1
- package/styles/tokens/component-tokens/notification/index.d.ts +37 -0
- package/styles/tokens/component-tokens/notification/index.d.ts.map +1 -0
- package/styles/tokens/component-tokens/studio-list-item/index.d.ts +13 -0
- package/styles/tokens/component-tokens/studio-list-item/index.d.ts.map +1 -0
- package/styles/tokens/component-tokens/view/index.d.ts +24 -0
- package/styles/tokens/component-tokens/view/index.d.ts.map +1 -0
- package/styles/tokens/component-tokens/view-container/index.d.ts +12 -0
- package/styles/tokens/component-tokens/view-container/index.d.ts.map +1 -0
- package/styles/tokens/index.d.ts +81 -1
- package/styles/tokens/index.d.ts.map +1 -1
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { IconIds, IconColors } from '../../atoms/icon';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Configuration for an icon in the view header.
|
|
6
|
+
*
|
|
7
|
+
* @category Components
|
|
8
|
+
*/
|
|
9
|
+
export interface ViewIconConfig {
|
|
10
|
+
/** Icon identifier */
|
|
11
|
+
iconId: IconIds;
|
|
12
|
+
/** Icon color */
|
|
13
|
+
color?: IconColors;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Configuration for a view header action button.
|
|
17
|
+
*
|
|
18
|
+
* @category Components
|
|
19
|
+
*/
|
|
20
|
+
export interface ViewHeaderAction {
|
|
21
|
+
/** Unique identifier for the action */
|
|
22
|
+
id: string;
|
|
23
|
+
/** Icon to display for the action */
|
|
24
|
+
iconId: IconIds;
|
|
25
|
+
/** Tooltip text for the action */
|
|
26
|
+
tooltip?: string;
|
|
27
|
+
/** Label text for the action (shown in overflow menu) */
|
|
28
|
+
label?: string;
|
|
29
|
+
/** Icon color */
|
|
30
|
+
color?: IconColors;
|
|
31
|
+
/** Click handler for the action */
|
|
32
|
+
onClick: () => void;
|
|
33
|
+
/** Whether the action is disabled */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Whether this is a primary action displayed inline.
|
|
37
|
+
* Primary actions appear as icon buttons in the header.
|
|
38
|
+
* Secondary actions (isPrimary=false or undefined) appear in the overflow menu.
|
|
39
|
+
* Max 3 primary actions are shown; extras overflow with a separator.
|
|
40
|
+
*/
|
|
41
|
+
isPrimary?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Props for the ViewHeader component.
|
|
45
|
+
*
|
|
46
|
+
* @category Components
|
|
47
|
+
*/
|
|
48
|
+
export interface ViewHeaderProps {
|
|
49
|
+
/** Header title */
|
|
50
|
+
title: string;
|
|
51
|
+
/** Optional subtitle */
|
|
52
|
+
subtitle?: string;
|
|
53
|
+
/** Optional icon configuration */
|
|
54
|
+
icon?: ViewIconConfig;
|
|
55
|
+
/** Action buttons to display in the header */
|
|
56
|
+
actions?: ViewHeaderAction[];
|
|
57
|
+
/**
|
|
58
|
+
* Custom content to render in the header actions area.
|
|
59
|
+
* Rendered before action buttons. Use for ButtonGroup, toggles, etc.
|
|
60
|
+
*/
|
|
61
|
+
headerContent?: ReactNode;
|
|
62
|
+
/** Whether the view is collapsible */
|
|
63
|
+
collapsible?: boolean;
|
|
64
|
+
/** Whether the view is currently collapsed */
|
|
65
|
+
collapsed?: boolean;
|
|
66
|
+
/** Handler for collapse toggle */
|
|
67
|
+
onToggleCollapse?: () => void;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Props for the View component.
|
|
71
|
+
*
|
|
72
|
+
* @category Components
|
|
73
|
+
*/
|
|
74
|
+
export interface ViewProps {
|
|
75
|
+
/** View title */
|
|
76
|
+
title: string;
|
|
77
|
+
/** Optional subtitle */
|
|
78
|
+
subtitle?: string;
|
|
79
|
+
/** Optional icon configuration */
|
|
80
|
+
icon?: ViewIconConfig;
|
|
81
|
+
/** Action buttons to display in the header */
|
|
82
|
+
actions?: ViewHeaderAction[];
|
|
83
|
+
/**
|
|
84
|
+
* Custom content to render in the header actions area.
|
|
85
|
+
* Rendered before action buttons. Use for ButtonGroup, toggles, etc.
|
|
86
|
+
*/
|
|
87
|
+
headerContent?: ReactNode;
|
|
88
|
+
/** Whether the view can be collapsed */
|
|
89
|
+
collapsible?: boolean;
|
|
90
|
+
/** Whether the view is collapsed by default (uncontrolled mode) */
|
|
91
|
+
defaultCollapsed?: boolean;
|
|
92
|
+
/** Whether the view is currently collapsed (controlled mode) */
|
|
93
|
+
collapsed?: boolean;
|
|
94
|
+
/** Handler for collapse toggle (controlled mode) */
|
|
95
|
+
onToggleCollapse?: () => void;
|
|
96
|
+
/** Content to display in the view */
|
|
97
|
+
children: ReactNode;
|
|
98
|
+
/** CSS class name */
|
|
99
|
+
className?: string;
|
|
100
|
+
/** Focus event handler */
|
|
101
|
+
onFocus?: () => void;
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../packages/libraries/base-ui-components/src/components/molecules/view/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,sBAAsB;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,iBAAiB;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,qCAAqC;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,mCAAmC;IACnC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC7B;;;OAGG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,sCAAsC;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kCAAkC;IAClC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC7B;;;OAGG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,wCAAwC;IACxC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gEAAgE;IAChE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,qCAAqC;IACrC,QAAQ,EAAE,SAAS,CAAC;IACpB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ViewHeaderProps } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* ViewHeader component displays a header section for a View.
|
|
5
|
+
*
|
|
6
|
+
* Features:
|
|
7
|
+
* - Title and optional subtitle
|
|
8
|
+
* - Optional icon
|
|
9
|
+
* - Action buttons
|
|
10
|
+
* - Collapsible support with chevron indicator
|
|
11
|
+
*
|
|
12
|
+
* @category Components
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <ViewHeader
|
|
17
|
+
* title="Projects"
|
|
18
|
+
* subtitle="3 items"
|
|
19
|
+
* icon={{ iconId: 'Project', color: 'blue' }}
|
|
20
|
+
* actions={[
|
|
21
|
+
* {
|
|
22
|
+
* id: 'add',
|
|
23
|
+
* iconId: 'AddOutlined',
|
|
24
|
+
* tooltip: 'Add Project',
|
|
25
|
+
* onClick: handleAdd,
|
|
26
|
+
* },
|
|
27
|
+
* ]}
|
|
28
|
+
* />
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const ViewHeader: import('react').NamedExoticComponent<ViewHeaderProps>;
|
|
32
|
+
//# sourceMappingURL=view-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-header.d.ts","sourceRoot":"","sources":["../../../../../../../packages/libraries/base-ui-components/src/components/molecules/view/view-header.tsx"],"names":[],"mappings":"AAAA;;GAEG;;AASH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI/C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,UAAU,uDA+EtB,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ViewProps } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* View component serves as an individual view unit with header and content area.
|
|
5
|
+
*
|
|
6
|
+
* Features:
|
|
7
|
+
* - Integrated ViewHeader with title, subtitle, icon, and actions
|
|
8
|
+
* - Flexible content slot for any content type (AsyncList, custom components, etc.)
|
|
9
|
+
* - Optional collapsible state
|
|
10
|
+
* - Consistent Studio 2.0 styling
|
|
11
|
+
*
|
|
12
|
+
* @category Components
|
|
13
|
+
*
|
|
14
|
+
* @example Basic view
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <View
|
|
17
|
+
* title="Projects"
|
|
18
|
+
* subtitle="3 items"
|
|
19
|
+
* icon={{ iconId: 'Project', color: 'blue' }}
|
|
20
|
+
* >
|
|
21
|
+
* <AsyncList dataProvider={projectsProvider} ItemTemplate={StudioNamedListItem} />
|
|
22
|
+
* </View>
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @example View with actions
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <View
|
|
28
|
+
* title="Projects"
|
|
29
|
+
* actions={[
|
|
30
|
+
* {
|
|
31
|
+
* id: 'add',
|
|
32
|
+
* iconId: 'AddOutlined',
|
|
33
|
+
* tooltip: 'Add Project',
|
|
34
|
+
* onClick: handleAdd,
|
|
35
|
+
* },
|
|
36
|
+
* {
|
|
37
|
+
* id: 'refresh',
|
|
38
|
+
* iconId: 'RefreshOutlined',
|
|
39
|
+
* tooltip: 'Refresh',
|
|
40
|
+
* onClick: handleRefresh,
|
|
41
|
+
* },
|
|
42
|
+
* ]}
|
|
43
|
+
* >
|
|
44
|
+
* <AsyncList dataProvider={projectsProvider} ItemTemplate={StudioNamedListItem} />
|
|
45
|
+
* </View>
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @example Collapsible view
|
|
49
|
+
* ```tsx
|
|
50
|
+
* <View
|
|
51
|
+
* title="Advanced Settings"
|
|
52
|
+
* collapsible
|
|
53
|
+
* defaultCollapsed
|
|
54
|
+
* >
|
|
55
|
+
* <ConfigurationForm />
|
|
56
|
+
* </View>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
export declare const View: import('react').NamedExoticComponent<ViewProps>;
|
|
60
|
+
//# sourceMappingURL=view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../../../../packages/libraries/base-ui-components/src/components/molecules/view/view.tsx"],"names":[],"mappings":"AAAA;;GAEG;;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAKzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,eAAO,MAAM,IAAI,iDAmDhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/libraries/base-ui-components/src/components/molecules/view-container/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Layout direction for the view container.
|
|
5
|
+
*
|
|
6
|
+
* @category Components
|
|
7
|
+
*/
|
|
8
|
+
export type ViewContainerDirection = "vertical" | "horizontal";
|
|
9
|
+
/**
|
|
10
|
+
* Props for the ViewContainer component.
|
|
11
|
+
*
|
|
12
|
+
* @category Components
|
|
13
|
+
*/
|
|
14
|
+
export interface ViewContainerProps {
|
|
15
|
+
/** Container identifier */
|
|
16
|
+
id?: string;
|
|
17
|
+
/** Container name/label */
|
|
18
|
+
name?: string;
|
|
19
|
+
/** Layout direction for stacking views */
|
|
20
|
+
direction?: ViewContainerDirection;
|
|
21
|
+
/** Gap between views (uses token default if not specified) */
|
|
22
|
+
gap?: string | number;
|
|
23
|
+
/** View components to render */
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
/** Additional CSS classes */
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../packages/libraries/base-ui-components/src/components/molecules/view-container/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,YAAY,CAAC;AAE/D;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,2BAA2B;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC,8DAA8D;IAC9D,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,gCAAgC;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ViewContainerProps } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* ViewContainer component manages multiple views with flexible layout direction.
|
|
5
|
+
*
|
|
6
|
+
* Features:
|
|
7
|
+
* - Named layout area for organizing multiple views
|
|
8
|
+
* - Vertical (top-to-bottom) or horizontal (left-to-right) stacking
|
|
9
|
+
* - Configurable gap between views
|
|
10
|
+
* - Responsive behavior
|
|
11
|
+
* - Accepts View components as children
|
|
12
|
+
*
|
|
13
|
+
* @category Components
|
|
14
|
+
*
|
|
15
|
+
* @example Vertical stacking (default)
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <ViewContainer name="main-content">
|
|
18
|
+
* <View title="Projects">
|
|
19
|
+
* <AsyncList dataProvider={projectsProvider} ItemTemplate={StudioNamedListItem} />
|
|
20
|
+
* </View>
|
|
21
|
+
* <View title="Recent Activity">
|
|
22
|
+
* <ActivityList />
|
|
23
|
+
* </View>
|
|
24
|
+
* </ViewContainer>
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @example Horizontal stacking
|
|
28
|
+
* ```tsx
|
|
29
|
+
* <ViewContainer direction="horizontal" name="side-by-side">
|
|
30
|
+
* <View title="Available Items">
|
|
31
|
+
* <ItemList items={available} />
|
|
32
|
+
* </View>
|
|
33
|
+
* <View title="Selected Items">
|
|
34
|
+
* <ItemList items={selected} />
|
|
35
|
+
* </View>
|
|
36
|
+
* </ViewContainer>
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* @example Custom gap
|
|
40
|
+
* ```tsx
|
|
41
|
+
* <ViewContainer direction="vertical" gap="24px">
|
|
42
|
+
* <View title="Section 1">
|
|
43
|
+
* <Content1 />
|
|
44
|
+
* </View>
|
|
45
|
+
* <View title="Section 2">
|
|
46
|
+
* <Content2 />
|
|
47
|
+
* </View>
|
|
48
|
+
* </ViewContainer>
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare const ViewContainer: import('react').NamedExoticComponent<ViewContainerProps>;
|
|
52
|
+
//# sourceMappingURL=view-container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-container.d.ts","sourceRoot":"","sources":["../../../../../../../packages/libraries/base-ui-components/src/components/molecules/view-container/view-container.tsx"],"names":[],"mappings":"AAAA;;GAEG;;AAKH,OAAO,KAAK,EAAE,kBAAkB,EAA0B,MAAM,SAAS,CAAC;AAI1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,eAAO,MAAM,aAAa,0DAMzB,CAAC"}
|