opus-react 0.2.16 → 0.2.17

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/index.css CHANGED
@@ -82,6 +82,10 @@
82
82
  position: relative;
83
83
  }
84
84
 
85
+ .opus_R70RbH_triggerWrap {
86
+ display: inline-flex;
87
+ }
88
+
85
89
  .opus_R70RbH_trigger {
86
90
  border: 1px solid color-mix(in srgb, var(--opus-accent) 42%, transparent);
87
91
  background: color-mix(in srgb, var(--opus-accent) 12%, transparent);
@@ -107,7 +111,7 @@
107
111
  }
108
112
 
109
113
  .opus_R70RbH_popup {
110
- z-index: 20;
114
+ z-index: 30;
111
115
  border: 1px solid var(--opus-border-strong);
112
116
  border-radius: var(--opus-input-radius);
113
117
  background: var(--opus-panel);
@@ -116,30 +120,79 @@
116
120
  box-shadow: var(--opus-shadow);
117
121
  color: var(--opus-muted);
118
122
  text-align: left;
123
+ pointer-events: none;
119
124
  padding: 8px 10px;
120
125
  font-size: .76rem;
121
126
  font-style: normal;
122
127
  font-weight: 400;
123
128
  line-height: 1.45;
124
129
  position: absolute;
125
- bottom: calc(100% + 8px);
126
- left: 50%;
127
- transform: translateX(-50%);
128
130
  }
129
131
 
130
132
  .opus_R70RbH_popup:after {
131
133
  content: "";
132
- border-right: 1px solid var(--opus-border-strong);
133
- border-bottom: 1px solid var(--opus-border-strong);
134
134
  background: var(--opus-panel);
135
135
  width: 8px;
136
136
  height: 8px;
137
137
  position: absolute;
138
+ }
139
+
140
+ .opus_R70RbH_top {
141
+ bottom: calc(100% + 8px);
142
+ left: 50%;
143
+ transform: translateX(-50%);
144
+ }
145
+
146
+ .opus_R70RbH_top:after {
147
+ border-right: 1px solid var(--opus-border-strong);
148
+ border-bottom: 1px solid var(--opus-border-strong);
138
149
  top: 100%;
139
150
  left: 50%;
140
151
  transform: translate(-50%, -50%) rotate(45deg);
141
152
  }
142
153
 
154
+ .opus_R70RbH_bottom {
155
+ top: calc(100% + 8px);
156
+ left: 50%;
157
+ transform: translateX(-50%);
158
+ }
159
+
160
+ .opus_R70RbH_bottom:after {
161
+ border-left: 1px solid var(--opus-border-strong);
162
+ border-top: 1px solid var(--opus-border-strong);
163
+ bottom: 100%;
164
+ left: 50%;
165
+ transform: translate(-50%, 50%) rotate(45deg);
166
+ }
167
+
168
+ .opus_R70RbH_left {
169
+ top: 50%;
170
+ right: calc(100% + 8px);
171
+ transform: translateY(-50%);
172
+ }
173
+
174
+ .opus_R70RbH_left:after {
175
+ border-top: 1px solid var(--opus-border-strong);
176
+ border-right: 1px solid var(--opus-border-strong);
177
+ top: 50%;
178
+ left: 100%;
179
+ transform: translate(-50%, -50%) rotate(45deg);
180
+ }
181
+
182
+ .opus_R70RbH_right {
183
+ top: 50%;
184
+ left: calc(100% + 8px);
185
+ transform: translateY(-50%);
186
+ }
187
+
188
+ .opus_R70RbH_right:after {
189
+ border-bottom: 1px solid var(--opus-border-strong);
190
+ border-left: 1px solid var(--opus-border-strong);
191
+ top: 50%;
192
+ right: 100%;
193
+ transform: translate(50%, -50%) rotate(45deg);
194
+ }
195
+
143
196
  /* components/fields/FieldShell/FieldShell.module.css */
144
197
  .opus_zNi12Z_root {
145
198
  gap: 8px;
@@ -1282,11 +1335,6 @@
1282
1335
  cursor: not-allowed;
1283
1336
  }
1284
1337
 
