-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use a nicer icon for static properties
- Loading branch information
1 parent
fe82b1b
commit 84c2b57
Showing
3 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -24,4 +24,8 @@ body { | |
background: var(--bs-tertiary); | ||
} | ||
} | ||
} | ||
|
||
html.dark button{ | ||
color: white; | ||
} |
This file contains 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
66 changes: 66 additions & 0 deletions
66
storybook/components/plugins/CollapsibleProperties.stories.jsx
This file contains 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,66 @@ | ||
import CollapsibleProperties from "../../../src/components/plugins/CollapsibleProperties.vue"; | ||
|
||
export default { | ||
title: "Components/plugins/CollapsibleProperties", | ||
component: CollapsibleProperties, | ||
}; | ||
|
||
const Template = (args) => ({ | ||
components: {CollapsibleProperties}, | ||
setup() { | ||
return () => | ||
<CollapsibleProperties {...args}/> | ||
}, | ||
}); | ||
|
||
export const Default = Template.bind({}); | ||
Default.args = { | ||
sectionName: "Default Section", | ||
properties: { | ||
property1: {$required: true, type: "string"}, | ||
property2: {type: "number"}, | ||
}, | ||
showDynamic: true, | ||
initiallyExpanded: false, | ||
}; | ||
|
||
export const WithDynamicProperties = Template.bind({}); | ||
WithDynamicProperties.args = { | ||
sectionName: "Dynamic Properties Section", | ||
properties: { | ||
property1: {$required: true, type: "string", $dynamic: true}, | ||
property2: {type: "number", $dynamic: false}, | ||
}, | ||
showDynamic: true, | ||
initiallyExpanded: false, | ||
}; | ||
|
||
export const InitiallyExpanded = Template.bind({}); | ||
InitiallyExpanded.args = { | ||
sectionName: "Initially Expanded Section", | ||
properties: { | ||
property1: {$required: true, type: "string"}, | ||
property2: {type: "number"}, | ||
}, | ||
showDynamic: true, | ||
initiallyExpanded: true, | ||
}; | ||
|
||
export const LargePropertiesList = Template.bind({}); | ||
LargePropertiesList.args = { | ||
sectionName: "Large Properties List", | ||
properties: { | ||
property1: {$required: true, type: "string"}, | ||
property2: {type: "number", $dynamic: true, $deprecated: true}, | ||
property3: {type: "boolean", $dynamic: true}, | ||
property4: {type: "array", $dynamic: true, $deprecated: true}, | ||
property5: {type: "object", $deprecated: true}, | ||
property6: {type: "string"}, | ||
property7: {type: "number", $dynamic: true}, | ||
property8: {type: "boolean", $dynamic: true}, | ||
property9: {type: "array", $dynamic: true}, | ||
property10: {type: "object", $dynamic: true}, | ||
}, | ||
showDynamic: true, | ||
initiallyExpanded: false, | ||
}; |
84c2b57
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Storybook published on
https://internal.dev.kestra.io/ui-libs/master/storybook