@contember/create 2.0.0-alpha.25 → 2.0.0-alpha.27

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,10 +1,10 @@
1
1
  {
2
2
  "name": "@contember/create",
3
- "version": "2.0.0-alpha.25",
3
+ "version": "2.0.0-alpha.27",
4
4
  "license": "Apache-2.0",
5
5
  "bin": "dist/production/run.js",
6
6
  "dependencies": {
7
- "@contember/cli-common": "2.0.0-alpha.25",
7
+ "@contember/cli-common": "2.0.0-alpha.27",
8
8
  "chalk": "^5.3.0",
9
9
  "fs-extra": "^11.2.0",
10
10
  "js-yaml": "^4.1.0"
@@ -0,0 +1,33 @@
1
+ import { ReactNode } from 'react'
2
+ import { uic } from '../utils'
3
+
4
+ export const PropertyList = uic('div', {
5
+ baseClass: 'relative overflow-auto bg-gray-50/50 max-w-lg border rounded-md grid grid-cols-[max-content,1fr]',
6
+ displayName: 'PropertyList',
7
+ })
8
+
9
+ export const PropertyRow = uic('div', {
10
+ baseClass: 'contents group',
11
+ })
12
+
13
+ export const PropertyLabel = uic('div', {
14
+ baseClass: 'text-sm min-w-32 border-b group-last:border-b-none px-4 py-3',
15
+ displayName: 'PropertyLabel',
16
+ })
17
+
18
+ export const PropertyValue = uic('div', {
19
+ baseClass: 'text-sm font-semibold border-b group-last:border-b-none px-4 py-3',
20
+ displayName: 'PropertyValue',
21
+ })
22
+
23
+ /**
24
+ * Shortcut for creating a property list item with a label and a value.
25
+ */
26
+ export const PropertyItem = (({ label, children }: { label: string; children: ReactNode }) => {
27
+ return (
28
+ <PropertyRow>
29
+ <PropertyLabel>{label}</PropertyLabel>
30
+ <PropertyValue>{children}</PropertyValue>
31
+ </PropertyRow>
32
+ )
33
+ })