@canonical/design-system 0.1.0 → 0.1.1
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/.gemini/settings.json +14 -0
- package/.github/ISSUE_TEMPLATE/propose-changes-to-existing-ui-block.md +14 -0
- package/.github/ISSUE_TEMPLATE/propose-new-ui-block.md +26 -0
- package/.github/workflows/sync-coda-manual.yml +12 -0
- package/.github/workflows/sync-coda-scheduled.yml +13 -0
- package/.github/workflows/sync-coda.yml +38 -0
- package/.mcp.json +8 -2
- package/GEMINI.md +2 -0
- package/README.md +71 -51
- package/data/apps/component/file_tree.ttl +6 -7
- package/data/apps/component/key_value_pair.ttl +6 -7
- package/data/apps/component/navigation.ttl +6 -7
- package/data/apps/component/notification.ttl +7 -0
- package/data/apps/component/skeleton_loading.ttl +6 -7
- package/data/apps/component/status_bar.ttl +6 -7
- package/data/apps/component/toolbar.ttl +6 -7
- package/data/apps/group/notifications.ttl +7 -0
- package/data/apps/layout/application_layout.ttl +8 -7
- package/data/apps/layout/content_layout.ttl +9 -0
- package/data/apps/layout/empty_layout.ttl +6 -7
- package/data/apps/layout/list_page_layout.ttl +6 -7
- package/data/apps/layout/settings_page_layout.ttl +6 -7
- package/data/apps/layout/view_layout.ttl +9 -0
- package/data/apps/pattern/code_diff.ttl +6 -7
- package/data/apps/pattern/data_table.ttl +6 -7
- package/data/apps/pattern/destructive_modal.ttl +6 -7
- package/data/apps/pattern/key_value_summary.ttl +6 -7
- package/data/apps/pattern/keyboard_shortcuts.ttl +6 -7
- package/data/apps/pattern/notification_center.ttl +6 -7
- package/data/apps/pattern/side_panel.ttl +6 -7
- package/data/apps/pattern/sidepanel_stacked.ttl +6 -7
- package/data/apps/subcomponent/file_tree-node.ttl +7 -0
- package/data/apps.ttl +3 -4
- package/data/apps_anbox/component/copy_to_clipboard.ttl +7 -0
- package/data/apps_anbox/pattern/side_menu.ttl +13 -0
- package/data/apps_anbox.ttl +4 -0
- package/data/apps_juju/pattern/single_select_multi_layered.ttl +7 -0
- package/data/apps_juju.ttl +4 -0
- package/data/apps_landscape/component/password_constraints.ttl +32 -0
- package/data/apps_landscape.ttl +4 -0
- package/data/apps_launchpad/component/badge.ttl +22 -0
- package/data/apps_launchpad/component/breadcrumbs.ttl +14 -0
- package/data/apps_launchpad/component/button.ttl +34 -0
- package/data/apps_launchpad/component/checkbox.ttl +28 -0
- package/data/apps_launchpad/component/chip.ttl +42 -0
- package/data/apps_launchpad/component/combobox.ttl +51 -0
- package/data/apps_launchpad/component/description_list.ttl +13 -0
- package/data/apps_launchpad/component/radio.ttl +34 -0
- package/data/apps_launchpad/component/select.ttl +34 -0
- package/data/apps_launchpad/component/switch.ttl +21 -0
- package/data/apps_launchpad/component/text_input.ttl +35 -0
- package/data/apps_launchpad/component/textarea.ttl +35 -0
- package/data/apps_launchpad/component/tooltip.ttl +27 -0
- package/data/apps_launchpad/component/user_avatar.ttl +25 -0
- package/data/apps_launchpad/subcomponent/combobox-checkbox_option.ttl +29 -0
- package/data/apps_launchpad/subcomponent/combobox-footer.ttl +13 -0
- package/data/apps_launchpad/subcomponent/combobox-group.ttl +20 -0
- package/data/apps_launchpad/subcomponent/combobox-helper.ttl +19 -0
- package/data/apps_launchpad/subcomponent/combobox-loading.ttl +13 -0
- package/data/apps_launchpad/subcomponent/combobox-no_results.ttl +13 -0
- package/data/apps_launchpad/subcomponent/combobox-radio_option.ttl +29 -0
- package/data/apps_launchpad/subcomponent/combobox-search.ttl +22 -0
- package/data/apps_launchpad/subcomponent/description_list-item.ttl +19 -0
- package/data/apps_launchpad.ttl +4 -0
- package/data/apps_lxd/component/confirmation_checkbox.ttl +7 -0
- package/data/apps_lxd/component/copy_to_clipboard.ttl +7 -0
- package/data/apps_lxd/view/network_topology.ttl +7 -0
- package/data/apps_lxd.ttl +4 -0
- package/data/apps_portal/component/badge.ttl +7 -0
- package/data/apps_portal.ttl +4 -0
- package/data/apps_workplace/component/label-highlight.ttl +7 -0
- package/data/apps_workplace.ttl +4 -0
- package/data/apps_wpe.ttl +3 -4
- package/data/documentation/layout/documentation_layout.ttl +6 -7
- package/data/documentation/pattern/library_side_navigation.ttl +7 -0
- package/data/documentation.ttl +3 -4
- package/data/global/component/accordion.ttl +11 -12
- package/data/global/component/announcement.ttl +6 -7
- package/data/global/component/badge.ttl +7 -8
- package/data/global/component/breadcrumbs.ttl +13 -0
- package/data/global/component/button.ttl +27 -17
- package/data/global/component/button_link.ttl +7 -0
- package/data/global/component/card.ttl +6 -7
- package/data/global/component/chip.ttl +6 -7
- package/data/global/component/code.ttl +7 -0
- package/data/global/component/code_snippet-content.ttl +7 -0
- package/data/global/component/code_snippet-header.ttl +7 -0
- package/data/global/component/code_snippet.ttl +6 -7
- package/data/global/component/contextual_menu.ttl +6 -7
- package/data/global/component/heading.ttl +11 -12
- package/data/global/component/icon.ttl +12 -12
- package/data/global/component/icon_in_container.ttl +6 -7
- package/data/global/component/keyboard_key.ttl +6 -7
- package/data/global/component/label.ttl +12 -13
- package/data/global/component/notification_inline.ttl +6 -7
- package/data/global/component/notification_toast.ttl +6 -7
- package/data/global/component/pagination.ttl +6 -7
- package/data/global/component/popover.ttl +6 -7
- package/data/global/component/rich_text_editor.ttl +6 -7
- package/data/global/component/search_bar.ttl +6 -7
- package/data/global/component/table.ttl +6 -7
- package/data/global/component/tabs.ttl +6 -7
- package/data/global/component/theme_switcher.ttl +6 -7
- package/data/global/component/tile.ttl +11 -12
- package/data/global/component/tooltip.ttl +182 -7
- package/data/global/group/buttons.ttl +6 -7
- package/data/global/group/cards.ttl +6 -7
- package/data/global/group/code_snippets.ttl +7 -0
- package/data/global/group/keyboard_keys.ttl +7 -0
- package/data/global/group/tiles.ttl +6 -7
- package/data/global/layout/error_layout.ttl +6 -7
- package/data/global/layout/form_layout.ttl +6 -7
- package/data/global/layout/identity_page_form.ttl +6 -7
- package/data/global/modifier/alpha.ttl +5 -5
- package/data/global/modifier/beta.ttl +5 -5
- package/data/global/modifier/caution.ttl +5 -5
- package/data/global/modifier/comfortable.ttl +5 -5
- package/data/global/modifier/completed.ttl +5 -5
- package/data/global/modifier/constructive.ttl +5 -5
- package/data/global/modifier/dark.ttl +5 -5
- package/data/global/modifier/dense.ttl +5 -5
- package/data/global/modifier/destructive.ttl +5 -5
- package/data/global/modifier/editable.ttl +5 -5
- package/data/global/modifier/elevated.ttl +5 -5
- package/data/global/modifier/error.ttl +5 -5
- package/data/global/modifier/experimental.ttl +5 -5
- package/data/global/modifier/failed.ttl +5 -5
- package/data/global/modifier/focused.ttl +5 -5
- package/data/global/modifier/highlighted.ttl +5 -5
- package/data/global/modifier/in_progress.ttl +5 -5
- package/data/global/modifier/information.ttl +5 -5
- package/data/global/modifier/light.ttl +5 -5
- package/data/global/modifier/loading.ttl +5 -5
- package/data/global/modifier/muted.ttl +5 -5
- package/data/global/modifier/paper.ttl +5 -5
- package/data/global/modifier/planned.ttl +5 -5
- package/data/global/modifier/primary.ttl +5 -5
- package/data/global/modifier/secondary.ttl +5 -5
- package/data/global/modifier/stable.ttl +5 -5
- package/data/global/modifier/success.ttl +5 -5
- package/data/global/modifier/tertiary.ttl +5 -5
- package/data/global/modifier/warning.ttl +5 -5
- package/data/global/modifier/wireframe.ttl +5 -5
- package/data/global/modifier_family/_color_luminosity.ttl +5 -6
- package/data/global/modifier_family/_emphasis.ttl +5 -6
- package/data/global/modifier_family/_other.ttl +5 -6
- package/data/global/modifier_family/anticipation.ttl +5 -6
- package/data/global/modifier_family/criticality.ttl +5 -6
- package/data/global/modifier_family/density.ttl +5 -6
- package/data/global/modifier_family/importance.ttl +5 -6
- package/data/global/modifier_family/lifecycle.ttl +5 -6
- package/data/global/modifier_family/release.ttl +5 -6
- package/data/global/pattern/dropdown_button.ttl +7 -0
- package/data/global/pattern/info_table.ttl +6 -7
- package/data/global/pattern/modal.ttl +6 -7
- package/data/global/pattern/navigation.ttl +6 -7
- package/data/global/pattern/stepper.ttl +6 -7
- package/data/global/pattern/table_of_contents.ttl +6 -7
- package/data/global/pattern/timeline.ttl +60 -12
- package/data/global/subcomponent/accordion-item.ttl +15 -16
- package/data/global/subcomponent/breadcrumbs-item.ttl +15 -16
- package/data/global/subcomponent/card-content.ttl +11 -12
- package/data/global/subcomponent/card-header.ttl +11 -12
- package/data/global/subcomponent/card-image.ttl +16 -17
- package/data/global/subcomponent/card-thumbnail.ttl +7 -0
- package/data/global/subcomponent/divider.ttl +6 -7
- package/data/global/subcomponent/modal-content.ttl +6 -7
- package/data/global/subcomponent/modal-footer.ttl +6 -7
- package/data/global/subcomponent/modal-header.ttl +6 -7
- package/data/global/subcomponent/spinner.ttl +6 -7
- package/data/global/subcomponent/table-cell.ttl +6 -7
- package/data/global/subcomponent/table-row.ttl +6 -7
- package/data/global/subcomponent/tile-content.ttl +11 -12
- package/data/global/subcomponent/tile-header.ttl +11 -12
- package/data/global/subcomponent/timeline-content.ttl +11 -12
- package/data/global/subcomponent/timeline-event.ttl +42 -27
- package/data/global/subcomponent/timeline-expansion_indicator.ttl +7 -0
- package/data/global/subcomponent/timeline-header.ttl +6 -7
- package/data/global/view/settings_view.ttl +7 -0
- package/data/global.ttl +3 -4
- package/data/global_form/component/checkbox_input.ttl +6 -7
- package/data/global_form/component/choices_input.ttl +6 -7
- package/data/global_form/component/combobox_input.ttl +6 -7
- package/data/global_form/component/custom_choices_input.ttl +6 -7
- package/data/global_form/component/datepicker_input.ttl +6 -7
- package/data/global_form/component/rating_input.ttl +6 -7
- package/data/global_form/component/rich_text_input.ttl +7 -0
- package/data/global_form/component/segmented_control_input.ttl +6 -7
- package/data/global_form/component/slider_input.ttl +6 -7
- package/data/global_form/component/switch_input.ttl +6 -7
- package/data/global_form/component/text_input.ttl +6 -7
- package/data/global_form/component/textarea_input.ttl +6 -7
- package/data/global_form/component/wysiwginput.ttl +6 -7
- package/data/global_form/pattern/field.ttl +6 -7
- package/data/global_form/pattern/form.ttl +6 -7
- package/data/global_form/subcomponent/field-description.ttl +6 -7
- package/data/global_form/subcomponent/field-label.ttl +6 -7
- package/data/global_form.ttl +3 -4
- package/data/site/component/blog_card.ttl +7 -0
- package/data/site/component/quote.ttl +6 -7
- package/data/site/component/rule.ttl +6 -7
- package/data/site/component/section.ttl +6 -7
- package/data/site/group/blog_cards.ttl +7 -0
- package/data/site/layout/blog_page_layout.ttl +7 -0
- package/data/site/layout/case_study_layout.ttl +7 -0
- package/data/site/layout/site_layout.ttl +6 -7
- package/data/site/pattern/hero-github.ttl +6 -7
- package/data/site/pattern/hero.ttl +6 -7
- package/data/site/pattern/info_table.ttl +6 -7
- package/data/site/pattern/pricing_section.ttl +7 -0
- package/data/site/pattern/pricing_table.ttl +7 -0
- package/data/site/pattern/read_more_section.ttl +7 -0
- package/data/site/pattern/skip_link.ttl +6 -7
- package/data/site.ttl +3 -4
- package/data/sites_webcomponentsprototype/component/blog_cards.ttl +7 -0
- package/data/sites_webcomponentsprototype/component/ctablock.ttl +7 -0
- package/data/sites_webcomponentsprototype/component/list.ttl +7 -0
- package/data/sites_webcomponentsprototype/component/tabs.ttl +7 -0
- package/data/sites_webcomponentsprototype/layout/site_layout.ttl +8 -0
- package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +7 -0
- package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +7 -0
- package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +7 -0
- package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +7 -0
- package/data/sites_webcomponentsprototype/pattern/hero.ttl +7 -0
- package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +7 -0
- package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +7 -0
- package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +7 -0
- package/data/sites_webcomponentsprototype.ttl +4 -0
- package/data/stores.ttl +3 -4
- package/definitions/ontology.ttl +39 -25
- package/package.json +8 -8
- package/skills/anatomy-author/SKILL.md +9 -9
- package/skills/component-specifier/SKILL.md +81 -85
- package/skills/design-auditor/SKILL.md +45 -45
- package/source.json +35 -33
- package/src/collect/generateTurtle.tests.ts +21 -38
- package/src/commands/transform.ts +27 -3
- package/src/config/source.schema.json +9 -0
- package/src/config/types.ts +7 -0
- package/src/constants.ts +6 -7
- package/src/graph/GraphStore.tests.ts +23 -23
- package/src/graph/GraphStore.ts +2 -2
- package/src/graph/PrefixMap.tests.ts +16 -16
- package/src/graph/PrefixMap.ts +1 -1
- package/src/graph/buildUri.tests.ts +26 -13
- package/src/graph/buildUri.ts +17 -5
- package/src/serializers/JSONSerializer.tests.ts +2 -5
- package/src/serializers/TTLSerializer.tests.ts +2 -4
- package/src/serializers/TTLSerializer.ts +2 -2
- package/src/transform/resolveReferences.tests.ts +2 -2
- package/src/transform/transform.tests.ts +5 -7
- package/src/transform/transform.ts +3 -1
- package/src/transform/transformRow.tests.ts +149 -50
- package/src/transform/transformRow.ts +27 -3
- package/data/global/component/link.ttl +0 -8
- package/data/global/pattern/breadcrumbs.ttl +0 -14
- package/data/global/pattern/select_button.ttl +0 -8
- package/data/global/subcomponent/timeline-footer.ttl +0 -8
- package/session/A.DSL.md +0 -429
- package/session/B.NOTES.md +0 -84
- package/session/global.component.accordion.yaml +0 -13
- package/session/global.component.button.yaml +0 -26
- package/session/global.component.card.yaml +0 -24
- package/session/global.component.icon.yaml +0 -7
- package/session/global.component.label.yaml +0 -7
- package/session/global.component.tile.yaml +0 -21
- package/session/global.component.timeline.yaml +0 -20
- package/session/global.pattern.breadcrumbs.yaml +0 -13
- package/session/global.subcomponent.accordion-item.yaml +0 -37
- package/session/global.subcomponent.breadcrumbs-item.yaml +0 -21
- package/session/global.subcomponent.card-content.yaml +0 -7
- package/session/global.subcomponent.card-header.yaml +0 -22
- package/session/global.subcomponent.card-image.yaml +0 -7
- package/session/global.subcomponent.tile-content.yaml +0 -7
- package/session/global.subcomponent.tile-header.yaml +0 -8
- package/session/global.subcomponent.timeline-content.yaml +0 -13
- package/session/global.subcomponent.timeline-event.yaml +0 -20
- package/session/global.subcomponent.timeline-footer.yaml +0 -9
- package/session/global.subcomponent.timeline-header.yaml +0 -18
package/session/A.DSL.md
DELETED
|
@@ -1,429 +0,0 @@
|
|
|
1
|
-
# Abstract
|
|
2
|
-
|
|
3
|
-
This specification presents a DSL to represent design system anatomies, providing an accurate platform agnostic markup primitive to precede implementation.
|
|
4
|
-
|
|
5
|
-
# Rationale
|
|
6
|
-
|
|
7
|
-
# Specification
|
|
8
|
-
|
|
9
|
-
## Intended usage
|
|
10
|
-
|
|
11
|
-
1. Documentation : implementation primitive for markup and style bindings
|
|
12
|
-
2. Specification : using the tree based DSL to identify entities to implement and/or reuse
|
|
13
|
-
3. Discussion : using the DSL to discuss across regular conversations related to DS, e.g. contribution meetings, reviews, etc. (“I believe these nodes should be siblings, not parents of one another”)
|
|
14
|
-
4. Inference : this anatomy can support automated inference with the goal to audit a codebase against its specifications or to support code generation.
|
|
15
|
-
|
|
16
|
-
## Requirements
|
|
17
|
-
|
|
18
|
-
### General DSL Requirements
|
|
19
|
-
|
|
20
|
-
- The DSL MUST optimize for readability
|
|
21
|
-
- The DSL MUST be easy to get started with and use a familiar language.
|
|
22
|
-
- The scope of the DSL MUST be minimized to cover only the strict necessary \- additional specification information being covered in the schema.
|
|
23
|
-
|
|
24
|
-
### Modelling requirements
|
|
25
|
-
|
|
26
|
-
- The children of a node MUST be modelled through a reified relation for annotation purposes.
|
|
27
|
-
- The DSL MUST support anonymous nodes (nodes that are not named components, for instance an unnamed “div”). In this case, the DSL should support role annotations.
|
|
28
|
-
- The DSL MUST support reified annotations of cardinality.
|
|
29
|
-
- The DSL MUST support all classes of UI Blocks identified in the [ontology](https://github.com/canonical/pragma/blob/main/packages/ontologies/src/ds.ttl) (at the time of writing, Layout, Pattern, Component, Subcomponent).
|
|
30
|
-
|
|
31
|
-
## Proposition
|
|
32
|
-
|
|
33
|
-
### Type system
|
|
34
|
-
|
|
35
|
-
We structure the children one-to-many relation following inspiration by [the Relay connection pattern](https://relay.dev/graphql/connections.htm) and propose the following typings.
|
|
36
|
-
|
|
37
|
-
```ts
|
|
38
|
-
/* Reusable types */
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Styles use a CTI (Category-Type-Item) inspired flat key structure for platform-agnostic UI properties. This allows to avoid using language specific keys such as CSS.
|
|
42
|
-
*
|
|
43
|
-
* KEY NAMING CONVENTION:
|
|
44
|
-
* Properties follow a dot-notation pattern: "category.type[.item]"
|
|
45
|
-
* - Category: Primary concern (layout, spacing, appearance, typography, size, etc.)
|
|
46
|
-
* - Type: Specific aspect within that category
|
|
47
|
-
* - Item: Optional further specification
|
|
48
|
-
*
|
|
49
|
-
* INVARIANT VS THEMEABLE:
|
|
50
|
-
* Whether a property is invariant (structural) or themeable depends on its semantic meaning
|
|
51
|
-
* and value type, rather than strict rules:
|
|
52
|
-
*
|
|
53
|
-
* Typically invariant (structural decisions):
|
|
54
|
-
* - layout.type: "stack" | "flow" | "grid" // Component structure
|
|
55
|
-
* - layout.direction: "horizontal" | "vertical"
|
|
56
|
-
* - size.width: "fill" | "hug" | "100%" // Structural sizing
|
|
57
|
-
*
|
|
58
|
-
* Typically themeable (brand/theme variations):
|
|
59
|
-
* - appearance.*: Color, shadow, radius values via tokens
|
|
60
|
-
* - spacing.*: When referencing design tokens
|
|
61
|
-
* - typography.*: Font properties via tokens
|
|
62
|
-
*
|
|
63
|
-
* Context-dependent:
|
|
64
|
-
* - size.width: "320px" or "size/card/width" // Token = themeable
|
|
65
|
-
* - size.width: "fill" or "100%" // Structural = invariant
|
|
66
|
-
* - spacing.internal: "16" // Fixed value = invariant
|
|
67
|
-
* - spacing.internal: "spacing/medium" // Token = themeable
|
|
68
|
-
*
|
|
69
|
-
* The distinction is semantic: does this property define structure or appearance?
|
|
70
|
-
*/
|
|
71
|
-
type Styles = Record<string, TokenPath | PrimitiveValue>;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* TokenPath represents a forward-slash delimited path to a design token.
|
|
75
|
-
* Follows design token naming conventions referenced by the W3C Design Token Format.
|
|
76
|
-
*
|
|
77
|
-
* Examples:
|
|
78
|
-
* - "spacing/medium"
|
|
79
|
-
* - "color/surface/primary"
|
|
80
|
-
* - "font/size/heading/1"
|
|
81
|
-
* - "border/width/thin"
|
|
82
|
-
* - "shadow/elevated/medium"
|
|
83
|
-
* - "radius/button/default"
|
|
84
|
-
*
|
|
85
|
-
* Token paths are resolved at runtime against the active theme.
|
|
86
|
-
*/
|
|
87
|
-
type TokenPath = string;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* PrimitiveValue represents direct values not resolved from tokens.
|
|
91
|
-
* Used for structural decisions and fixed values.
|
|
92
|
-
*
|
|
93
|
-
* Examples:
|
|
94
|
-
* - string: "stack", "flow", "center", "fill", "100%", "1fr"
|
|
95
|
-
* - number: 1.5 (aspect ratio), 2 (column count), -1 (z-index)
|
|
96
|
-
* - boolean: true/false (for wrap, reverse, etc.)
|
|
97
|
-
*/
|
|
98
|
-
type PrimitiveValue = string | number | boolean;
|
|
99
|
-
|
|
100
|
-
/* Main types */
|
|
101
|
-
|
|
102
|
-
interface Relation {
|
|
103
|
-
/**
|
|
104
|
-
* Cardinality represents the number of allowed instances of the related node.
|
|
105
|
-
* See https://en.wikipedia.org/wiki/Cardinality_(data_modeling) for reference.
|
|
106
|
-
*
|
|
107
|
-
* Examples:
|
|
108
|
-
* - "1" : Exactly one (required)
|
|
109
|
-
* - "0..1" : Zero or one (optional)
|
|
110
|
-
* - "0..*" : Zero or more
|
|
111
|
-
* - "1..*" : One or more
|
|
112
|
-
* - "2..5" : Between 2 and 5
|
|
113
|
-
*/
|
|
114
|
-
cardinality: string;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Maps content to a specific slot in the parent component.
|
|
118
|
-
*
|
|
119
|
-
* Common values:
|
|
120
|
-
* - "default" : Main content (React children)
|
|
121
|
-
* - "header" : Header slot
|
|
122
|
-
* - "footer" : Footer slot
|
|
123
|
-
* - "icon" : Icon placement
|
|
124
|
-
* - "label" : Text label
|
|
125
|
-
* - Custom slots as needed
|
|
126
|
-
*/
|
|
127
|
-
slotName?: string;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Base interface for all nodes in the anatomy tree.
|
|
132
|
-
*/
|
|
133
|
-
interface BaseNode {
|
|
134
|
-
/**
|
|
135
|
-
* Style properties using CTI-inspired keys.
|
|
136
|
-
*
|
|
137
|
-
* Common patterns and their platform mappings:
|
|
138
|
-
*
|
|
139
|
-
* LAYOUT:
|
|
140
|
-
* - "layout.type": "stack" | "flow" | "grid"
|
|
141
|
-
* → CSS: display + flexDirection | SwiftUI: VStack/HStack | Flutter: Column/Row
|
|
142
|
-
* - "layout.align": "center" | "start" | "end"
|
|
143
|
-
* → CSS: align-items | SwiftUI: alignment | Flutter: crossAxisAlignment
|
|
144
|
-
*
|
|
145
|
-
* SPACING:
|
|
146
|
-
* - "spacing.internal": "spacing/medium"
|
|
147
|
-
* → CSS: padding | SwiftUI: .padding() | Flutter: EdgeInsets
|
|
148
|
-
* - "spacing.external": "spacing/large"
|
|
149
|
-
* → CSS: margin | SwiftUI: frame modifiers | Flutter: Container margin
|
|
150
|
-
* - "spacing.gap": "spacing/small"
|
|
151
|
-
* → CSS: gap | SwiftUI: spacing parameter | Flutter: SizedBox between
|
|
152
|
-
*
|
|
153
|
-
* APPEARANCE:
|
|
154
|
-
* - "appearance.background": "color/surface/primary"
|
|
155
|
-
* → CSS: background | SwiftUI: .background() | Flutter: Container color
|
|
156
|
-
* - "appearance.radius": "radius/medium"
|
|
157
|
-
* → CSS: border-radius | SwiftUI: .cornerRadius() | Flutter: BorderRadius
|
|
158
|
-
*
|
|
159
|
-
* SIZE:
|
|
160
|
-
* - "size.width": "fill" | "hug" | "size/card/width"
|
|
161
|
-
* → CSS: width: 100% | auto | var() | SwiftUI: .frame() | Flutter: constraints
|
|
162
|
-
*
|
|
163
|
-
* Examples showing invariant vs themeable:
|
|
164
|
-
* {
|
|
165
|
-
* "layout.type": "grid", // Invariant: structural
|
|
166
|
-
* "layout.columns": "1fr 300px 1fr", // Invariant: grid structure
|
|
167
|
-
* "spacing.gap": "spacing/grid/gap", // Themeable: token reference
|
|
168
|
-
* "appearance.background": "color/surface", // Themeable: always
|
|
169
|
-
* "size.width": "fill", // Invariant: structural behavior
|
|
170
|
-
* "size.max.width": "size/container/max", // Themeable: token reference
|
|
171
|
-
* "typography.align": "center", // Invariant: structural
|
|
172
|
-
* "typography.size": "font/size/body", // Themeable: token reference
|
|
173
|
-
* }
|
|
174
|
-
*/
|
|
175
|
-
styles?: Styles;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Child nodes and their relationships.
|
|
179
|
-
* Enables recursive component composition.
|
|
180
|
-
*/
|
|
181
|
-
edges?: Edge[];
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Named nodes represent identifiable components in the design system.
|
|
186
|
-
*/
|
|
187
|
-
interface NamedNode extends BaseNode {
|
|
188
|
-
/**
|
|
189
|
-
* Unique identifier following "tier:type:name" pattern.
|
|
190
|
-
* Maps to URI field on UI Block in the ontology.
|
|
191
|
-
*
|
|
192
|
-
* Examples:
|
|
193
|
-
* - "core:component:Button"
|
|
194
|
-
* - "core:component:Card"
|
|
195
|
-
* - "app:layout:AppLayout"
|
|
196
|
-
*/
|
|
197
|
-
uri: string;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Anonymous nodes represent structural elements without DS identity.
|
|
202
|
-
*/
|
|
203
|
-
interface AnonymousNode extends BaseNode {
|
|
204
|
-
/**
|
|
205
|
-
* Human-readable description of the node's purpose.
|
|
206
|
-
*
|
|
207
|
-
* Examples:
|
|
208
|
-
* - "content wrapper"
|
|
209
|
-
* - "spacer element"
|
|
210
|
-
* - "icon container"
|
|
211
|
-
* - "layout grid cell"
|
|
212
|
-
*/
|
|
213
|
-
role: string;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Union type for all possible nodes.
|
|
218
|
-
*/
|
|
219
|
-
type Node = NamedNode | AnonymousNode;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Represents a parent-child relationship in the anatomy tree.
|
|
223
|
-
*/
|
|
224
|
-
interface Edge {
|
|
225
|
-
/** The child node (Named or Anonymous) */
|
|
226
|
-
node: Node;
|
|
227
|
-
|
|
228
|
-
/** Relationship metadata (cardinality, slot) */
|
|
229
|
-
relation: Relation;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Root specification for a component anatomy.
|
|
234
|
-
* The top-level node must always be Named.
|
|
235
|
-
*/
|
|
236
|
-
interface AnatomySpec {
|
|
237
|
-
node: NamedNode;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
### Language Choice
|
|
243
|
-
|
|
244
|
-
We propose the use of YAML, a mature indentation-based configuration syntax based on scalars, maps and lists. The main contender we have considered aside from YAML was JSON, rejected for its verbosity. We have also rejected TOML (maps with difficulty deeply nested nodes), SDLang and KDL (promising markup syntaxes without wide adoption at present).
|
|
245
|
-
|
|
246
|
-
Here is an example implementing the types. Please note that the `type TokenPath = [string, string, ...string[]];` is here replaced by an array joined by a `/` delimiter.
|
|
247
|
-
|
|
248
|
-
## Examples
|
|
249
|
-
|
|
250
|
-
### Accordion
|
|
251
|
-
|
|
252
|
-
```
|
|
253
|
-
node:
|
|
254
|
-
uri: core:component:Accordion
|
|
255
|
-
styles:
|
|
256
|
-
# Structural (implicitly invariant)
|
|
257
|
-
layout.type: stack
|
|
258
|
-
layout.direction: vertical
|
|
259
|
-
|
|
260
|
-
# Themeable
|
|
261
|
-
appearance.border: border/style/accordion
|
|
262
|
-
|
|
263
|
-
edges:
|
|
264
|
-
- node:
|
|
265
|
-
uri: core:component:AccordionItem
|
|
266
|
-
edges:
|
|
267
|
-
- node:
|
|
268
|
-
uri: core:element:AccordionItemHeader
|
|
269
|
-
styles:
|
|
270
|
-
# Structural (implicitly invariant)
|
|
271
|
-
layout.type: flow
|
|
272
|
-
layout.direction: horizontal
|
|
273
|
-
layout.align: center
|
|
274
|
-
|
|
275
|
-
# Interaction (implicitly invariant)
|
|
276
|
-
interaction.cursor: pointer
|
|
277
|
-
interaction.transition.property: background
|
|
278
|
-
interaction.transition.timing: ease
|
|
279
|
-
|
|
280
|
-
# Themeable
|
|
281
|
-
spacing.internal: spacing/medium
|
|
282
|
-
appearance.background: color/surface/header
|
|
283
|
-
typography.weight: font/weight/semibold
|
|
284
|
-
interaction.transition.duration: transition/duration
|
|
285
|
-
|
|
286
|
-
relation:
|
|
287
|
-
cardinality: "1..1"
|
|
288
|
-
slotName: header
|
|
289
|
-
|
|
290
|
-
- node:
|
|
291
|
-
uri: core:element:AccordionItemContent
|
|
292
|
-
styles:
|
|
293
|
-
# Structural (implicitly invariant)
|
|
294
|
-
layout.display: block
|
|
295
|
-
layout.overflow: hidden
|
|
296
|
-
|
|
297
|
-
# Themeable
|
|
298
|
-
spacing.internal: spacing/large
|
|
299
|
-
appearance.background: color/surface/content
|
|
300
|
-
appearance.border.top: border/style/none
|
|
301
|
-
|
|
302
|
-
relation:
|
|
303
|
-
cardinality: "1..1"
|
|
304
|
-
slotName: default
|
|
305
|
-
|
|
306
|
-
relation:
|
|
307
|
-
cardinality: "1..*"
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
### Card
|
|
314
|
-
|
|
315
|
-
```
|
|
316
|
-
node:
|
|
317
|
-
uri: core:component:Card
|
|
318
|
-
styles:
|
|
319
|
-
# Structural (implicitly invariant)
|
|
320
|
-
layout.type: stack
|
|
321
|
-
layout.direction: vertical
|
|
322
|
-
|
|
323
|
-
# Themeable
|
|
324
|
-
appearance.background: color/surface/card
|
|
325
|
-
appearance.shadow: shadow/card
|
|
326
|
-
appearance.radius: shape/rounded/full
|
|
327
|
-
spacing.gap: spacing/small
|
|
328
|
-
|
|
329
|
-
edges:
|
|
330
|
-
- node:
|
|
331
|
-
uri: core:element:CardHeader
|
|
332
|
-
styles:
|
|
333
|
-
# Structural (implicitly invariant)
|
|
334
|
-
layout.type: flow
|
|
335
|
-
layout.direction: horizontal
|
|
336
|
-
layout.align: center
|
|
337
|
-
|
|
338
|
-
# Themeable
|
|
339
|
-
spacing.internal: spacing/medium
|
|
340
|
-
appearance.border.bottom: border/style/divider
|
|
341
|
-
typography.weight: font/weight/bold
|
|
342
|
-
|
|
343
|
-
relation:
|
|
344
|
-
cardinality: "0..1"
|
|
345
|
-
slotName: header
|
|
346
|
-
|
|
347
|
-
- node:
|
|
348
|
-
uri: core:element:CardMedia
|
|
349
|
-
styles:
|
|
350
|
-
# Structural (implicitly invariant)
|
|
351
|
-
layout.display: block
|
|
352
|
-
size.width: fill
|
|
353
|
-
object.fit: cover
|
|
354
|
-
|
|
355
|
-
# Themeable
|
|
356
|
-
size.max.height: size/media/max
|
|
357
|
-
appearance.radius: shape/rounded/top
|
|
358
|
-
|
|
359
|
-
relation:
|
|
360
|
-
cardinality: "0..1"
|
|
361
|
-
slotName: media
|
|
362
|
-
|
|
363
|
-
- node:
|
|
364
|
-
uri: core:element:CardBody
|
|
365
|
-
styles:
|
|
366
|
-
# Structural (implicitly invariant)
|
|
367
|
-
layout.type: stack
|
|
368
|
-
layout.direction: vertical
|
|
369
|
-
layout.flex: 1
|
|
370
|
-
|
|
371
|
-
# Themeable
|
|
372
|
-
spacing.internal: spacing/large
|
|
373
|
-
typography.color: color/text/body
|
|
374
|
-
typography.size: font/size/medium
|
|
375
|
-
|
|
376
|
-
edges:
|
|
377
|
-
- node:
|
|
378
|
-
role: content wrapper
|
|
379
|
-
styles:
|
|
380
|
-
# Structural (implicitly invariant)
|
|
381
|
-
layout.display: block
|
|
382
|
-
|
|
383
|
-
# Themeable
|
|
384
|
-
spacing.margin.bottom: spacing/small
|
|
385
|
-
appearance.background: color/background/subtle
|
|
386
|
-
|
|
387
|
-
relation:
|
|
388
|
-
cardinality: "1..1"
|
|
389
|
-
|
|
390
|
-
relation:
|
|
391
|
-
cardinality: "1..1"
|
|
392
|
-
slotName: body
|
|
393
|
-
|
|
394
|
-
- node:
|
|
395
|
-
uri: core:element:CardFooter
|
|
396
|
-
styles:
|
|
397
|
-
# Structural (implicitly invariant)
|
|
398
|
-
layout.type: flow
|
|
399
|
-
layout.direction: horizontal
|
|
400
|
-
layout.justify: space-between
|
|
401
|
-
|
|
402
|
-
# Themeable
|
|
403
|
-
spacing.internal: spacing/small
|
|
404
|
-
appearance.border.top: border/style/divider
|
|
405
|
-
typography.size: font/size/small
|
|
406
|
-
|
|
407
|
-
relation:
|
|
408
|
-
cardinality: "0..1"
|
|
409
|
-
slotName: footer
|
|
410
|
-
|
|
411
|
-
```
|
|
412
|
-
|
|
413
|
-
# Further Information
|
|
414
|
-
|
|
415
|
-
## Further work
|
|
416
|
-
|
|
417
|
-
The following features would require additional work to this specification :
|
|
418
|
-
|
|
419
|
-
- Representation of related nodes displayed in portals
|
|
420
|
-
- Representation of conditionally in display
|
|
421
|
-
- Inheritance reference for styles (For instance “NetworkCard” inherits the styles from “Card”)
|
|
422
|
-
|
|
423
|
-
## References
|
|
424
|
-
|
|
425
|
-
Two main references have supported our reflection
|
|
426
|
-
|
|
427
|
-
1. The work of the [Open UI W3C Working Group](https://open-ui.org/), which takes interest in a code based anatomy for their specifications ([Example](https://open-ui.org/components/accordion.explainer/))
|
|
428
|
-
2. The work of Nathan Curtis, exploring a similar syntax in his article “[Components as Data](https://medium.com/@nathanacurtis/components-as-data-2be178777f21)”
|
|
429
|
-
|
package/session/B.NOTES.md
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# Work session
|
|
2
|
-
|
|
3
|
-
## Components to write the DSL for
|
|
4
|
-
|
|
5
|
-
Accordion
|
|
6
|
-
Accordion.Item
|
|
7
|
-
Breadcrumbs
|
|
8
|
-
Breadcrumbs.Item
|
|
9
|
-
Button
|
|
10
|
-
Card
|
|
11
|
-
Card.Content
|
|
12
|
-
Card.Header
|
|
13
|
-
Card.Image
|
|
14
|
-
Icon
|
|
15
|
-
Label
|
|
16
|
-
Tile
|
|
17
|
-
Timeline
|
|
18
|
-
Timeline.Header
|
|
19
|
-
Timeline.Event
|
|
20
|
-
Timeline.Content
|
|
21
|
-
Timeline.Footer
|
|
22
|
-
|
|
23
|
-
## DSL Conventions
|
|
24
|
-
|
|
25
|
-
### YAML Format
|
|
26
|
-
Files must start with `---` (YAML document start marker).
|
|
27
|
-
|
|
28
|
-
### DRY Principle
|
|
29
|
-
When a node has a URI (not anonymous), it references its own DSL file. Do not inline the full tree—just reference the URI.
|
|
30
|
-
|
|
31
|
-
### URI Encoding
|
|
32
|
-
URIs follow turtle conventions with dot-separated paths:
|
|
33
|
-
- `.` = path hierarchy (tier.type.name)
|
|
34
|
-
- `_` = word boundary from PascalCase (e.g., `CardHeader` → `card_header`)
|
|
35
|
-
- `-` = dot in compound names (e.g., `Card.Header` → `card-header`)
|
|
36
|
-
|
|
37
|
-
Examples:
|
|
38
|
-
- `Button` → `global.component.button`
|
|
39
|
-
- `Accordion.Item` → `global.subcomponent.accordion-item`
|
|
40
|
-
|
|
41
|
-
**Parent Reference in Subcomponents:**
|
|
42
|
-
Subcomponents must reference their parent in the name:
|
|
43
|
-
- Labelled name uses dot: `Parent.Sub` (e.g., `Timeline.Item`)
|
|
44
|
-
- Turtle URI uses hyphen: `parent-sub` (e.g., `global.subcomponent.timeline-item`)
|
|
45
|
-
|
|
46
|
-
### Named vs Anonymous
|
|
47
|
-
- **URI (named)**: Use for user-instantiable components (things users compose in their code)
|
|
48
|
-
- **role (anonymous)**: Use for internal structural elements not directly instantiated by users
|
|
49
|
-
|
|
50
|
-
Rule of thumb: "Can/should a user write `<ComponentName>` in their code?" If yes → URI. If no → role.
|
|
51
|
-
|
|
52
|
-
### Slot Mapping
|
|
53
|
-
|
|
54
|
-
- `slotName: default` implies the main children slot (e.g., `children` in React, default slot in Vue)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
## DSL improvements
|
|
58
|
-
|
|
59
|
-
### Block Behavior vs Layout Type
|
|
60
|
-
Need to distinguish:
|
|
61
|
-
- **Block behavior** (external): How the component behaves in its parent context (`inline`, `block`, `inline-block`)
|
|
62
|
-
- **layout.type** (internal): How the component arranges its children (`stack`, `flow`, `grid`)
|
|
63
|
-
|
|
64
|
-
Currently using `layout.display` for both concerns - should separate them.
|
|
65
|
-
|
|
66
|
-
### Token Fallbacks
|
|
67
|
-
Need ability to pass multiple tokens - first defined one is consumed:
|
|
68
|
-
```yaml
|
|
69
|
-
appearance.background: [color/surface/button, color/surface/default]
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Open question: naming convention for potentially undefined tokens?
|
|
73
|
-
- `color/surface/button?` (trailing `?`)
|
|
74
|
-
- `color/surface/button!` (required) vs unmarked (optional)
|
|
75
|
-
- Separate `optional/` prefix?
|
|
76
|
-
|
|
77
|
-
### Pseudo Elements
|
|
78
|
-
|
|
79
|
-
### Switch
|
|
80
|
-
- Switch to passed slot (as?) or custom
|
|
81
|
-
|
|
82
|
-
### Slotname default (several components)
|
|
83
|
-
|
|
84
|
-
### DSL - stories (several levels of nesting ?)
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
node:
|
|
3
|
-
uri: global.component.accordion
|
|
4
|
-
styles:
|
|
5
|
-
layout.type: stack
|
|
6
|
-
layout.direction: vertical
|
|
7
|
-
appearance.border: border/style/container
|
|
8
|
-
edges:
|
|
9
|
-
- node:
|
|
10
|
-
uri: global.subcomponent.accordion-item
|
|
11
|
-
relation:
|
|
12
|
-
cardinality: "1..*"
|
|
13
|
-
slotName: default
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
node:
|
|
3
|
-
uri: global.component.button
|
|
4
|
-
styles:
|
|
5
|
-
layout.type: flow
|
|
6
|
-
layout.direction: horizontal
|
|
7
|
-
layout.align: center
|
|
8
|
-
layout.justify: center
|
|
9
|
-
interaction.cursor: pointer
|
|
10
|
-
appearance.radius: radius/button
|
|
11
|
-
edges:
|
|
12
|
-
- node:
|
|
13
|
-
role: icon
|
|
14
|
-
styles:
|
|
15
|
-
size.width: size/icon/small
|
|
16
|
-
size.height: size/icon/small
|
|
17
|
-
relation:
|
|
18
|
-
cardinality: "0..1"
|
|
19
|
-
slotName: icon
|
|
20
|
-
- node:
|
|
21
|
-
role: label
|
|
22
|
-
styles:
|
|
23
|
-
typography.weight: font/weight/medium
|
|
24
|
-
relation:
|
|
25
|
-
cardinality: "1"
|
|
26
|
-
slotName: default
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
node:
|
|
3
|
-
uri: global.component.card
|
|
4
|
-
styles:
|
|
5
|
-
layout.type: stack
|
|
6
|
-
layout.direction: vertical
|
|
7
|
-
appearance.background: color/surface/card
|
|
8
|
-
appearance.radius: radius/card
|
|
9
|
-
edges:
|
|
10
|
-
- node:
|
|
11
|
-
uri: global.subcomponent.card-header
|
|
12
|
-
relation:
|
|
13
|
-
cardinality: "0..1"
|
|
14
|
-
slotName: header
|
|
15
|
-
- node:
|
|
16
|
-
uri: global.subcomponent.card-image
|
|
17
|
-
relation:
|
|
18
|
-
cardinality: "0..1"
|
|
19
|
-
slotName: media
|
|
20
|
-
- node:
|
|
21
|
-
uri: global.subcomponent.card-content
|
|
22
|
-
relation:
|
|
23
|
-
cardinality: "1"
|
|
24
|
-
slotName: default
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
node:
|
|
3
|
-
uri: global.component.tile
|
|
4
|
-
styles:
|
|
5
|
-
layout.type: stack
|
|
6
|
-
layout.direction: vertical
|
|
7
|
-
interaction.cursor: pointer
|
|
8
|
-
appearance.background: color/surface/tile
|
|
9
|
-
appearance.radius: radius/tile
|
|
10
|
-
edges:
|
|
11
|
-
- node:
|
|
12
|
-
uri: global.subcomponent.tile-header
|
|
13
|
-
relation:
|
|
14
|
-
cardinality: "1"
|
|
15
|
-
# cardinality: "0..1"
|
|
16
|
-
slotName: header
|
|
17
|
-
- node:
|
|
18
|
-
uri: global.subcomponent.tile-content
|
|
19
|
-
relation:
|
|
20
|
-
cardinality: "1"
|
|
21
|
-
slotName: default
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
node:
|
|
3
|
-
uri: global.component.timeline
|
|
4
|
-
styles:
|
|
5
|
-
layout.type: stack
|
|
6
|
-
layout.direction: vertical
|
|
7
|
-
edges:
|
|
8
|
-
- node:
|
|
9
|
-
uri: global.subcomponent.timeline-header
|
|
10
|
-
relation:
|
|
11
|
-
cardinality: "0..1"
|
|
12
|
-
- node:
|
|
13
|
-
uri: global.subcomponent.timeline-content
|
|
14
|
-
relation:
|
|
15
|
-
cardinality: "1"
|
|
16
|
-
slotName: default
|
|
17
|
-
- node:
|
|
18
|
-
uri: global.subcomponent.timeline-footer
|
|
19
|
-
relation:
|
|
20
|
-
cardinality: "0..1"
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
node:
|
|
3
|
-
uri: global.subcomponent.accordion-item
|
|
4
|
-
styles:
|
|
5
|
-
layout.type: stack
|
|
6
|
-
layout.direction: vertical
|
|
7
|
-
edges:
|
|
8
|
-
- node:
|
|
9
|
-
role: header trigger
|
|
10
|
-
styles:
|
|
11
|
-
layout.type: flow
|
|
12
|
-
layout.direction: horizontal
|
|
13
|
-
layout.align: center
|
|
14
|
-
interaction.cursor: pointer
|
|
15
|
-
edges:
|
|
16
|
-
- node:
|
|
17
|
-
role: control
|
|
18
|
-
styles:
|
|
19
|
-
size.width: size/icon/small
|
|
20
|
-
size.height: size/icon/small
|
|
21
|
-
relation:
|
|
22
|
-
cardinality: "1"
|
|
23
|
-
- node:
|
|
24
|
-
role: heading
|
|
25
|
-
relation:
|
|
26
|
-
cardinality: "1"
|
|
27
|
-
slotName: default
|
|
28
|
-
relation:
|
|
29
|
-
cardinality: "1"
|
|
30
|
-
slotName: header
|
|
31
|
-
- node:
|
|
32
|
-
role: content panel
|
|
33
|
-
styles:
|
|
34
|
-
layout.overflow: hidden
|
|
35
|
-
relation:
|
|
36
|
-
cardinality: "1"
|
|
37
|
-
slotName: default
|