Skip to content

Commit

Permalink
Add name of the widget in analytical framework
Browse files Browse the repository at this point in the history
  • Loading branch information
shreeyash07 authored and subinasr committed Jul 17, 2024
1 parent f5f259a commit 0f73420
Show file tree
Hide file tree
Showing 26 changed files with 103 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ function DateRangeWidgetForm(props: DateRangeWidgetFormProps) {
<Container
className={styles.container}
heading={value.title ?? 'Unnamed'}
headingDescription="(date range)"
headingContainerClassName={styles.headingDescription}
spacing="compact"
headerActions={(
<>
<Button
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
.date-range-widget-form {
.container {
background-color: var(--dui-color-foreground);

.heading-description {
color: var(--dui-color-accent);
font-weight: var(--dui-font-weight-bold);
}
}
.error,
.input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ function DateWidgetForm(props: DateWidgetFormProps) {
<Container
className={styles.container}
heading={value.title ?? 'Unnamed'}
headingDescription="(date)"
headingContainerClassName={styles.headingDescription}
spacing="compact"
headerActions={(
<>
<Button
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
.date-widget-form {
.container {
background-color: var(--dui-color-foreground);

.heading-description {
color: var(--dui-color-accent);
font-weight: var(--dui-font-weight-bold);
}
}
.error,
.input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ function GeoLocationWidgetForm(props: GeoLocationWidgetFormProps) {
<Container
className={styles.container}
heading={value.title ?? 'Unnamed'}
headingDescription="(geo location)"
headingContainerClassName={styles.headingDescription}
spacing="compact"
headerActions={(
<>
<Button
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
.geo-widget-form {
.container {
background-color: var(--dui-color-foreground);

.heading-description {
color: var(--dui-color-accent);
font-weight: var(--dui-font-weight-bold);
}
}
.error,
.input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,9 @@ function Matrix1dWidgetForm(props: Matrix1dWidgetFormProps) {
<Container
className={styles.container}
heading={value.title ?? 'Unnamed'}
headingDescription="(matrix 1d)"
spacing="compact"
headingContainerClassName={styles.headingDescription}
contentClassName={styles.editorContent}
withoutExternalPadding
ellipsizeHeading
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

.container {
background-color: var(--dui-color-foreground);

.heading-description {
color: var(--dui-color-accent);
font-weight: var(--dui-font-weight-bold);
}
}

.editor-content {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,9 @@ function Matrix2dWidgetForm(props: Matrix2dWidgetFormProps) {
<Container
className={styles.container}
heading={value.title ?? 'Unnamed'}
headingDescription="(matrix 2d)"
headingContainerClassName={styles.headingDescription}
spacing="compact"
contentClassName={styles.editorContent}
withoutExternalPadding
ellipsizeHeading
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

.container {
background-color: var(--dui-color-foreground);

.heading-description {
color: var(--dui-color-accent);
font-weight: var(--dui-font-weight-bold);
}
}

.container-content {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,9 @@ function MultiSelectWidgetForm(props: MultiSelectWidgetFormProps) {
<Container
className={styles.container}
heading={value.title ?? 'Unnamed'}
headingDescription="(multi select)"
spacing="compact"
headingContainerClassName={styles.headingDescription}
contentClassName={styles.editorContent}
headerActions={(
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

.container {
background-color: var(--dui-color-foreground);

.heading-description {
color: var(--dui-color-accent);
font-weight: var(--dui-font-weight-bold);
}
}

.error,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ function NumberWidgetForm(props: NumberWidgetFormProps) {
<Container
className={styles.container}
heading={value.title ?? 'Unnamed'}
headingDescription="(number)"
headingContainerClassName={styles.headingDescription}
spacing="compact"
headerActions={(
<>
<Button
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
.number-widget-form {
.container {
background-color: var(--dui-color-foreground);

.heading-description {
color: var(--dui-color-accent);
font-weight: var(--dui-font-weight-bold);
}
}
.error,
.input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,8 @@ function OrganigramWidgetForm(props: OrganigramWidgetFormProps) {
<Container
className={styles.container}
heading={value.title ?? 'Unnamed'}
headingDescription="(organigram)"
headingContainerClassName={styles.headingDescription}
spacing="compact"
headerActions={(
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
background-color: var(--dui-color-foreground);
overflow-y: auto;
gap: var(--dui-spacing-medium);

.heading-description {
color: var(--dui-color-accent);
font-weight: var(--dui-font-weight-bold);
}
}

.list-container {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,9 @@ function ScaleWidgetForm(props: ScaleWidgetFormProps) {
<Container
className={styles.container}
heading={value.title ?? 'Unnamed'}
headingDescription="(scale)"
headingContainerClassName={styles.headingDescription}
spacing="compact"
contentClassName={styles.editorContent}
headerActions={(
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

.container {
background-color: var(--dui-color-foreground);

.heading-description {
color: var(--dui-color-accent);
font-weight: var(--dui-font-weight-bold);
}
}

.error,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,10 @@ function SingleSelectWidgetForm(props: SingleSelectWidgetFormProps) {
<Container
className={styles.container}
heading={value.title ?? 'Unnamed'}
headingDescription="(single select)"
headingContainerClassName={styles.headingDescription}
contentClassName={styles.editorContent}
spacing="compact"
headerActions={(
<>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

.container {
background-color: var(--dui-color-foreground);

.heading-description {
color: var(--dui-color-accent);
font-weight: var(--dui-font-weight-bold);
}
}

.error,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ function TextWidgetForm(props: TextWidgetFormProps) {
<Container
className={styles.container}
heading={value.title ?? 'Unnamed'}
headingDescription="(text)"
headingContainerClassName={styles.headingDescription}
spacing="compact"
headerActions={(
<>
<Button
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
.text-widget-form {
.container {
background-color: var(--dui-color-foreground);

.heading-description {
color: var(--dui-color-accent);
font-weight: var(--dui-font-weight-bold);
}
}
.input {
margin: var(--dui-spacing-small) var(--dui-spacing-medium);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ function TimeRangeWidgetForm(props: TimeRangeWidgetFormProps) {
<Container
className={styles.container}
heading={value.title ?? 'Unnamed'}
headingDescription="(time range)"
headingContainerClassName={styles.headingDescription}
spacing="compact"
headerActions={(
<>
<Button
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
.time-range-widget-form {
.container {
background-color: var(--dui-color-foreground);

.heading-description {
color: var(--dui-color-accent);
font-weight: var(--dui-font-weight-bold);
}
}
.error,
.input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ function TimeWidgetForm(props: TimeWidgetFormProps) {
<Container
className={styles.container}
heading={value.title ?? 'Unnamed'}
headingDescription="(time)"
headingContainerClassName={styles.headingDescription}
spacing="compact"
headerActions={(
<>
<Button
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
.time-widget-form {
.container {
background-color: var(--dui-color-foreground);

.heading-description {
color: var(--dui-color-accent);
font-weight: var(--dui-font-weight-bold);
}
}
.error,
.input {
Expand Down

0 comments on commit 0f73420

Please sign in to comment.