@ni/spright-components 6.2.0 → 6.3.0
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/dist/all-components-bundle.js +53 -8
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +66 -32
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/chat/conversation/index.d.ts +1 -0
- package/dist/esm/chat/conversation/index.js +6 -1
- package/dist/esm/chat/conversation/index.js.map +1 -1
- package/dist/esm/chat/conversation/styles.js +9 -0
- package/dist/esm/chat/conversation/styles.js.map +1 -1
- package/dist/esm/chat/conversation/types.d.ts +9 -0
- package/dist/esm/chat/conversation/types.js +9 -0
- package/dist/esm/chat/conversation/types.js.map +1 -0
- package/dist/esm/chat/input/styles.js +34 -9
- package/dist/esm/chat/input/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -93780,6 +93780,11 @@ focus outline in that case.
|
|
|
93780
93780
|
border: ${borderWidth} solid ${applicationBackgroundColor};
|
|
93781
93781
|
}
|
|
93782
93782
|
|
|
93783
|
+
:host([appearance='overlay']) {
|
|
93784
|
+
background: none;
|
|
93785
|
+
border-color: transparent;
|
|
93786
|
+
}
|
|
93787
|
+
|
|
93783
93788
|
.messages {
|
|
93784
93789
|
flex: 1;
|
|
93785
93790
|
display: flex;
|
|
@@ -93792,6 +93797,10 @@ focus outline in that case.
|
|
|
93792
93797
|
overflow-y: auto;
|
|
93793
93798
|
}
|
|
93794
93799
|
|
|
93800
|
+
:host([appearance='overlay']) .messages {
|
|
93801
|
+
background: none;
|
|
93802
|
+
}
|
|
93803
|
+
|
|
93795
93804
|
.input {
|
|
93796
93805
|
padding: ${borderWidth} ${standardPadding} ${standardPadding}
|
|
93797
93806
|
${standardPadding};
|
|
@@ -93813,12 +93822,20 @@ focus outline in that case.
|
|
|
93813
93822
|
`;
|
|
93814
93823
|
/* eslint-enable @typescript-eslint/indent */
|
|
93815
93824
|
|
|
93825
|
+
/**
|
|
93826
|
+
* Appearances of chat conversation.
|
|
93827
|
+
* @public
|
|
93828
|
+
*/
|
|
93829
|
+
const ChatConversationAppearance = {
|
|
93830
|
+
default: undefined};
|
|
93831
|
+
|
|
93816
93832
|
/**
|
|
93817
93833
|
* A Spright component for displaying a series of chat messages
|
|
93818
93834
|
*/
|
|
93819
93835
|
class ChatConversation extends FoundationElement {
|
|
93820
93836
|
constructor() {
|
|
93821
93837
|
super(...arguments);
|
|
93838
|
+
this.appearance = ChatConversationAppearance.default;
|
|
93822
93839
|
/** @internal */
|
|
93823
93840
|
this.inputEmpty = true;
|
|
93824
93841
|
}
|
|
@@ -93826,6 +93843,9 @@ focus outline in that case.
|
|
|
93826
93843
|
this.inputEmpty = !next?.length;
|
|
93827
93844
|
}
|
|
93828
93845
|
}
|
|
93846
|
+
__decorate([
|
|
93847
|
+
attr
|
|
93848
|
+
], ChatConversation.prototype, "appearance", void 0);
|
|
93829
93849
|
__decorate([
|
|
93830
93850
|
observable
|
|
93831
93851
|
], ChatConversation.prototype, "inputEmpty", void 0);
|
|
@@ -93847,12 +93867,14 @@ focus outline in that case.
|
|
|
93847
93867
|
:host {
|
|
93848
93868
|
width: 100%;
|
|
93849
93869
|
height: auto;
|
|
93870
|
+
outline: none;
|
|
93871
|
+
--ni-private-hover-indicator-width: calc(${borderWidth} + 1px);
|
|
93850
93872
|
}
|
|
93851
93873
|
|
|
93852
93874
|
.container {
|
|
93853
|
-
display:
|
|
93854
|
-
|
|
93855
|
-
|
|
93875
|
+
display: flex;
|
|
93876
|
+
flex-direction: column;
|
|
93877
|
+
position: relative;
|
|
93856
93878
|
width: 100%;
|
|
93857
93879
|
height: 100%;
|
|
93858
93880
|
|
|
@@ -93861,10 +93883,34 @@ focus outline in that case.
|
|
|
93861
93883
|
box-shadow: ${elevation2BoxShadow};
|
|
93862
93884
|
}
|
|
93863
93885
|
|
|
93864
|
-
|
|
93865
|
-
|
|
93866
|
-
|
|
93886
|
+
.container::after {
|
|
93887
|
+
content: '';
|
|
93888
|
+
position: absolute;
|
|
93889
|
+
bottom: calc(-1 * ${borderWidth});
|
|
93890
|
+
width: 0px;
|
|
93891
|
+
height: 0px;
|
|
93892
|
+
align-self: center;
|
|
93893
|
+
border-bottom: ${borderHoverColor}
|
|
93894
|
+
var(--ni-private-hover-indicator-width) solid;
|
|
93895
|
+
transition: width ${smallDelay} ease-in;
|
|
93896
|
+
}
|
|
93897
|
+
|
|
93898
|
+
:host(:hover) .container::after {
|
|
93899
|
+
width: 100%;
|
|
93900
|
+
transition: width ${smallDelay} ease-in;
|
|
93901
|
+
}
|
|
93902
|
+
|
|
93903
|
+
:host(:focus-within) .container {
|
|
93904
|
+
border-bottom-color: ${borderHoverColor};
|
|
93905
|
+
}
|
|
93906
|
+
|
|
93907
|
+
@media (prefers-reduced-motion) {
|
|
93908
|
+
.container::after {
|
|
93909
|
+
transition-duration: 0s;
|
|
93910
|
+
}
|
|
93911
|
+
}
|
|
93867
93912
|
|
|
93913
|
+
textarea {
|
|
93868
93914
|
font: ${bodyFont};
|
|
93869
93915
|
color: ${bodyFontColor};
|
|
93870
93916
|
background-color: transparent;
|
|
@@ -93885,8 +93931,7 @@ focus outline in that case.
|
|
|
93885
93931
|
}
|
|
93886
93932
|
|
|
93887
93933
|
.send-button {
|
|
93888
|
-
|
|
93889
|
-
grid-column: 2;
|
|
93934
|
+
align-self: flex-end;
|
|
93890
93935
|
width: 80px;
|
|
93891
93936
|
margin: ${mediumPadding};
|
|
93892
93937
|
}
|