@hef2024/llmasaservice-ui 0.20.0 → 0.20.2

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.
@@ -1575,6 +1575,88 @@
1575
1575
  font-size: 10px;
1576
1576
  }
1577
1577
 
1578
+ /* Detail Section Title Row (with toggle) */
1579
+ .ai-chat-context-popover__detail-section-title-row {
1580
+ display: flex;
1581
+ align-items: center;
1582
+ gap: 12px;
1583
+ flex: 1;
1584
+ min-width: 0;
1585
+ }
1586
+
1587
+ /* Disabled Section Styling */
1588
+ .ai-chat-context-popover__detail-section--disabled {
1589
+ opacity: 0.6;
1590
+ }
1591
+
1592
+ .ai-chat-context-popover__detail-section--disabled .ai-chat-context-popover__detail-section-title {
1593
+ text-decoration: line-through;
1594
+ opacity: 0.7;
1595
+ }
1596
+
1597
+ /* Context Toggle Switch */
1598
+ .ai-chat-context-toggle {
1599
+ position: relative;
1600
+ display: inline-flex;
1601
+ width: 36px;
1602
+ height: 20px;
1603
+ cursor: pointer;
1604
+ user-select: none;
1605
+ flex-shrink: 0;
1606
+ }
1607
+
1608
+ .ai-chat-context-toggle__input {
1609
+ opacity: 0;
1610
+ width: 0;
1611
+ height: 0;
1612
+ position: absolute;
1613
+ }
1614
+
1615
+ .ai-chat-context-toggle__slider {
1616
+ position: absolute;
1617
+ top: 0;
1618
+ left: 0;
1619
+ right: 0;
1620
+ bottom: 0;
1621
+ background-color: #cbd5e1;
1622
+ transition: background-color 0.2s ease;
1623
+ border-radius: 20px;
1624
+ }
1625
+
1626
+ .ai-chat-context-toggle__slider:before {
1627
+ position: absolute;
1628
+ content: "";
1629
+ height: 16px;
1630
+ width: 16px;
1631
+ left: 2px;
1632
+ bottom: 2px;
1633
+ background-color: white;
1634
+ transition: transform 0.2s ease;
1635
+ border-radius: 50%;
1636
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
1637
+ }
1638
+
1639
+ .ai-chat-context-toggle__input:checked + .ai-chat-context-toggle__slider {
1640
+ background-color: #3b82f6;
1641
+ }
1642
+
1643
+ .ai-chat-context-toggle__input:checked + .ai-chat-context-toggle__slider:before {
1644
+ transform: translateX(16px);
1645
+ }
1646
+
1647
+ .ai-chat-context-toggle:hover .ai-chat-context-toggle__slider {
1648
+ opacity: 0.9;
1649
+ }
1650
+
1651
+ /* Dark theme toggle */
1652
+ .dark-theme .ai-chat-context-toggle__slider {
1653
+ background-color: #4b5563;
1654
+ }
1655
+
1656
+ .dark-theme .ai-chat-context-toggle__input:checked + .ai-chat-context-toggle__slider {
1657
+ background-color: #60a5fa;
1658
+ }
1659
+
1578
1660
  /* Detail Content */
1579
1661
  .ai-chat-context-popover__detail-content {
1580
1662
  margin: 0;
@@ -1735,3 +1817,539 @@
1735
1817
  }
1736
1818
  }
1737
1819
 