1285
- .opus_6HFqZH_buttonWrap {
1286
- display: inline-flex;
1287
- position: relative;
1288
- }
1289
-
1290
1338
  .opus_6HFqZH_toolbarButton {
1291
1339
  width: 24px;
1292
1340
  height: 24px;
@@ -1359,43 +1407,6 @@
1359
1407
  cursor: not-allowed;
1360
1408
  }
1361
1409
 
1362
- .opus_6HFqZH_tooltip {
1363
- z-index: 30;
1364
- background: var(--opus-tooltip-bg, #1f2430);
1365
- color: var(--opus-tooltip-text, #fff);
1366
- white-space: nowrap;
1367
- pointer-events: none;
1368
- opacity: 0;
1369
- visibility: hidden;
1370
- border-radius: 6px;
1371
- padding: 4px 8px;
1372
- font-size: .7rem;
1373
- font-weight: 600;
1374
- line-height: 1.2;
1375
- transition: opacity .12s, transform .12s;
1376
- position: absolute;
1377
- top: calc(100% + 6px);
1378
- left: 50%;
1379
- transform: translateX(-50%) translateY(2px);
1380
- box-shadow: 0 6px 18px #00000038;
1381
- }
1382
-
1383
- .opus_6HFqZH_tooltip:before {
1384
- content: "";
1385
- border: 4px solid #0000;
1386
- border-bottom-color: var(--opus-tooltip-bg, #1f2430);
1387
- position: absolute;
1388
- bottom: 100%;
1389
- left: 50%;
1390
- transform: translateX(-50%);
1391
- }
1392
-
1393
- .opus_6HFqZH_buttonWrap:hover .opus_6HFqZH_tooltip, .opus_6HFqZH_toolbarButton:focus-visible + .opus_6HFqZH_tooltip {
1394
- opacity: 1;
1395
- visibility: visible;
1396
- transform: translateX(-50%) translateY(0);
1397
- }
1398
-
1399
1410
  .opus_6HFqZH_editor {
1400
1411
  min-height: 180px;
1401
1412
  color: var(--opus-text);
@@ -1658,79 +1669,6 @@
1658
1669
  border-color: color-mix(in srgb, var(--opus-error) 75%, transparent);
1659
1670
  }
1660
1671
 
1661
- /* components/fields/ThemeToggleField/ThemeToggleField.module.css */
1662
- .opus_SwerMA_toggle {
1663
- --theme-option-size: calc(var(--opus-control-height) + 2px);
1664
- --theme-option-gap: 2px;
1665
- align-items: center;
1666
- gap: var(--theme-option-gap);
1667
- min-height: var(--opus-control-height);
1668
- border: 1px solid var(--opus-border-strong);
1669
- background: color-mix(in srgb, var(--opus-input-bg) 88%, transparent);
1670
- border-radius: 999px;
1671
- padding: 2px;
1672
- transition: background .22s, border-color .22s, box-shadow .22s;
1673
- display: inline-flex;
1674
- position: relative;
1675
- box-shadow: inset 0 1px #ffffff0d, 0 8px 20px #0000000f;
1676
- }
1677
-
1678
- .opus_SwerMA_indicator {
1679
- z-index: 0;
1680
- width: var(--theme-option-size);
1681
- height: calc(var(--opus-control-height) - 4px);
1682
- background: linear-gradient(135deg,
1683
- var(--opus-accent),
1684
- color-mix(in srgb, var(--opus-accent) 40%, #00d2ff));
1685
- box-shadow: 0 8px 18px color-mix(in srgb, var(--opus-accent) 28%, transparent);
1686
- border-radius: 999px;
1687
- transition: transform .22s cubic-bezier(.4, 0, .2, 1), background .22s, box-shadow .22s;
1688
- position: absolute;
1689
- top: 2px;
1690
- left: 2px;
1691
- transform: translateX(0);
1692
- }
1693
-
1694
- .opus_SwerMA_indicator[data-active="dark"] {
1695
- transform: translateX(calc(var(--theme-option-size) + var(--theme-option-gap)));
1696
- }
1697
-
1698
- .opus_SwerMA_option {
1699
- z-index: 1;
1700
- width: var(--theme-option-size);
1701
- height: calc(var(--opus-control-height) - 4px);
1702
- color: var(--opus-muted);
1703
- cursor: pointer;
1704
- background: none;
1705
- border: 0;
1706
- border-radius: 999px;
1707
- justify-content: center;
1708
- align-items: center;
1709
- font-size: .82rem;
1710
- transition: color .22s;
1711
- display: inline-flex;
1712
- position: relative;
1713
- }
1714
-
1715
- .opus_SwerMA_option:hover {
1716
- color: var(--opus-text);
1717
- }
1718
-
1719
- .opus_SwerMA_option.opus_SwerMA_active {
1720
- color: #fff;
1721
- }
1722
-
1723
- .opus_SwerMA_option svg {
1724
- width: .9rem;
1725
- height: .9rem;
1726
- }
1727
-
1728
- @media (prefers-reduced-motion: reduce) {
1729
- .opus_SwerMA_indicator {
1730
- transition: none;
1731
- }
1732
- }
1733
-
1734
1672
  /* components/fields/shared/fieldControl.module.css */
1735
1673
  .opus_1Q5xBh_input {
1736
1674
  width: 100%;
@@ -1760,6 +1698,51 @@
1760
1698
  border-color: color-mix(in srgb, var(--opus-error) 75%, transparent);
1761
1699
  }
1762
1700
 
1701
+ .opus_1Q5xBh_passwordWrap {
1702
+ align-items: center;
1703
+ width: 100%;
1704
+ display: flex;
1705
+ position: relative;
1706
+ }
1707
+
1708
+ .opus_1Q5xBh_passwordInput {
1709
+ padding-right: 38px;
1710
+ }
1711
+
1712
+ .opus_1Q5xBh_passwordToggleSlot {
1713
+ position: absolute;
1714
+ top: 50%;
1715
+ right: 6px;
1716
+ transform: translateY(-50%);
1717
+ }
1718
+
1719
+ .opus_1Q5xBh_passwordToggle {
1720
+ border-radius: var(--opus-input-radius);
1721
+ width: 22px;
1722
+ height: 22px;
1723
+ color: color-mix(in srgb, var(--opus-muted) 70%, transparent);
1724
+ cursor: pointer;
1725
+ background: none;
1726
+ border: 0;
1727
+ justify-content: center;
1728
+ align-items: center;
1729
+ padding: 0;
1730
+ font-size: .5rem;
1731
+ transition: color .16s, background .16s;
1732
+ display: inline-flex;
1733
+ }
1734
+
1735
+ .opus_1Q5xBh_passwordToggle:hover {
1736
+ color: var(--opus-text);
1737
+ background: color-mix(in srgb, var(--opus-accent-soft) 60%, transparent);
1738
+ }
1739
+
1740
+ .opus_1Q5xBh_passwordToggle:focus-visible {
1741
+ color: var(--opus-accent);
1742
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--opus-accent) 22%, transparent);
1743
+ outline: none;
1744
+ }
1745
+
1763
1746
  .opus_1Q5xBh_trigger {
1764
1747
  width: 100%;
1765
1748
  min-height: var(--opus-control-height);
@@ -1887,6 +1870,79 @@
1887
1870
  overflow: auto;
1888
1871
  }
1889
1872
 
1873
+ /* components/fields/ThemeToggleField/ThemeToggleField.module.css */
1874
+ .opus_SwerMA_toggle {
1875
+ --theme-option-size: calc(var(--opus-control-height) + 2px);
1876
+ --theme-option-gap: 2px;
1877
+ align-items: center;
1878
+ gap: var(--theme-option-gap);
1879
+ min-height: var(--opus-control-height);
1880
+ border: 1px solid var(--opus-border-strong);
1881
+ background: color-mix(in srgb, var(--opus-input-bg) 88%, transparent);
1882
+ border-radius: 999px;
1883
+ padding: 2px;
1884
+ transition: background .22s, border-color .22s, box-shadow .22s;
1885
+ display: inline-flex;
1886
+ position: relative;
1887
+ box-shadow: inset 0 1px #ffffff0d, 0 8px 20px #0000000f;
1888
+ }
1889
+
1890
+ .opus_SwerMA_indicator {
1891
+ z-index: 0;
1892
+ width: var(--theme-option-size);
1893
+ height: calc(var(--opus-control-height) - 4px);
1894
+ background: linear-gradient(135deg,
1895
+ var(--opus-accent),
1896
+ color-mix(in srgb, var(--opus-accent) 40%, #00d2ff));
1897
+ box-shadow: 0 8px 18px color-mix(in srgb, var(--opus-accent) 28%, transparent);
1898
+ border-radius: 999px;
1899
+ transition: transform .22s cubic-bezier(.4, 0, .2, 1), background .22s, box-shadow .22s;
1900
+ position: absolute;
1901
+ top: 2px;
1902
+ left: 2px;
1903
+ transform: translateX(0);
1904
+ }
1905
+
1906
+ .opus_SwerMA_indicator[data-active="dark"] {
1907
+ transform: translateX(calc(var(--theme-option-size) + var(--theme-option-gap)));
1908
+ }
1909
+
1910
+ .opus_SwerMA_option {
1911
+ z-index: 1;
1912
+ width: var(--theme-option-size);
1913
+ height: calc(var(--opus-control-height) - 4px);
1914
+ color: var(--opus-muted);
1915
+ cursor: pointer;
1916
+ background: none;
1917
+ border: 0;
1918
+ border-radius: 999px;
1919
+ justify-content: center;
1920
+ align-items: center;
1921
+ font-size: .82rem;
1922
+ transition: color .22s;
1923
+ display: inline-flex;
1924
+ position: relative;
1925
+ }
1926
+
1927
+ .opus_SwerMA_option:hover {
1928
+ color: var(--opus-text);
1929
+ }
1930
+
1931
+ .opus_SwerMA_option.opus_SwerMA_active {
1932
+ color: #fff;
1933
+ }
1934
+
1935
+ .opus_SwerMA_option svg {
1936
+ width: .9rem;
1937
+ height: .9rem;
1938
+ }
1939
+
1940
+ @media (prefers-reduced-motion: reduce) {
1941
+ .opus_SwerMA_indicator {
1942
+ transition: none;
1943
+ }
1944
+ }
1945
+
1890
1946
  /* components/fields/FilterSelectField/FilterSelectField.module.css */
1891
1947
  .opus_rDiUV2_root {
1892
1948
  position: relative;
@@ -1998,11 +2054,25 @@
1998
2054
 
1999
2055
  .opus_S1A372_meterFill {
2000
2056
  border-radius: inherit;
2001
- background: linear-gradient(90deg,
2002
- color-mix(in srgb, var(--opus-error) 80%, var(--opus-accent)),
2003
- var(--opus-accent));
2057
+ background: var(--opus-strength-color, transparent);
2004
2058
  height: 100%;
2005
- transition: width .18s;
2059
+ transition: width .18s, background .18s;
2060
+ }
2061
+
2062
+ .opus_S1A372_meterFill[data-level="weak"] {
2063
+ --opus-strength-color: #ef4444;
2064
+ }
2065
+
2066
+ .opus_S1A372_meterFill[data-level="fair"] {
2067
+ --opus-strength-color: #f59e0b;
2068
+ }
2069
+
2070
+ .opus_S1A372_meterFill[data-level="good"] {
2071
+ --opus-strength-color: #84cc16;
2072
+ }
2073
+
2074
+ .opus_S1A372_meterFill[data-level="strong"] {
2075
+ --opus-strength-color: #22c55e;
2006
2076
  }
2007
2077
 
2008
2078
  .opus_S1A372_meterLabel {
@@ -2012,6 +2082,22 @@
2012
2082
  font-weight: 600;
2013
2083
  }
2014
2084
 
2085
+ .opus_S1A372_meterLabel[data-level="weak"] {
2086
+ color: #ef4444;
2087
+ }
2088
+
2089
+ .opus_S1A372_meterLabel[data-level="fair"] {
2090
+ color: #f59e0b;
2091
+ }
2092
+
2093
+ .opus_S1A372_meterLabel[data-level="good"] {
2094
+ color: #84cc16;
2095
+ }
2096
+
2097
+ .opus_S1A372_meterLabel[data-level="strong"] {
2098
+ color: #22c55e;
2099
+ }
2100
+
2015
2101
  .opus_S1A372_requirements {
2016
2102
  gap: 4px;
2017
2103
  margin: 0;