@meshmakers/octo-ui 3.4.1480 → 3.4.1490

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.
@@ -0,0 +1,87 @@
1
+ @use "variables" as *;
2
+
3
+ // Deep Sea button (AB#5526): flat base/outline style with a flat primary
4
+ // variant. No gradients, no glows, sentence case. Internal to octo.styles():
5
+ // toolbars, dialogs and widget configs in _styles.scss include it (renamed
6
+ // from the former `lcars-button` in AB#5526; not forwarded to hosts).
7
+ @mixin octo-button {
8
+ background: transparent;
9
+ border: 1px solid var(--theme-border-default, var(--octo-mint-30));
10
+ color: var(--theme-text-primary, var(--octo-text-color));
11
+ font-family: var(--theme-font-ui, inherit);
12
+ font-weight: 500;
13
+ font-size: 0.8125rem;
14
+ letter-spacing: normal;
15
+ text-transform: none;
16
+ border-radius: var(--theme-radius-sm, 4px);
17
+ box-shadow: none;
18
+ transition:
19
+ background-color var(--theme-motion-fast, 120ms) var(--theme-motion-easing, ease),
20
+ border-color var(--theme-motion-fast, 120ms) var(--theme-motion-easing, ease),
21
+ color var(--theme-motion-fast, 120ms) var(--theme-motion-easing, ease);
22
+
23
+ &:hover:not(:disabled) {
24
+ background: var(--theme-bg-hover, var(--octo-mint-10));
25
+ border-color: var(--theme-border-strong, var(--octo-mint-50));
26
+ box-shadow: none;
27
+ }
28
+
29
+ &:active:not(:disabled) {
30
+ background: var(--theme-bg-selected, var(--octo-mint-20));
31
+ }
32
+
33
+ &:focus-visible {
34
+ outline: none;
35
+ box-shadow: var(--theme-focus-ring, 0 0 0 2px var(--octo-mint));
36
+ }
37
+
38
+ &:disabled {
39
+ opacity: 0.5;
40
+ cursor: not-allowed;
41
+ }
42
+
43
+ // Selected state of toggle buttons (Kendo `togglable` / button groups set `.k-selected`,
44
+ // AB#5623). Without it the reset above hid the state: the a11y tree said "pressed", the eye saw
45
+ // nothing (quick-view segments in list toolbars). Before the primary branch, so a primary
46
+ // button keeps its look. z-index lifts the accent border above the next grouped button.
47
+ &.k-selected {
48
+ background: var(--theme-bg-selected, var(--octo-mint-20));
49
+ border-color: var(--theme-accent, var(--octo-mint));
50
+ color: var(--theme-text-accent, var(--octo-mint));
51
+ z-index: 1;
52
+
53
+ &:hover:not(:disabled) {
54
+ background: var(--theme-bg-selected, var(--octo-mint-20));
55
+ border-color: var(--theme-accent, var(--octo-mint));
56
+ }
57
+ }
58
+
59
+ &.k-button-solid-primary,
60
+ &.k-button-primary,
61
+ &[themecolor="primary"] {
62
+ background: var(--theme-accent, var(--octo-mint));
63
+ border-color: var(--theme-accent, var(--octo-mint));
64
+ color: var(--theme-text-on-accent, var(--deep-sea));
65
+
66
+ &:hover:not(:disabled) {
67
+ background: var(--theme-accent-hover, var(--octo-mint));
68
+ border-color: var(--theme-accent-hover, var(--octo-mint));
69
+ box-shadow: none;
70
+ }
71
+ }
72
+
73
+ // Selected FLAT toggles (e.g. the list view's row-filter command, `themeColor="primary"
74
+ // fillMode="flat"`): the primary branch above has the same specificity as `.k-selected` and
75
+ // comes later, so it would paint selected and unselected alike. This rule is more specific and
76
+ // comes after it (AB#5623).
77
+ &.k-button-flat.k-selected {
78
+ background: var(--theme-bg-selected, var(--octo-mint-20));
79
+ border-color: var(--theme-accent, var(--octo-mint));
80
+ color: var(--theme-text-accent, var(--octo-mint));
81
+
82
+ &:hover:not(:disabled) {
83
+ background: var(--theme-bg-selected, var(--octo-mint-20));
84
+ border-color: var(--theme-accent, var(--octo-mint));
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,16 @@
1
+ @use "variables" as *;
2
+
3
+ // Deep Sea input (AB#5526): input surface, neutral border, accent border +
4
+ // focus ring on focus. Internal to octo.styles() (formerly `lcars-input`,
5
+ // renamed in AB#5526).
6
+ @mixin field-input {
7
+ background: var(--theme-bg-input, var(--deep-sea)) !important;
8
+ border: 1px solid var(--theme-border-default, var(--octo-mint-30)) !important;
9
+ color: var(--theme-text-primary, var(--octo-text-color)) !important;
10
+ border-radius: var(--theme-radius-sm, 4px) !important;
11
+ &:focus {
12
+ border-color: var(--theme-accent, var(--octo-mint)) !important;
13
+ box-shadow: var(--theme-focus-ring) !important;
14
+ outline: none !important;
15
+ }
16
+ }
@@ -0,0 +1,14 @@
1
+ @use "variables" as *;
2
+
3
+ // Deep Sea outline button for dialog/window action rows (AB#5526): flat,
4
+ // neutral hairline border, no gradient. Internal to octo.styles() (formerly
5
+ // `lcars-flat-btn`, renamed in AB#5526).
6
+ @mixin flat-button {
7
+ background: transparent !important;
8
+ border: 1px solid var(--theme-border-default, var(--octo-mint-30)) !important;
9
+ color: var(--theme-text-primary, var(--octo-text-color)) !important;
10
+ &:hover:not(:disabled) {
11
+ background: var(--theme-bg-hover, var(--octo-mint-10)) !important;
12
+ border-color: var(--theme-border-strong, var(--octo-mint-50)) !important;
13
+ }
14
+ }
@@ -6,6 +6,6 @@
6
6
 
7
7
  @forward "variables" show variables;
8
8
  @forward "styles" show styles;
9
- @forward "theme" show theme, theme-overrides, ink-overlays, kendo-bridge, dark-theme-tokens, light-theme-tokens,
9
+ @forward "theme" show theme, theme-overrides, ink-overlays, kendo-bridge, foundation-tokens, dark-theme-tokens, light-theme-tokens,
10
10
  light-theme-button-primary, light-theme-button-base,
11
11
  light-theme-button-overrides;