@anker-in/headless-ui 1.3.84 → 1.3.86
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/README.md +6 -0
- package/dist/cjs/biz-components/AccordionCards/index.js +1 -1
- package/dist/cjs/biz-components/ActiveShelf/ProductCard.d.ts +4 -3
- package/dist/cjs/biz-components/ActiveShelf/ProductCard.js +1 -1
- package/dist/cjs/biz-components/ActiveShelf/index.js +1 -1
- package/dist/cjs/biz-components/ActivityMechanism/index.d.ts +4 -7
- package/dist/cjs/biz-components/ActivityMechanism/index.js +1 -1
- package/dist/cjs/biz-components/ActivitySchedule/index.js +1 -1
- package/dist/cjs/biz-components/AiuiProvider/index.js +1 -1
- package/dist/cjs/biz-components/AnchorNavigation/index.js +1 -1
- package/dist/cjs/biz-components/BrandCardLink/BrandCardLink.js +1 -1
- package/dist/cjs/biz-components/BuyOneGetOneShelf/FreeGiftItem.d.ts +2 -0
- package/dist/cjs/biz-components/BuyOneGetOneShelf/FreeGiftItem.js +1 -1
- package/dist/cjs/biz-components/BuyOneGetOneShelf/GiftSelection.d.ts +2 -0
- package/dist/cjs/biz-components/BuyOneGetOneShelf/GiftSelection.js +1 -1
- package/dist/cjs/biz-components/BuyOneGetOneShelf/PriceAndActions.d.ts +2 -0
- package/dist/cjs/biz-components/BuyOneGetOneShelf/PriceAndActions.js +1 -1
- package/dist/cjs/biz-components/BuyOneGetOneShelf/ProductCard.d.ts +2 -0
- package/dist/cjs/biz-components/BuyOneGetOneShelf/ProductCard.js +1 -1
- package/dist/cjs/biz-components/BuyOneGetOneShelf/ProductImage.d.ts +4 -0
- package/dist/cjs/biz-components/BuyOneGetOneShelf/ProductImage.js +1 -1
- package/dist/cjs/biz-components/BuyOneGetOneShelf/ProductInfo.d.ts +2 -0
- package/dist/cjs/biz-components/BuyOneGetOneShelf/ProductInfo.js +1 -1
- package/dist/cjs/biz-components/BuyOneGetOneShelf/index.js +1 -1
- package/dist/cjs/biz-components/BuyOneGetOneShelf/tracking.d.ts +20 -0
- package/dist/cjs/biz-components/BuyOneGetOneShelf/tracking.js +1 -0
- package/dist/cjs/biz-components/BuyOneGetOneShelf/types.d.ts +2 -0
- package/dist/cjs/biz-components/Category/index.d.ts +4 -2
- package/dist/cjs/biz-components/Category/index.js +1 -1
- package/dist/cjs/biz-components/Chat/action.d.ts +25 -0
- package/dist/cjs/biz-components/Chat/action.js +1 -0
- package/dist/cjs/biz-components/Chat/button.d.ts +3 -0
- package/dist/cjs/biz-components/Chat/button.js +1 -0
- package/dist/cjs/biz-components/Chat/chatContext.d.ts +101 -0
- package/dist/cjs/biz-components/Chat/chatContext.js +1 -0
- package/dist/cjs/biz-components/Chat/exports.d.ts +3 -0
- package/dist/cjs/biz-components/Chat/exports.js +1 -0
- package/dist/cjs/biz-components/Chat/helpers/fetchResponse.d.ts +14 -0
- package/dist/cjs/biz-components/Chat/helpers/fetchResponse.js +1 -0
- package/dist/cjs/biz-components/Chat/helpers/fetcher.d.ts +2 -0
- package/dist/cjs/biz-components/Chat/helpers/fetcher.js +1 -0
- package/dist/cjs/biz-components/Chat/index.d.ts +71 -0
- package/dist/cjs/biz-components/Chat/index.js +1 -0
- package/dist/cjs/biz-components/Chat/markdown.d.ts +5 -0
- package/dist/cjs/biz-components/Chat/markdown.js +1 -0
- package/dist/cjs/biz-components/Chat/messages.d.ts +3 -0
- package/dist/cjs/biz-components/Chat/messages.js +1 -0
- package/dist/cjs/biz-components/Chat/props.d.ts +43 -0
- package/dist/cjs/biz-components/Chat/props.js +1 -0
- package/dist/cjs/biz-components/Chat/response.d.ts +4 -0
- package/dist/cjs/biz-components/Chat/response.js +1 -0
- package/dist/cjs/biz-components/Chat/suggestions.d.ts +3 -0
- package/dist/cjs/biz-components/Chat/suggestions.js +1 -0
- package/dist/cjs/biz-components/Chat/utils.d.ts +3 -0
- package/dist/cjs/biz-components/Chat/utils.js +1 -0
- package/dist/cjs/biz-components/Evaluate/index.js +1 -1
- package/dist/cjs/biz-components/EventSchedule/index.js +1 -1
- package/dist/cjs/biz-components/Faq/Faq.d.ts +3 -1
- package/dist/cjs/biz-components/Faq/Faq.js +2 -2
- package/dist/cjs/biz-components/FeatureCards/FeatureCards.js +1 -1
- package/dist/cjs/biz-components/GiftShelf/index.js +1 -1
- package/dist/cjs/biz-components/GiftTierShelf/index.js +1 -1
- package/dist/cjs/biz-components/Graphic/index.js +1 -1
- package/dist/cjs/biz-components/GraphicOverlay/GraphicOverlay.js +1 -1
- package/dist/cjs/biz-components/HeroBanner/HeroBanner.js +1 -1
- package/dist/cjs/biz-components/HeroBanner/HeroBannerCarousel.js +1 -1
- package/dist/cjs/biz-components/ImageWithText/ImageWithText.js +1 -1
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGridBox.js +1 -1
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +1 -1
- package/dist/cjs/biz-components/MediaPlayerMulti/index.js +1 -1
- package/dist/cjs/biz-components/MemberEquity/index.js +2 -2
- package/dist/cjs/biz-components/MiniCart/index.js +1 -1
- package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js +1 -1
- package/dist/cjs/biz-components/ProductHero/ProductHero.js +1 -1
- package/dist/cjs/biz-components/ProductNav/ProductNav.js +1 -1
- package/dist/cjs/biz-components/PromotionalBar/index.d.ts +3 -2
- package/dist/cjs/biz-components/PromotionalBar/index.js +1 -1
- package/dist/cjs/biz-components/SceneShelf/ProductCard.js +1 -1
- package/dist/cjs/biz-components/SceneShelf/ProductsPanel.js +1 -1
- package/dist/cjs/biz-components/SceneShelf/Root.js +1 -1
- package/dist/cjs/biz-components/SceneShelf/context.d.ts +11 -1
- package/dist/cjs/biz-components/SceneShelf/context.js +1 -1
- package/dist/cjs/biz-components/SceneShelf/types.d.ts +5 -0
- package/dist/cjs/biz-components/SearchPage/index.js +1 -1
- package/dist/cjs/biz-components/SecondaryBanner/index.js +1 -1
- package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js +1 -1
- package/dist/cjs/biz-components/ThreeDCarousel/ThreeDCarousel.js +1 -1
- package/dist/cjs/biz-components/Title/index.js +1 -1
- package/dist/cjs/components/container.js +1 -1
- package/dist/cjs/helpers/utils.js +1 -1
- package/dist/cjs/shared/track.d.ts +13 -7
- package/dist/cjs/shared/track.js +1 -1
- package/dist/esm/biz-components/AccordionCards/index.js +1 -1
- package/dist/esm/biz-components/ActiveShelf/ProductCard.d.ts +4 -3
- package/dist/esm/biz-components/ActiveShelf/ProductCard.js +1 -1
- package/dist/esm/biz-components/ActiveShelf/index.js +1 -1
- package/dist/esm/biz-components/ActivityMechanism/index.d.ts +4 -7
- package/dist/esm/biz-components/ActivityMechanism/index.js +1 -1
- package/dist/esm/biz-components/ActivitySchedule/index.js +1 -1
- package/dist/esm/biz-components/AiuiProvider/index.js +1 -1
- package/dist/esm/biz-components/AnchorNavigation/index.js +1 -1
- package/dist/esm/biz-components/BrandCardLink/BrandCardLink.js +1 -1
- package/dist/esm/biz-components/BuyOneGetOneShelf/FreeGiftItem.d.ts +2 -0
- package/dist/esm/biz-components/BuyOneGetOneShelf/FreeGiftItem.js +1 -1
- package/dist/esm/biz-components/BuyOneGetOneShelf/GiftSelection.d.ts +2 -0
- package/dist/esm/biz-components/BuyOneGetOneShelf/GiftSelection.js +1 -1
- package/dist/esm/biz-components/BuyOneGetOneShelf/PriceAndActions.d.ts +2 -0
- package/dist/esm/biz-components/BuyOneGetOneShelf/PriceAndActions.js +1 -1
- package/dist/esm/biz-components/BuyOneGetOneShelf/ProductCard.d.ts +2 -0
- package/dist/esm/biz-components/BuyOneGetOneShelf/ProductCard.js +1 -1
- package/dist/esm/biz-components/BuyOneGetOneShelf/ProductImage.d.ts +4 -0
- package/dist/esm/biz-components/BuyOneGetOneShelf/ProductImage.js +1 -1
- package/dist/esm/biz-components/BuyOneGetOneShelf/ProductInfo.d.ts +2 -0
- package/dist/esm/biz-components/BuyOneGetOneShelf/ProductInfo.js +1 -1
- package/dist/esm/biz-components/BuyOneGetOneShelf/index.js +1 -1
- package/dist/esm/biz-components/BuyOneGetOneShelf/tracking.d.ts +20 -0
- package/dist/esm/biz-components/BuyOneGetOneShelf/tracking.js +1 -0
- package/dist/esm/biz-components/BuyOneGetOneShelf/types.d.ts +2 -0
- package/dist/esm/biz-components/Category/index.d.ts +4 -2
- package/dist/esm/biz-components/Category/index.js +1 -1
- package/dist/esm/biz-components/Chat/action.d.ts +25 -0
- package/dist/esm/biz-components/Chat/action.js +1 -0
- package/dist/esm/biz-components/Chat/button.d.ts +3 -0
- package/dist/esm/biz-components/Chat/button.js +1 -0
- package/dist/esm/biz-components/Chat/chatContext.d.ts +101 -0
- package/dist/esm/biz-components/Chat/chatContext.js +1 -0
- package/dist/esm/biz-components/Chat/exports.d.ts +3 -0
- package/dist/esm/biz-components/Chat/exports.js +1 -0
- package/dist/esm/biz-components/Chat/helpers/fetchResponse.d.ts +14 -0
- package/dist/esm/biz-components/Chat/helpers/fetchResponse.js +1 -0
- package/dist/esm/biz-components/Chat/helpers/fetcher.d.ts +2 -0
- package/dist/esm/biz-components/Chat/helpers/fetcher.js +1 -0
- package/dist/esm/biz-components/Chat/index.d.ts +71 -0
- package/dist/esm/biz-components/Chat/index.js +1 -0
- package/dist/esm/biz-components/Chat/markdown.d.ts +5 -0
- package/dist/esm/biz-components/Chat/markdown.js +1 -0
- package/dist/esm/biz-components/Chat/messages.d.ts +3 -0
- package/dist/esm/biz-components/Chat/messages.js +1 -0
- package/dist/esm/biz-components/Chat/props.d.ts +43 -0
- package/dist/esm/biz-components/Chat/props.js +1 -0
- package/dist/esm/biz-components/Chat/response.d.ts +4 -0
- package/dist/esm/biz-components/Chat/response.js +1 -0
- package/dist/esm/biz-components/Chat/suggestions.d.ts +3 -0
- package/dist/esm/biz-components/Chat/suggestions.js +1 -0
- package/dist/esm/biz-components/Chat/utils.d.ts +3 -0
- package/dist/esm/biz-components/Chat/utils.js +1 -0
- package/dist/esm/biz-components/Evaluate/index.js +1 -1
- package/dist/esm/biz-components/EventSchedule/index.js +1 -1
- package/dist/esm/biz-components/Faq/Faq.d.ts +3 -1
- package/dist/esm/biz-components/Faq/Faq.js +2 -2
- package/dist/esm/biz-components/FeatureCards/FeatureCards.js +1 -1
- package/dist/esm/biz-components/GiftShelf/index.js +1 -1
- package/dist/esm/biz-components/GiftTierShelf/index.js +1 -1
- package/dist/esm/biz-components/Graphic/index.js +1 -1
- package/dist/esm/biz-components/GraphicOverlay/GraphicOverlay.js +1 -1
- package/dist/esm/biz-components/HeroBanner/HeroBanner.js +1 -1
- package/dist/esm/biz-components/HeroBanner/HeroBannerCarousel.js +1 -1
- package/dist/esm/biz-components/ImageWithText/ImageWithText.js +1 -1
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.js +1 -1
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +1 -1
- package/dist/esm/biz-components/MediaPlayerMulti/index.js +1 -1
- package/dist/esm/biz-components/MemberEquity/index.js +2 -2
- package/dist/esm/biz-components/MiniCart/index.js +1 -1
- package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js +1 -1
- package/dist/esm/biz-components/ProductHero/ProductHero.js +1 -1
- package/dist/esm/biz-components/ProductNav/ProductNav.js +1 -1
- package/dist/esm/biz-components/PromotionalBar/index.d.ts +3 -2
- package/dist/esm/biz-components/PromotionalBar/index.js +1 -1
- package/dist/esm/biz-components/SceneShelf/ProductCard.js +1 -1
- package/dist/esm/biz-components/SceneShelf/ProductsPanel.js +1 -1
- package/dist/esm/biz-components/SceneShelf/Root.js +1 -1
- package/dist/esm/biz-components/SceneShelf/context.d.ts +11 -1
- package/dist/esm/biz-components/SceneShelf/context.js +1 -1
- package/dist/esm/biz-components/SceneShelf/types.d.ts +5 -0
- package/dist/esm/biz-components/SearchPage/index.js +1 -1
- package/dist/esm/biz-components/SecondaryBanner/index.js +1 -1
- package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js +1 -1
- package/dist/esm/biz-components/ThreeDCarousel/ThreeDCarousel.js +1 -1
- package/dist/esm/biz-components/Title/index.js +1 -1
- package/dist/esm/components/container.js +1 -1
- package/dist/esm/helpers/utils.js +1 -1
- package/dist/esm/shared/track.d.ts +13 -7
- package/dist/esm/shared/track.js +1 -1
- package/dist/tokens/base.css +48 -0
- package/package.json +50 -3
- package/src/biz-components/Chat/styles/chat.css +14 -0
- package/src/biz-components/Chat/styles/css/animations.css +35 -0
- package/src/biz-components/Chat/styles/css/button.css +56 -0
- package/src/biz-components/Chat/styles/css/colors.css +12 -0
- package/src/biz-components/Chat/styles/css/console.css +134 -0
- package/src/biz-components/Chat/styles/css/header.css +43 -0
- package/src/biz-components/Chat/styles/css/input.css +89 -0
- package/src/biz-components/Chat/styles/css/markdown.css +131 -0
- package/src/biz-components/Chat/styles/css/messages.css +85 -0
- package/src/biz-components/Chat/styles/css/panel.css +23 -0
- package/src/biz-components/Chat/styles/css/popup.css +44 -0
- package/src/biz-components/Chat/styles/css/response.css +25 -0
- package/src/biz-components/Chat/styles/css/sidebar.css +31 -0
- package/src/biz-components/Chat/styles/css/suggestions.css +36 -0
- package/src/biz-components/Chat/styles/css/window.css +60 -0
- package/src/biz-components/Chat/styles/image.png +0 -0
- package/style.css +9 -12
- package/tailwind.config.js +3 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
html {
|
|
2
|
+
--copilot-kit-primary-color: rgb(59 130 246);
|
|
3
|
+
--copilot-kit-contrast-color: rgb(255 255 255);
|
|
4
|
+
--copilot-kit-secondary-color: rgb(243 244 246);
|
|
5
|
+
--copilot-kit-secondary-contrast-color: rgb(0 0 0);
|
|
6
|
+
--copilot-kit-background-color: rgb(255 255 255);
|
|
7
|
+
--copilot-kit-muted-color: rgb(106 106 106);
|
|
8
|
+
--copilot-kit-separator-color: rgba(0, 0, 0, 0.08);
|
|
9
|
+
--copilot-kit-scrollbar-color: rgba(0, 0, 0, 0.2);
|
|
10
|
+
--copilot-kit-response-button-color: #333;
|
|
11
|
+
--copilot-kit-response-button-background-color: #fff;
|
|
12
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
.copilotKitDevConsole {
|
|
2
|
+
background-color: #f3f4f6;
|
|
3
|
+
padding-left: 10px;
|
|
4
|
+
padding-right: 10px;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
border-bottom: 1px solid #cecece;
|
|
8
|
+
padding-top: 10px;
|
|
9
|
+
padding-bottom: 10px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.copilotKitDevConsole.copilotKitDevConsoleWarnOutdated {
|
|
13
|
+
background-color: #f9caca;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.copilotKitDevConsole .copilotKitVersionInfo {
|
|
17
|
+
flex: 1;
|
|
18
|
+
margin-left: 18px;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
gap: 2px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.copilotKitDevConsole .copilotKitVersionInfo header {
|
|
25
|
+
font-size: 11px;
|
|
26
|
+
font-weight: bold;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.copilotKitDevConsole .copilotKitVersionInfo footer {
|
|
30
|
+
margin-top: 10px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.copilotKitDevConsole .copilotKitVersionInfo footer button {
|
|
34
|
+
font-size: 11px;
|
|
35
|
+
font-weight: normal;
|
|
36
|
+
font-family: monospace;
|
|
37
|
+
background-color: white;
|
|
38
|
+
border: 1px solid #979797;
|
|
39
|
+
padding: 1px 12px;
|
|
40
|
+
padding-left: 5px;
|
|
41
|
+
border-radius: 4px;
|
|
42
|
+
display: inline-block;
|
|
43
|
+
text-align: left;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
width: 260px;
|
|
47
|
+
text-overflow: ellipsis;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.copilotKitDevConsole .copilotKitVersionInfo header aside {
|
|
51
|
+
display: inline;
|
|
52
|
+
font-weight: normal;
|
|
53
|
+
color: #7f7a7a;
|
|
54
|
+
margin-left: 5px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.copilotKitDevConsole .copilotKitVersionInfo section {
|
|
58
|
+
font-size: 11px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.copilotKitDevConsole .copilotKitVersionInfo section svg {
|
|
62
|
+
margin-left: 3px;
|
|
63
|
+
margin-top: -3px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.copilotKitDevConsole .copilotKitDebugMenuButton {
|
|
67
|
+
font-size: 11px;
|
|
68
|
+
font-weight: bold;
|
|
69
|
+
display: flex;
|
|
70
|
+
width: 90px;
|
|
71
|
+
height: 30px;
|
|
72
|
+
background-color: #d8d8d8;
|
|
73
|
+
border: 1px solid #979797;
|
|
74
|
+
border-radius: 6px;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
outline: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.copilotKitDebugMenuButton.compact {
|
|
81
|
+
width: 35px;
|
|
82
|
+
color: black;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
outline: none;
|
|
85
|
+
font-size: 8px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.copilotKitDevConsole .copilotKitDebugMenuButton:hover {
|
|
89
|
+
background-color: #c7c7c7;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.copilotKitDevConsole .copilotKitDebugMenuButton > svg {
|
|
93
|
+
margin-left: 10px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.copilotKitDebugMenu {
|
|
97
|
+
background-color: #d8d8d8;
|
|
98
|
+
margin-top: 2px;
|
|
99
|
+
border-radius: 6px;
|
|
100
|
+
border: 1px solid #979797;
|
|
101
|
+
padding: 0.25rem;
|
|
102
|
+
outline: none;
|
|
103
|
+
font-size: 13px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.copilotKitDebugMenuItem {
|
|
107
|
+
padding-top: 3px;
|
|
108
|
+
padding-bottom: 3px;
|
|
109
|
+
padding-left: 10px;
|
|
110
|
+
padding-right: 10px;
|
|
111
|
+
display: block;
|
|
112
|
+
width: 100%;
|
|
113
|
+
text-align: left;
|
|
114
|
+
background: none;
|
|
115
|
+
border: none;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.copilotKitDebugMenuItem:hover {
|
|
120
|
+
background-color: #c7c7c7;
|
|
121
|
+
border-radius: 4px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.copilotKitDebugMenu[data-closed] {
|
|
125
|
+
transform: scale(0.95); /* data-[closed]:scale-95 */
|
|
126
|
+
opacity: 0; /* data-[closed]:opacity-0 */
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.copilotKitDebugMenu hr {
|
|
130
|
+
height: 1px;
|
|
131
|
+
border: none; /* Remove 3D look */
|
|
132
|
+
background-color: #979797; /* Set color */
|
|
133
|
+
margin: 0.25rem;
|
|
134
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.copilotKitHeader {
|
|
2
|
+
height: 56px;
|
|
3
|
+
font-weight: 500;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
position: relative;
|
|
8
|
+
background-color: var(--copilot-kit-primary-color);
|
|
9
|
+
color: var(--copilot-kit-contrast-color);
|
|
10
|
+
border-top-left-radius: 0;
|
|
11
|
+
border-top-right-radius: 0;
|
|
12
|
+
border-bottom: 1px solid var(--copilot-kit-separator-color);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.copilotKitSidebar .copilotKitHeader {
|
|
16
|
+
border-radius: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (min-width: 640px) {
|
|
20
|
+
.copilotKitHeader {
|
|
21
|
+
padding-left: 24px;
|
|
22
|
+
padding-right: 24px;
|
|
23
|
+
border-top-left-radius: 8px;
|
|
24
|
+
border-top-right-radius: 8px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.copilotKitHeader > button {
|
|
29
|
+
border: 0;
|
|
30
|
+
padding: 0px;
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: 50%;
|
|
33
|
+
right: 16px;
|
|
34
|
+
transform: translateY(-50%);
|
|
35
|
+
outline: none;
|
|
36
|
+
color: var(--copilot-kit-contrast-color);
|
|
37
|
+
background-color: transparent;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.copilotKitHeader > button:focus {
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
.copilotKitInput {
|
|
2
|
+
border-top: 1px solid var(--copilot-kit-separator-color);
|
|
3
|
+
padding-left: 2rem;
|
|
4
|
+
padding-right: 1rem;
|
|
5
|
+
padding-top: 1rem;
|
|
6
|
+
padding-bottom: 1rem;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
cursor: text;
|
|
10
|
+
position: relative;
|
|
11
|
+
border-bottom-left-radius: 0.75rem;
|
|
12
|
+
border-bottom-right-radius: 0.75rem;
|
|
13
|
+
background-color: var(--copilot-kit-background-color);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.copilotKitInput > .copilotKitInputControls > button {
|
|
17
|
+
padding: 0.25rem;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
transition-property: transform;
|
|
20
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
21
|
+
transition-duration: 200ms;
|
|
22
|
+
transform: scale(1);
|
|
23
|
+
color: rgba(0, 0, 0, 0.25);
|
|
24
|
+
-webkit-appearance: button;
|
|
25
|
+
appearance: button;
|
|
26
|
+
background-color: transparent;
|
|
27
|
+
background-image: none;
|
|
28
|
+
text-transform: none;
|
|
29
|
+
font-family: inherit;
|
|
30
|
+
font-size: 100%;
|
|
31
|
+
font-weight: inherit;
|
|
32
|
+
line-height: inherit;
|
|
33
|
+
border: 0;
|
|
34
|
+
margin: 0;
|
|
35
|
+
text-indent: 0px;
|
|
36
|
+
text-shadow: none;
|
|
37
|
+
display: inline-block;
|
|
38
|
+
text-align: center;
|
|
39
|
+
margin-left: 0.5rem; /* Add margin to separate button from textarea */
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.copilotKitInput > .copilotKitInputControls > button:not([disabled]) {
|
|
43
|
+
color: var(--copilot-kit-primary-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.copilotKitInput > .copilotKitInputControls > button:not([disabled]):hover {
|
|
47
|
+
transform: scale(1.1);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.copilotKitInput > .copilotKitInputControls > button[disabled] {
|
|
51
|
+
color: var(--copilot-kit-muted-color);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.copilotKitInputControls {
|
|
55
|
+
display: flex;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.copilotKitInput > textarea {
|
|
59
|
+
flex: 1; /* Allow textarea to take up remaining space */
|
|
60
|
+
outline: 2px solid transparent;
|
|
61
|
+
outline-offset: 2px;
|
|
62
|
+
resize: none;
|
|
63
|
+
white-space: pre-wrap;
|
|
64
|
+
overflow-wrap: break-word;
|
|
65
|
+
-webkit-font-smoothing: antialiased;
|
|
66
|
+
-moz-osx-font-smoothing: grayscale;
|
|
67
|
+
cursor: text;
|
|
68
|
+
font-size: 0.875rem;
|
|
69
|
+
line-height: 1.25rem;
|
|
70
|
+
margin: 0;
|
|
71
|
+
padding: 0;
|
|
72
|
+
font-family: inherit;
|
|
73
|
+
font-weight: inherit;
|
|
74
|
+
color: var(--copilot-kit-secondary-contrast-color);
|
|
75
|
+
border: 0px;
|
|
76
|
+
background-color: var(--copilot-kit-background-color);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.copilotKitInput > textarea::placeholder {
|
|
80
|
+
color: var(--copilot-kit-muted-color);
|
|
81
|
+
opacity: 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.copilotKitInput > .copilotKitInputControls > button.copilotKitPushToTalkRecording {
|
|
85
|
+
background-color: red;
|
|
86
|
+
color: white;
|
|
87
|
+
border-radius: 50%;
|
|
88
|
+
animation: copilotKitPulseAnimation 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
89
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
.copilotKitMarkdown h1,
|
|
2
|
+
.copilotKitMarkdown h2,
|
|
3
|
+
.copilotKitMarkdown h3,
|
|
4
|
+
.copilotKitMarkdown h4,
|
|
5
|
+
.copilotKitMarkdown h5,
|
|
6
|
+
.copilotKitMarkdown h6 {
|
|
7
|
+
font-weight: bold;
|
|
8
|
+
line-height: 1.2;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.copilotKitMarkdown h1:not(:last-child),
|
|
12
|
+
.copilotKitMarkdown h2:not(:last-child),
|
|
13
|
+
.copilotKitMarkdown h3:not(:last-child),
|
|
14
|
+
.copilotKitMarkdown h4:not(:last-child),
|
|
15
|
+
.copilotKitMarkdown h5:not(:last-child),
|
|
16
|
+
.copilotKitMarkdown h6:not(:last-child) {
|
|
17
|
+
margin-bottom: 1rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.copilotKitMarkdown h1 {
|
|
21
|
+
font-size: 1.5em;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.copilotKitMarkdown h2 {
|
|
25
|
+
font-size: 1.25em;
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.copilotKitMarkdown h3 {
|
|
30
|
+
font-size: 1.1em;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.copilotKitMarkdown h4 {
|
|
34
|
+
font-size: 1em;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.copilotKitMarkdown h5 {
|
|
38
|
+
font-size: 0.9em;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.copilotKitMarkdown h6 {
|
|
42
|
+
font-size: 0.8em;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.copilotKitMarkdown p:not(:last-child) {
|
|
46
|
+
margin-bottom: 1.25em;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.copilotKitMarkdown pre:not(:last-child) {
|
|
50
|
+
margin-bottom: 1.25em;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.copilotKitMarkdown blockquote {
|
|
54
|
+
border-color: rgb(142, 142, 160);
|
|
55
|
+
border-left-width: 2px;
|
|
56
|
+
border-left-style: solid;
|
|
57
|
+
line-height: 1.2;
|
|
58
|
+
padding-left: 10px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.copilotKitMarkdown blockquote p {
|
|
62
|
+
padding: 0.7em 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.copilotKitMarkdown ul {
|
|
66
|
+
list-style-type: disc;
|
|
67
|
+
padding-left: 20px;
|
|
68
|
+
overflow: visible;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.copilotKitMarkdown li {
|
|
72
|
+
list-style-type: inherit;
|
|
73
|
+
list-style-position: outside;
|
|
74
|
+
margin-left: 0;
|
|
75
|
+
padding-left: 0;
|
|
76
|
+
position: relative;
|
|
77
|
+
overflow: visible;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.copilotKitCodeBlock {
|
|
81
|
+
position: relative;
|
|
82
|
+
width: 100%;
|
|
83
|
+
background-color: rgb(9 9 11);
|
|
84
|
+
border-radius: 0.375rem;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.copilotKitCodeBlockToolbar {
|
|
88
|
+
display: flex;
|
|
89
|
+
width: 100%;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: space-between;
|
|
92
|
+
background-color: rgb(39 39 42);
|
|
93
|
+
padding-left: 1rem;
|
|
94
|
+
padding-top: 0.09rem;
|
|
95
|
+
padding-bottom: 0.09rem;
|
|
96
|
+
color: rgb(228, 228, 228);
|
|
97
|
+
border-top-left-radius: 0.375rem;
|
|
98
|
+
border-top-right-radius: 0.375rem;
|
|
99
|
+
font-family: sans-serif;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.copilotKitCodeBlockToolbarLanguage {
|
|
103
|
+
font-size: 0.75rem;
|
|
104
|
+
line-height: 1rem;
|
|
105
|
+
text-transform: lowercase;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.copilotKitCodeBlockToolbarButtons {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
margin-right: 0.25rem;
|
|
112
|
+
margin-left: 0.25rem;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.copilotKitCodeBlockToolbarButton {
|
|
116
|
+
display: inline-flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
justify-content: center;
|
|
119
|
+
border-radius: 0.375rem;
|
|
120
|
+
font-size: 0.875rem;
|
|
121
|
+
line-height: 1.25rem;
|
|
122
|
+
font-weight: 500;
|
|
123
|
+
height: 2.5rem;
|
|
124
|
+
width: 2.5rem;
|
|
125
|
+
padding: 3px;
|
|
126
|
+
margin: 2px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.copilotKitCodeBlockToolbarButton:hover {
|
|
130
|
+
background-color: rgb(55, 55, 58);
|
|
131
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.copilotKitMessages {
|
|
2
|
+
overflow-y: scroll;
|
|
3
|
+
flex: 1;
|
|
4
|
+
padding: 1rem 2rem;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
background-color: var(--copilot-kit-background-color);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.copilotKitMessages::-webkit-scrollbar {
|
|
11
|
+
width: 9px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.copilotKitMessages::-webkit-scrollbar-thumb {
|
|
15
|
+
background-color: var(--copilot-kit-scrollbar-color);
|
|
16
|
+
border-radius: 10rem;
|
|
17
|
+
border: 2px solid var(--copilot-kit-background-color);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.copilotKitMessages::-webkit-scrollbar-track-piece:start {
|
|
21
|
+
background: transparent;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.copilotKitMessages::-webkit-scrollbar-track-piece:end {
|
|
25
|
+
background: transparent;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.copilotKitMessage {
|
|
29
|
+
border-radius: 0.5rem;
|
|
30
|
+
padding: 1rem;
|
|
31
|
+
font-size: 0.875rem;
|
|
32
|
+
line-height: 1.25rem;
|
|
33
|
+
overflow-wrap: break-word;
|
|
34
|
+
max-width: 80%;
|
|
35
|
+
margin-bottom: 0.5rem;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.copilotKitMessage.copilotKitUserMessage {
|
|
39
|
+
background: var(--copilot-kit-primary-color);
|
|
40
|
+
color: var(--copilot-kit-contrast-color);
|
|
41
|
+
margin-left: auto;
|
|
42
|
+
white-space: pre-wrap;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.copilotKitMessage.copilotKitAssistantMessage {
|
|
46
|
+
background: var(--copilot-kit-secondary-color);
|
|
47
|
+
color: var(--copilot-kit-secondary-contrast-color);
|
|
48
|
+
margin-right: auto;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.copilotKitMessage.copilotKitUserMessage + .copilotKitMessage.copilotKitAssistantMessage {
|
|
52
|
+
margin-top: 1.5rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.copilotKitMessage.copilotKitAssistantMessage + .copilotKitMessage.copilotKitUserMessage {
|
|
56
|
+
margin-top: 1.5rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.copilotKitCustomAssistantMessage {
|
|
60
|
+
margin-top: 1.5rem;
|
|
61
|
+
margin-bottom: 1.5rem;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.copilotKitMessage .inProgressLabel {
|
|
65
|
+
margin-left: 10px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.copilotKitMessages footer {
|
|
69
|
+
flex-grow: 1;
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
justify-content: flex-end;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.copilotKitMessage.copilotKitAssistantMessage:has(.copilotKitMarkdown:empty) {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.copilotKitMessagesFooter {
|
|
80
|
+
transition: all 300ms ease-out;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.copilotKitCustomAssistantMessage .hidden {
|
|
84
|
+
display: none !important;
|
|
85
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.copilotKitChat {
|
|
2
|
+
z-index: 30;
|
|
3
|
+
line-height: 1.5;
|
|
4
|
+
-webkit-text-size-adjust: 100%;
|
|
5
|
+
-moz-tab-size: 4;
|
|
6
|
+
-o-tab-size: 4;
|
|
7
|
+
tab-size: 4;
|
|
8
|
+
font-feature-settings: normal;
|
|
9
|
+
font-variation-settings: normal;
|
|
10
|
+
touch-action: manipulation;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
/* height: 100%; */
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.copilotKitChat svg {
|
|
17
|
+
display: inline-block;
|
|
18
|
+
vertical-align: middle;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.copilotKitChat .copilotKitMessages {
|
|
22
|
+
flex-grow: 1;
|
|
23
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.copilotKitPopup {
|
|
2
|
+
position: fixed;
|
|
3
|
+
bottom: 1rem;
|
|
4
|
+
right: 1rem;
|
|
5
|
+
z-index: 30;
|
|
6
|
+
line-height: 1.5;
|
|
7
|
+
-webkit-text-size-adjust: 100%;
|
|
8
|
+
-moz-tab-size: 4;
|
|
9
|
+
-o-tab-size: 4;
|
|
10
|
+
tab-size: 4;
|
|
11
|
+
font-feature-settings: normal;
|
|
12
|
+
font-variation-settings: normal;
|
|
13
|
+
touch-action: manipulation;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.copilotKitPopup svg {
|
|
17
|
+
display: inline-block;
|
|
18
|
+
vertical-align: middle;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.copilotKitPopup.copilotKitPopupTip {
|
|
22
|
+
bottom: 5rem;
|
|
23
|
+
right: 1rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.copilotKitPopupTipContent {
|
|
27
|
+
width: 260px;
|
|
28
|
+
height: 76px;
|
|
29
|
+
padding: 0 16px;
|
|
30
|
+
padding-bottom: 10px;
|
|
31
|
+
color: white;
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
line-height: 20px;
|
|
34
|
+
text-align: left;
|
|
35
|
+
border-radius: 0;
|
|
36
|
+
background-image: url(https://cdn.shopify.com/s/files/1/0491/8227/7795/files/Union_4146c91b-cfd9-4b90-9b12-6a8047e1cb88.png?v=1726137547);
|
|
37
|
+
background-position: bottom;
|
|
38
|
+
background-size: contain;
|
|
39
|
+
background-repeat: no-repeat;
|
|
40
|
+
transition: transform 200ms;
|
|
41
|
+
}
|
|
42
|
+
.copilotKitPopupTipContent:hover {
|
|
43
|
+
transform: scale(1.05);
|
|
44
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.copilotKitResponseButton {
|
|
2
|
+
background-color: var(--copilot-kit-response-button-background-color);
|
|
3
|
+
border: 1px solid var(--copilot-kit-separator-color);
|
|
4
|
+
border-radius: 4px;
|
|
5
|
+
color: var(--copilot-kit-response-button-color);
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
font-size: 14px;
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
height: 32px;
|
|
10
|
+
line-height: 30px;
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0 16px;
|
|
13
|
+
text-align: center;
|
|
14
|
+
text-decoration: none;
|
|
15
|
+
text-transform: none;
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.copilotKitResponseButton:hover {
|
|
20
|
+
filter: brightness(95%);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.copilotKitResponseButton > span {
|
|
24
|
+
margin-right: 0.5rem;
|
|
25
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.copilotKitSidebar {
|
|
2
|
+
position: fixed;
|
|
3
|
+
bottom: 1rem;
|
|
4
|
+
right: 1rem;
|
|
5
|
+
z-index: 30;
|
|
6
|
+
line-height: 1.5;
|
|
7
|
+
-webkit-text-size-adjust: 100%;
|
|
8
|
+
-moz-tab-size: 4;
|
|
9
|
+
-o-tab-size: 4;
|
|
10
|
+
tab-size: 4;
|
|
11
|
+
font-feature-settings: normal;
|
|
12
|
+
font-variation-settings: normal;
|
|
13
|
+
touch-action: manipulation;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.copilotKitSidebar svg {
|
|
17
|
+
display: inline-block;
|
|
18
|
+
vertical-align: middle;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.copilotKitSidebarContentWrapper {
|
|
22
|
+
overflow: visible;
|
|
23
|
+
margin-right: 0px;
|
|
24
|
+
transition: margin-right 0.3s ease;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@media (min-width: 640px) {
|
|
28
|
+
.copilotKitSidebarContentWrapper.sidebarExpanded {
|
|
29
|
+
margin-right: 28rem;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.copilotKitMessages footer .suggestions {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
margin-top: 12px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.copilotKitMessages footer h6 {
|
|
9
|
+
font-weight: 500;
|
|
10
|
+
font-size: 0.7rem;
|
|
11
|
+
margin-bottom: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.copilotKitMessages footer .suggestions .suggestion {
|
|
15
|
+
padding: 8px 12px;
|
|
16
|
+
font-size: 0.7rem;
|
|
17
|
+
border-radius: 0.5rem;
|
|
18
|
+
background: var(--copilot-kit-primary-color);
|
|
19
|
+
color: var(--copilot-kit-contrast-color);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.copilotKitMessages footer .suggestions button {
|
|
23
|
+
transition: transform 0.3s ease;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.copilotKitMessages footer .suggestions button:not(:disabled):hover {
|
|
27
|
+
transform: scale(1.05);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.copilotKitMessages footer .suggestions button:disabled {
|
|
31
|
+
cursor: wait;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.copilotKitMessages footer .suggestions button svg {
|
|
35
|
+
margin-right: 6px;
|
|
36
|
+
}
|