@ansible/ansible-ui-framework 0.0.335 → 0.0.336

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
2
2
  /**
3
3
  * The PageLayout is used as the container for the contents of the page.
4
4
  * It enables page components to leverage full page layout and scrolling of sub content.
5
- * An example is a full page table that the page header, toolbar, column headers, and pagination stay fixed, but the rows of the table can scroll.
5
+ * An example is a full page table where the page header, toolbar, column headers, and pagination stay fixed, but the rows of the table can scroll.
6
6
  *
7
7
  * @example
8
8
  * <Page>
package/cjs/PageLayout.js CHANGED
@@ -37,7 +37,7 @@ var useFrameworkTranslations_1 = require("./useFrameworkTranslations");
37
37
  /**
38
38
  * The PageLayout is used as the container for the contents of the page.
39
39
  * It enables page components to leverage full page layout and scrolling of sub content.
40
- * An example is a full page table that the page header, toolbar, column headers, and pagination stay fixed, but the rows of the table can scroll.
40
+ * An example is a full page table where the page header, toolbar, column headers, and pagination stay fixed, but the rows of the table can scroll.
41
41
  *
42
42
  * @example
43
43
  * <Page>
@@ -22,7 +22,7 @@ The easiest way to use the BulkActionDialog is then useBulkActionDialog hook.
22
22
 
23
23
  useBulkActionDialog - react hook to open a BulkActionDialog
24
24
 
25
- ## Example
25
+ **Example**
26
26
 
27
27
  ```tsx
28
28
  const openBulkActionDialog = useBulkActionDialog()
package/docs/Framework.md CHANGED
@@ -8,12 +8,12 @@ A framework for building applications using [PatternFly](https://www.patternfly.
8
8
  - [Guides](Guides.md)
9
9
  - [Components](Components.md)
10
10
 
11
- The framework is made up of high level components using PatternFly components underneath.
12
- This allows the framework to adjust the web application for responsive layout.
11
+ The framework is made up of high level components abstracting design patterns away from the PatternFly components used underneath.
13
12
 
14
- The framework:
13
+ This framework:
15
14
 
16
15
  - does not use any state libraries other than the built in react context state management.
17
16
  - does not assume any specific translation libraries, but does provide a hook for internal translations.
18
17
  - does not assume any specific navigation libraries, but does provide a hook for internal navigation.
19
- There is an [Ansible UI Framework Demo](https://github.com/jamestalton/ansible-ui-framework-demo) repo showing an example of using the framework.
18
+
19
+ There is an [Ansible UI Framework Demo](https://github.com/jamestalton/ansible-ui-framework-demo) repo showing an example of using the framework.
@@ -16,7 +16,7 @@ npm install @ansible/ansible-ui-framework
16
16
 
17
17
  ## Add the PageFramework to your application
18
18
 
19
- Near the top of your application add the [PageFramework](https://github.com/ansible/ansible-ui/blob/main/framework/docs/PageFramework.md) component.
19
+ Near the top of your application add the [PageFramework](PageFramework.md) component.
20
20
 
21
21
  This component adds the state management needed by the framework.
22
22
 
@@ -24,7 +24,7 @@ This component adds the state management needed by the framework.
24
24
 
25
25
  ### Use PageLayout to control the layout in your pages
26
26
 
27
- The [PageLayout](https://github.com/ansible/ansible-ui/blob/main/framework/docs/PageLayout.md) is used as the container for the contents of the page. It enables page components to leverage full page layout and scrolling of sub content. An example is a full page table that the page header, toolbar, column headers, and pagination stay fixed, but the rows of the table can scroll.
27
+ The [PageLayout](PageLayout.md) is used as the container for the contents of the page. It enables page components to leverage full page layout and scrolling of sub content. An example is a full page table where the page header, toolbar, column headers, and pagination stay fixed, but the rows of the table can scroll.
28
28
 
29
29
  ```tsx
30
30
  <Page>
@@ -37,7 +37,7 @@ The [PageLayout](https://github.com/ansible/ansible-ui/blob/main/framework/docs/
37
37
 
38
38
  ### Use PageHeader for the heading of your pages
39
39
 
40
- The [PageHeader](https://github.com/ansible/ansible-ui/blob/main/framework/docs/PageHeader.md) is used at the top of each page. It provides a consistent layout of header elements.
40
+ The [PageHeader](PageHeader.md) is used at the top of each page. It provides a consistent layout of header elements.
41
41
 
42
42
  ```tsx
43
43
  <Page>
@@ -52,7 +52,7 @@ The [PageHeader](https://github.com/ansible/ansible-ui/blob/main/framework/docs/
52
52
 
53
53
  #### Table Pages
54
54
 
55
- For pages containing a table, use the [PageTable](https://github.com/ansible/ansible-ui/blob/main/framework/docs/PageTable.md) component.
55
+ For pages containing a table, use the [PageTable](PageTable.md) component. The PageTable support table, list, and card views of the data.
56
56
 
57
57
  ```tsx
58
58
  <Page>
@@ -65,7 +65,7 @@ For pages containing a table, use the [PageTable](https://github.com/ansible/ans
65
65
 
66
66
  #### Form Pages
67
67
 
68
- For pages containing an input form, use the [PageForm](https://github.com/ansible/ansible-ui/blob/main/framework/docs/PageForm.md) component.
68
+ For pages containing an input form, use the [PageForm](PageForm.md) component.
69
69
 
70
70
  ```tsx
71
71
  <Page>
@@ -76,4 +76,19 @@ For pages containing an input form, use the [PageForm](https://github.com/ansibl
76
76
  </Page>
77
77
  ```
78
78
 
79
- ## Next Steps
79
+ #### Detail Pages
80
+
81
+ TODO
82
+
83
+ #### Page sub navigation
84
+
85
+ TODO
86
+
87
+ ### Other Components
88
+
89
+ <!-- - [PageAlertToaster](PageAlertToaster.md) -->
90
+
91
+ - [BulkActionDialog](BulkActionDialog.md)
92
+ <!-- - [BulkConfirmationDialog](BulkConfirmationDialog.md) -->
93
+ <!-- - [SelectDialog](SelectDialog.md) -->
94
+ <!-- - [SelectMultipleDialog](SelectMultipleDialog.md) -->
@@ -4,7 +4,7 @@
4
4
 
5
5
  The `PageFramework` component bundles up all the context providers in the Ansible UI framework in a convienent component for framework consumers. Examples of internal context providers are translations, navigation, settings, alerts, and dialogs.
6
6
 
7
- ## Example
7
+ **Example**
8
8
 
9
9
  ```tsx
10
10
  <PageFramework navigate={navigate}>...</PageFramework>
@@ -14,7 +14,7 @@ PageHeader enables the responsive layout of the header.
14
14
  | controls | `ReactNode` | Support for extra page controls. |
15
15
  | headerActions | `ReactNode` | The actions for the page. |
16
16
 
17
- ## Example
17
+ **Example**
18
18
 
19
19
  ```tsx
20
20
  <Page>
@@ -4,9 +4,9 @@
4
4
 
5
5
  The PageLayout is used as the container for the contents of the page.
6
6
  It enables page components to leverage full page layout and scrolling of sub content.
7
- An example is a full page table that the page header, toolbar, column headers, and pagination stay fixed, but the rows of the table can scroll.
7
+ An example is a full page table where the page header, toolbar, column headers, and pagination stay fixed, but the rows of the table can scroll.
8
8
 
9
- ## Example
9
+ **Example**
10
10
 
11
11
  ```tsx
12
12
  <Page>
@@ -96,11 +96,11 @@ h4 {
96
96
  }
97
97
 
98
98
  table thead {
99
- background-color: #0004;
99
+ background-color: #08090b;
100
100
  }
101
101
 
102
102
  table tbody {
103
- background-color: #0006;
103
+ background-color: #08090b;
104
104
  }
105
105
 
106
106
  .markdown-body table tr {
package/docs/index.md CHANGED
@@ -8,12 +8,12 @@ A framework for building applications using [PatternFly](https://www.patternfly.
8
8
  - [Guides](Guides.md)
9
9
  - [Components](Components.md)
10
10
 
11
- The framework is made up of high level components using PatternFly components underneath.
12
- This allows the framework to adjust the web application for responsive layout.
11
+ The framework is made up of high level components abstracting design patterns away from the PatternFly components used underneath.
13
12
 
14
- The framework:
13
+ This framework:
15
14
 
16
15
  - does not use any state libraries other than the built in react context state management.
17
16
  - does not assume any specific translation libraries, but does provide a hook for internal translations.
18
17
  - does not assume any specific navigation libraries, but does provide a hook for internal navigation.
19
- There is an [Ansible UI Framework Demo](https://github.com/jamestalton/ansible-ui-framework-demo) repo showing an example of using the framework.
18
+
19
+ There is an [Ansible UI Framework Demo](https://github.com/jamestalton/ansible-ui-framework-demo) repo showing an example of using the framework.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "A framework for building applications using PatternFly.",
4
- "version": "0.0.335",
4
+ "version": "0.0.336",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "repository": {