-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Absorb extensions-renderers package (#43)
* chore: Install missing react dependencies * chore: Add SVGR and svg/module.css types * chore: Add CSS modules * chore: Adds SearchableSelect component * chore: Move adaptive card components to new folder * refactor: Update React import usage * chore: Brings across doist-card.css file * chore: Brings across utils * chore: Adds Action Renderers * chore: Adds card element renderers * chore: Adds input renderers * chore: Adds time-picker component * fix: Use default export for css module usage * feat: Set up ESM build * chore: Remove CommonJS module * chore: Bump version * chore: Fix CSS module and SVGR mocks * chore: Adds missing functions/registrations * chore: Update version * chore: Updates typescript and react types package * chore: Bump version * chore: Actually export the register function * chore: Remove pre-release versioning Co-authored-by: Scott Lovegrove <[email protected]>
- Loading branch information
1 parent
e6ebf11
commit 2a90d89
Showing
35 changed files
with
3,459 additions
and
1,561 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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,9 @@ | ||
declare module '*.module.css' { | ||
interface IClassNames { | ||
[className: string]: string | ||
} | ||
|
||
const classNames: IClassNames | ||
|
||
export = classNames | ||
} |
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,7 @@ | ||
declare module '*.svg' { | ||
import { FC, ComponentProps } from 'react' | ||
|
||
const SVG: FC<ComponentProps<'svg'>> | ||
|
||
export = SVG | ||
} |
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
File renamed without changes.
8 changes: 3 additions & 5 deletions
8
.../components/AdaptiveCardRenderer.test.tsx → ...aptive-card/AdaptiveCardRenderer.test.tsx
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
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
2 changes: 2 additions & 0 deletions
2
packages/ui-extensions-react/src/components/adaptive-card/index.ts
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,2 @@ | ||
export * from './AdaptiveCardCanvas' | ||
export * from './AdaptiveCardRenderer' |
86 changes: 86 additions & 0 deletions
86
packages/ui-extensions-react/src/components/doist-card.css
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,86 @@ | ||
:root { | ||
--doist-card-color: rgba(0, 0, 0, 0.88); | ||
--doist-card-background: rgb(255, 255, 255); | ||
|
||
--doist-card-error-color: red; | ||
} | ||
|
||
.adaptive-card-container { | ||
white-space: normal; | ||
|
||
overflow: auto; | ||
position: relative; | ||
} | ||
|
||
.adaptive-card-container option { | ||
color: var(--doist-card-color) !important; | ||
background: var(--doist-card-background); | ||
} | ||
|
||
.adaptive-card-content { | ||
white-space: normal; | ||
|
||
overflow: auto; | ||
position: relative; | ||
height: inherit; | ||
margin: 0 auto; | ||
box-sizing: border-box; | ||
} | ||
|
||
.adaptive-card-content option { | ||
color: var(--doist-card-color) !important; | ||
background: var(--doist-card-background); | ||
} | ||
|
||
.adaptive-card-content p { | ||
margin-bottom: var(--reactist-spacing-medium); | ||
} | ||
|
||
.adaptive-renderer-container { | ||
position: relative; | ||
height: inherit; | ||
overflow: auto; | ||
} | ||
|
||
.input-inline-button { | ||
margin-left: 0; | ||
white-space: nowrap; | ||
} | ||
|
||
.ac-input-container { | ||
width: 100%; | ||
} | ||
|
||
.ac-error { | ||
margin-left: auto; | ||
margin-right: auto; | ||
margin-top: auto; | ||
margin-bottom: auto; | ||
color: var(--doist-card-error-color); | ||
} | ||
|
||
.ac-anchor__attention { | ||
text-decoration: underline; | ||
color: var(--reactist-actionable-destructive-idle-fill); | ||
} | ||
|
||
.ac-anchor__attention:hover { | ||
text-decoration: underline; | ||
color: var(--reactist-actionable-destructive-hover-fill); | ||
} | ||
|
||
.ac-selectable { | ||
cursor: pointer; | ||
} | ||
|
||
.ac-action-stretch { | ||
width: 100%; | ||
} | ||
|
||
.ac-adaptiveCard { | ||
padding: 0 !important; | ||
} | ||
|
||
.ac-textarea { | ||
resize: vertical; | ||
} |
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
export * from './AdaptiveCardCanvas' | ||
export * from './AdaptiveCardRenderer' | ||
import './doist-card.css' | ||
|
||
export * from './adaptive-card' | ||
export * from './searchable-select' | ||
export * from './time-picker' |
1 change: 1 addition & 0 deletions
1
packages/ui-extensions-react/src/components/searchable-select/index.ts
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 @@ | ||
export * from './searchable-select' |
Oops, something went wrong.