-
Notifications
You must be signed in to change notification settings - Fork 1
Content tree - Content tree base component #853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
prashanthr6383
wants to merge
45
commits into
main
Choose a base branch
from
662---content-tree---base
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 40 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
131f558
662 - content tree init
prashanthr6383 7432795
662 - update layout
prashanthr6383 eefb20b
662 - content tree add node using slots
prashanthr6383 ca9d12b
662 - add search functionality
prashanthr6383 62be67c
662 - add menu item toggle feature
prashanthr6383 1ba646e
662 - remove
prashanthr6383 5d2c24e
662 - poc atomic approach
prashanthr6383 a6d206e
Merge branch 'main' into 662---content-tree---base
prashanthr6383 125cb24
662 - replace menu item with content tree item
prashanthr6383 72e1362
662 - add selection state to item and css fixes
prashanthr6383 c770eb0
662 - add row actions, 1.0 & 2.0 features
prashanthr6383 bf962bb
662 - Add multi-select feature
prashanthr6383 b5e66b6
662 - ui fixes
prashanthr6383 2cb744e
662 - add multi select event and ui fixes
prashanthr6383 42161a5
662 - fix bugs
prashanthr6383 8174bb7
662 - add tests
prashanthr6383 2bf2b91
662 - build fixes
prashanthr6383 ee19ec0
662 - build fixes
prashanthr6383 f420401
662 - add tests
prashanthr6383 b416fd1
Merge branch 'main' into 662---content-tree---base
prashanthr6383 fa4b5c0
662 - build fixes
prashanthr6383 f86ee07
662 - build fixes
prashanthr6383 c1f674a
662 - fix PR comments
prashanthr6383 acab2fc
662 - address pr comments
prashanthr6383 170d3cf
662 - address pr comments
prashanthr6383 46e0a35
662 - address pr comments
prashanthr6383 2e2603e
662 - address pr comments
prashanthr6383 122e414
662 - fix selection state logic
prashanthr6383 5c183d4
662 - multi seletect fix
prashanthr6383 a64f816
662 - fix pr comments
prashanthr6383 f823a60
662 - address pr comments
prashanthr6383 a2a4201
662 - update storybook
prashanthr6383 4cbd0c6
662 - update storybook
prashanthr6383 e4fd9b4
Merge branch 'main' into 662---content-tree---base
prashanthr6383 f817936
662 - dark mode fixes
prashanthr6383 f5290ee
662 - css fixes
prashanthr6383 2cb7610
Merge branch 'main' into 662---content-tree---base
prashanthr6383 70deeb8
662 - fix build issues
prashanthr6383 5724fc1
Merge branch '662---content-tree---base' of https://github.com/trimblβ¦
prashanthr6383 5250a41
662- build fixes
prashanthr6383 84f6cdd
662 - css fixes
prashanthr6383 cf23b19
css fixes
prashanthr6383 223cc21
662 - ui fixes
prashanthr6383 6aa9e0f
662 - code fixes
prashanthr6383 96c3c58
Merge branch 'main' into 662---content-tree---base
prashanthr6383 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/components/modus-wc-content-tree/__snapshots__/modus-wc-content-tree.spec.ts.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| // Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
|
||
| exports[`modus-wc-content-tree should render with default props 1`] = ` | ||
| <modus-wc-content-tree> | ||
| <!----> | ||
| <div class="modus-wc-content-tree-wrapper"> | ||
| <div class="modus-wc-content-tree-header"> | ||
| <div class="modus-wc-content-tree-search"> | ||
| <modus-wc-text-input customclass="modus-wc-content-tree-search-input" include-clear="" include-search="" placeholder="Search..." value=""></modus-wc-text-input> | ||
| </div> | ||
| <div class="modus-wc-content-tree-actions"> | ||
| <modus-wc-button aria-label="Expand all" customclass="modus-wc-content-tree-action-button" shape="circle" size="sm" variant="borderless"> | ||
| <modus-wc-icon customclass="modus-wc-content-tree-action-icon" decorative="" name="unfold_more" size="sm" variant="solid"></modus-wc-icon> | ||
| </modus-wc-button> | ||
| </div> | ||
| </div> | ||
| <div class="modus-wc-content-tree-content"> | ||
| <div class="modus-wc-content-tree-empty"> | ||
| <modus-wc-icon customclass="modus-wc-content-tree-empty-icon" name="folder_open" variant="solid"></modus-wc-icon> | ||
| <modus-wc-typography customclass="modus-wc-content-tree-empty-text" hierarchy="p" label="Empty Content Tree" size="lg" weight="normal"></modus-wc-typography> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </modus-wc-content-tree> | ||
| `; |
79 changes: 79 additions & 0 deletions
79
src/components/modus-wc-content-tree/modus-wc-content-tree.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| /** | ||
| * This component uses menu items for the tree structure. | ||
| * Only add styles here that should not be applied by Tailwind, Daisy, or the theme. | ||
| */ | ||
|
|
||
| modus-wc-content-tree { | ||
| background-color: var(--modus-wc-color-base-page); | ||
| border: 1px solid var(--modus-wc-color-base-100); | ||
| display: block; | ||
| min-width: 290px; | ||
| width: 100%; | ||
|
|
||
| .modus-wc-content-tree-actions { | ||
| align-items: center; | ||
| display: flex; | ||
| gap: var(--modus-wc-spacing-xs, 0.5rem); | ||
| justify-content: flex-end; | ||
| padding: var(--modus-wc-spacing-sm, 0.75rem); | ||
|
|
||
| .modus-wc-content-tree-action-button { | ||
| background-color: transparent; | ||
|
|
||
| &:hover, | ||
| &:active, | ||
| &[aria-pressed='true'] { | ||
| background-color: transparent; | ||
| } | ||
| } | ||
|
|
||
| .modus-wc-content-tree-action-icon { | ||
| color: var(--modus-wc-color-black); | ||
| cursor: pointer; | ||
| } | ||
| } | ||
|
|
||
| .modus-wc-content-tree-content { | ||
| min-height: 500px; | ||
| } | ||
|
|
||
| li.modus-wc-tree-item-selected:not(.modus-wc-tree-dropdown-show li) { | ||
| border-inline-start: 2px solid var(--modus-wc-color-primary); | ||
| } | ||
|
|
||
| .modus-wc-content-tree-header { | ||
| padding: var(--modus-wc-spacing-sm, 1rem); | ||
| } | ||
|
|
||
| .modus-wc-content-tree-empty { | ||
| align-items: center; | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: var(--modus-wc-spacing-md, 1rem); | ||
| justify-content: center; | ||
| min-height: 500px; | ||
| padding: 1rem; | ||
|
|
||
| .modus-wc-content-tree-empty-icon { | ||
| color: var(--modus-wc-color-text-secondary, #6b7280); | ||
| } | ||
|
|
||
| .modus-wc-content-tree-empty-text { | ||
| color: var(--modus-wc-color-text-secondary, #6b7280); | ||
| font-size: var(--modus-wc-font-size-md, 1rem); | ||
| text-align: center; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| [data-theme='modus-classic-dark'], | ||
| [data-theme='modus-modern-dark'], | ||
| [data-theme='connect-dark'] { | ||
| modus-wc-content-tree { | ||
| .modus-wc-content-tree-actions { | ||
| .modus-wc-content-tree-action-icon { | ||
| color: var(--modus-wc-color-gray-light); | ||
| } | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.