1820
+ /* ============================================================================
1821
+ Modal Styles
1822
+ ============================================================================ */
1823
+
1824
+ .ai-chat-modal-overlay {
1825
+ position: fixed;
1826
+ top: 0;
1827
+ left: 0;
1828
+ right: 0;
1829
+ bottom: 0;
1830
+ background: rgba(0, 0, 0, 0.5);
1831
+ display: flex;
1832
+ align-items: center;
1833
+ justify-content: center;
1834
+ z-index: 10000;
1835
+ animation: fadeIn 0.15s ease-out;
1836
+ }
1837
+
1838
+ @keyframes fadeIn {
1839
+ from { opacity: 0; }
1840
+ to { opacity: 1; }
1841
+ }
1842
+
1843
+ .ai-chat-modal-content {
1844
+ background: white;
1845
+ border-radius: 12px;
1846
+ padding: 24px;
1847
+ max-width: 500px;
1848
+ width: 90%;
1849
+ max-height: 80vh;
1850
+ overflow: auto;
1851
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
1852
+ animation: slideUp 0.2s ease-out;
1853
+ }
1854
+
1855
+ .dark-theme .ai-chat-modal-content {
1856
+ background: #1f2937;
1857
+ color: #f9fafb;
1858
+ }
1859
+
1860
+ @keyframes slideUp {
1861
+ from {
1862
+ opacity: 0;
1863
+ transform: translateY(10px);
1864
+ }
1865
+ to {
1866
+ opacity: 1;
1867
+ transform: translateY(0);
1868
+ }
1869
+ }
1870
+
1871
+ .ai-chat-modal-header {
1872
+ display: flex;
1873
+ align-items: center;
1874
+ justify-content: space-between;
1875
+ margin-bottom: 16px;
1876
+ }
1877
+
1878
+ .ai-chat-modal-header h3 {
1879
+ margin: 0;
1880
+ font-size: 18px;
1881
+ font-weight: 600;
1882
+ color: #1f2937;
1883
+ }
1884
+
1885
+ .dark-theme .ai-chat-modal-header h3 {
1886
+ color: #f9fafb;
1887
+ }
1888
+
1889
+ .ai-chat-modal-close {
1890
+ background: none;
1891
+ border: none;
1892
+ font-size: 24px;
1893
+ line-height: 1;
1894
+ padding: 0;
1895
+ width: 28px;
1896
+ height: 28px;
1897
+ border-radius: 6px;
1898
+ cursor: pointer;
1899
+ color: #6b7280;
1900
+ transition: all 0.15s;
1901
+ }
1902
+
1903
+ .ai-chat-modal-close:hover {
1904
+ background: #f3f4f6;
1905
+ color: #1f2937;
1906
+ }
1907
+
1908
+ .dark-theme .ai-chat-modal-close {
1909
+ color: #9ca3af;
1910
+ }
1911
+
1912
+ .dark-theme .ai-chat-modal-close:hover {
1913
+ background: #374151;
1914
+ color: #f9fafb;
1915
+ }
1916
+
1917
+ .ai-chat-modal-body {
1918
+ margin-bottom: 20px;
1919
+ }
1920
+
1921
+ .ai-chat-modal-text {
1922
+ color: #6b7280;
1923
+ font-size: 14px;
1924
+ margin-bottom: 16px;
1925
+ line-height: 1.5;
1926
+ }
1927
+
1928
+ .dark-theme .ai-chat-modal-text {
1929
+ color: #9ca3af;
1930
+ }
1931
+
1932
+ .ai-chat-modal-field {
1933
+ margin-bottom: 16px;
1934
+ }
1935
+
1936
+ .ai-chat-modal-field label {
1937
+ display: block;
1938
+ font-size: 13px;
1939
+ font-weight: 500;
1940
+ color: #374151;
1941
+ margin-bottom: 6px;
1942
+ }
1943
+
1944
+ .dark-theme .ai-chat-modal-field label {
1945
+ color: #e5e7eb;
1946
+ }
1947
+
1948
+ .ai-chat-modal-input {
1949
+ width: 100%;
1950
+ padding: 10px 12px;
1951
+ border: 1px solid #d1d5db;
1952
+ border-radius: 8px;
1953
+ font-size: 14px;
1954
+ color: #1f2937;
1955
+ background: white;
1956
+ transition: all 0.15s;
1957
+ box-sizing: border-box;
1958
+ }
1959
+
1960
+ .ai-chat-modal-input:focus {
1961
+ outline: none;
1962
+ border-color: #3b82f6;
1963
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
1964
+ }
1965
+
1966
+ .dark-theme .ai-chat-modal-input {
1967
+ background: #111827;
1968
+ border-color: #374151;
1969
+ color: #f9fafb;
1970
+ }
1971
+
1972
+ .dark-theme .ai-chat-modal-input:focus {
1973
+ border-color: #60a5fa;
1974
+ box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
1975
+ }
1976
+
1977
+ .ai-chat-modal-footer {
1978
+ display: flex;
1979
+ gap: 12px;
1980
+ justify-content: flex-end;
1981
+ }
1982
+
1983
+ .ai-chat-modal-button {
1984
+ padding: 10px 20px;
1985
+ border-radius: 8px;
1986
+ font-size: 14px;
1987
+ font-weight: 500;
1988
+ cursor: pointer;
1989
+ transition: all 0.15s;
1990
+ border: none;
1991
+ }
1992
+
1993
+ .ai-chat-modal-button--primary {
1994
+ background: #3b82f6;
1995
+ color: white;
1996
+ }
1997
+
1998
+ .ai-chat-modal-button--primary:hover:not(:disabled) {
1999
+ background: #2563eb;
2000
+ }
2001
+
2002
+ .ai-chat-modal-button--primary:disabled {
2003
+ opacity: 0.5;
2004
+ cursor: not-allowed;
2005
+ }
2006
+
2007
+ .ai-chat-modal-button--secondary {
2008
+ background: #f3f4f6;
2009
+ color: #374151;
2010
+ }
2011
+
2012
+ .ai-chat-modal-button--secondary:hover {
2013
+ background: #e5e7eb;
2014
+ }
2015
+
2016
+ .dark-theme .ai-chat-modal-button--secondary {
2017
+ background: #374151;
2018
+ color: #e5e7eb;
2019
+ }
2020
+
2021
+ .dark-theme .ai-chat-modal-button--secondary:hover {
2022
+ background: #4b5563;
2023
+ }
2024
+
2025
+ /* Tool Info Modal */
2026
+ .ai-chat-tool-info-modal {
2027
+ max-width: 800px;
2028
+ width: 95%;
2029
+ }
2030
+
2031
+ .ai-chat-tool-info-container {
2032
+ display: flex;
2033
+ gap: 16px;
2034
+ margin-bottom: 20px;
2035
+ }
2036
+
2037
+ .ai-chat-tool-info-section {
2038
+ flex: 1;
2039
+ }
2040
+
2041
+ .ai-chat-tool-info-section h4 {
2042
+ font-size: 14px;
2043
+ font-weight: 600;
2044
+ margin: 0 0 8px 0;
2045
+ color: #374151;
2046
+ }
2047
+
2048
+ .dark-theme .ai-chat-tool-info-section h4 {
2049
+ color: #e5e7eb;
2050
+ }
2051
+
2052
+ .ai-chat-tool-info-json {
2053
+ width: 100%;
2054
+ min-height: 300px;
2055
+ max-height: 400px;
2056
+ padding: 12px;
2057
+ border: 1px solid #d1d5db;
2058
+ border-radius: 8px;
2059
+ font-family: 'Monaco', 'Courier New', monospace;
2060
+ font-size: 12px;
2061
+ background: #f9fafb;
2062
+ color: #1f2937;
2063
+ resize: vertical;
2064
+ box-sizing: border-box;
2065
+ }
2066
+
2067
+ .dark-theme .ai-chat-tool-info-json {
2068
+ background: #111827;
2069
+ border-color: #374151;
2070
+ color: #e5e7eb;
2071
+ }
2072
+
2073
+ /* ============================================================================
2074
+ Button Container (Save, Email, CTA)
2075
+ ============================================================================ */
2076
+
2077
+ .ai-chat-button-container {
2078
+ display: flex;
2079
+ gap: 8px;
2080
+ padding: 12px 16px;
2081
+ border-top: 1px solid #e5e7eb;
2082
+ background: #f9fafb;
2083
+ }
2084
+
2085
+ .dark-theme .ai-chat-button-container {
2086
+ border-top-color: #374151;
2087
+ background: #111827;
2088
+ }
2089
+
2090
+ .ai-chat-save-button,
2091
+ .ai-chat-email-button,
2092
+ .ai-chat-cta-button {
2093
+ flex: 1;
2094
+ min-width: 0;
2095
+ }
2096
+
2097
+ /* ============================================================================
2098
+ Customer Email Capture Panel
2099
+ ============================================================================ */
2100
+
2101
+ .ai-chat-customer-email-panel {
2102
+ display: flex;
2103
+ flex-wrap: wrap;
2104
+ align-items: center;
2105
+ gap: 8px;
2106
+ padding: 12px 16px;
2107
+ border-top: 1px solid #e5e7eb;
2108
+ background: #fffbeb;
2109
+ }
2110
+
2111
+ .dark-theme .ai-chat-customer-email-panel {
2112
+ background: #422006;
2113
+ border-top-color: #78350f;
2114
+ }
2115
+
2116
+ .ai-chat-customer-email-input {
2117
+ flex: 1;
2118
+ min-width: 200px;
2119
+ padding: 8px 12px;
2120
+ border: 1px solid #d1d5db;
2121
+ border-radius: 8px;
2122
+ font-size: 14px;
2123
+ color: #1f2937;
2124
+ background: white;
2125
+ transition: all 0.15s;
2126
+ }
2127
+
2128
+ .ai-chat-customer-email-input:focus {
2129
+ outline: none;
2130
+ border-color: #3b82f6;
2131
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
2132
+ }
2133
+
2134
+ .ai-chat-customer-email-input--error {
2135
+ border-color: #ef4444;
2136
+ }
2137
+
2138
+ .ai-chat-customer-email-input--error:focus {
2139
+ box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
2140
+ }
2141
+
2142
+ .dark-theme .ai-chat-customer-email-input {
2143
+ background: #111827;
2144
+ border-color: #78350f;
2145
+ color: #f9fafb;
2146
+ }
2147
+
2148
+ .dark-theme .ai-chat-customer-email-input:focus {
2149
+ border-color: #60a5fa;
2150
+ box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
2151
+ }
2152
+
2153
+ .ai-chat-email-set-button {
2154
+ flex-shrink: 0;
2155
+ }
2156
+
2157
+ .ai-chat-email-error-message {
2158
+ width: 100%;
2159
+ color: #dc2626;
2160
+ font-size: 13px;
2161
+ margin-top: -4px;
2162
+ }
2163
+
2164
+ .dark-theme .ai-chat-email-error-message {
2165
+ color: #fca5a5;
2166
+ }
2167
+
2168
+ /* ============================================================================
2169
+ Tool Approval Panel
2170
+ ============================================================================ */
2171
+
2172
+ .ai-chat-approve-tools-panel {
2173
+ padding: 16px;
2174
+ border-top: 1px solid #e5e7eb;
2175
+ border-bottom: 1px solid #e5e7eb;
2176
+ background: #fef3c7;
2177
+ }
2178
+
2179
+ .dark-theme .ai-chat-approve-tools-panel {
2180
+ background: #78350f;
2181
+ border-top-color: #92400e;
2182
+ border-bottom-color: #92400e;
2183
+ }
2184
+
2185
+ .ai-chat-approve-tools-header {
2186
+ font-size: 14px;
2187
+ font-weight: 600;
2188
+ color: #92400e;
2189
+ margin-bottom: 4px;
2190
+ }
2191
+
2192
+ .dark-theme .ai-chat-approve-tools-header {
2193
+ color: #fef3c7;
2194
+ }
2195
+
2196
+ .ai-chat-approve-tools-description {
2197
+ font-size: 13px;
2198
+ color: #78350f;
2199
+ margin-bottom: 12px;
2200
+ }
2201
+
2202
+ .dark-theme .ai-chat-approve-tools-description {
2203
+ color: #fde68a;
2204
+ }
2205
+
2206
+ .ai-chat-approve-tool-item {
2207
+ margin-bottom: 12px;
2208
+ }
2209
+
2210
+ .ai-chat-approve-tool-item:last-child {
2211
+ margin-bottom: 0;
2212
+ }
2213
+
2214
+ .ai-chat-approve-tool-name {
2215
+ font-size: 13px;
2216
+ font-weight: 600;
2217
+ color: #92400e;
2218
+ margin-bottom: 6px;
2219
+ font-family: 'Monaco', 'Courier New', monospace;
2220
+ }
2221
+
2222
+ .dark-theme .ai-chat-approve-tool-name {
2223
+ color: #fef3c7;
2224
+ }
2225
+
2226
+ .ai-chat-approve-tools-buttons {
2227
+ display: flex;
2228
+ gap: 6px;
2229
+ flex-wrap: wrap;
2230
+ }
2231
+
2232
+ .ai-chat-approve-tools-button {
2233
+ flex: 1;
2234
+ min-width: 80px;
2235
+ }
2236
+
2237
+ /* ============================================================================
2238
+ Email Input Container (ChatPanel Style)
2239
+ ============================================================================ */
2240
+
2241
+ .ai-chat-email-input-message {
2242
+ color: #991b1b;
2243
+ font-size: 0.8em;
2244
+ margin-top: 8px;
2245
+ margin-bottom: 8px;
2246
+ padding-left: 8px;
2247
+ }
2248
+
2249
+ .dark-theme .ai-chat-email-input-message {
2250
+ color: #fca5a5;
2251
+ }
2252
+
2253
+ .ai-chat-email-input-container {
2254
+ display: flex;
2255
+ flex-direction: row;
2256
+ width: 100%;
2257
+ gap: 8px;
2258
+ margin-top: 8px;
2259
+ margin-bottom: 8px;
2260
+ }
2261
+
2262
+ .ai-chat-email-input {
2263
+ flex: 1;
2264
+ color: #1f2937;
2265
+ padding: 8px 12px;
2266
+ background-color: white;
2267
+ border: 1px solid #d1d5db;
2268
+ border-radius: 4px;
2269
+ font-size: 14px;
2270
+ }
2271
+
2272
+ .dark-theme .ai-chat-email-input {
2273
+ color: #f9fafb;
2274
+ background-color: #1f2937;
2275
+ border-color: #374151;
2276
+ }
2277
+
2278
+ .ai-chat-email-input:focus {
2279
+ outline: none;
2280
+ border-color: #3b82f6;
2281
+ }
2282
+
2283
+ .ai-chat-email-input-invalid {
2284
+ flex: 1;
2285
+ color: #1f2937;
2286
+ padding: 8px 12px;
2287
+ background-color: #fef2f2;
2288
+ border: 1px solid #ef4444;
2289
+ border-radius: 4px;
2290
+ font-size: 14px;
2291
+ }
2292
+
2293
+ .dark-theme .ai-chat-email-input-invalid {
2294
+ color: #f9fafb;
2295
+ background-color: #7f1d1d;
2296
+ border-color: #991b1b;
2297
+ }
2298
+
2299
+ .ai-chat-email-input-invalid::placeholder {
2300
+ color: #991b1b;
2301
+ }
2302
+
2303
+ .dark-theme .ai-chat-email-input-invalid::placeholder {
2304
+ color: #fca5a5;
2305
+ }
2306
+
2307
+ .ai-chat-email-input-invalid:focus {
2308
+ outline: none;
2309
+ border-color: #dc2626;
2310
+ }
2311
+
2312
+ .ai-chat-email-input-set {
2313
+ flex: 1;
2314
+ color: #1f2937;
2315
+ padding: 8px 12px;
2316
+ background-color: white;
2317
+ border: 0px solid white;
2318
+ opacity: 0.7;
2319
+ user-select: none;
2320
+ border-radius: 4px;
2321
+ font-size: 14px;
2322
+ }
2323
+
2324
+ .dark-theme .ai-chat-email-input-set {
2325
+ color: #f9fafb;
2326
+ background-color: #1f2937;
2327
+ border-color: #1f2937;
2328
+ }
2329
+
2330
+ .ai-chat-email-edit-button {
2331
+ padding: 8px 12px;
2332
+ background: transparent;
2333
+ border: 1px solid #d1d5db;
2334
+ border-radius: 4px;
2335
+ cursor: pointer;
2336
+ color: #374151;
2337
+ font-size: 16px;
2338
+ display: flex;
2339
+ align-items: center;
2340
+ justify-content: center;
2341
+ transition: background-color 0.15s;
2342
+ }
2343
+
2344
+ .ai-chat-email-edit-button:hover {
2345
+ background-color: #f3f4f6;
2346
+ }
2347
+
2348
+ .dark-theme .ai-chat-email-edit-button {
2349
+ border-color: #374151;
2350
+ color: #9ca3af;
2351
+ }
2352
+
2353
+ .dark-theme .ai-chat-email-edit-button:hover {
2354
+ background-color: #374151;
2355
+ }