mod-arch-kubeflow 1.5.0 → 1.6.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.
@@ -166,6 +166,10 @@
166
166
  // Backdrop
167
167
  --mui-backdrop-BackgroundColor: rgba(0, 0, 0, 0.5);
168
168
 
169
+ // Switch - MUI/iOS-style switches use a pill shape (fully rounded ends)
170
+ // This preserves the capsule appearance while other components use the MUI border radius
171
+ --mui-switch--BorderRadius: 9999px;
172
+
169
173
  // Button
170
174
  --mui-button-FontWeight: 500;
171
175
  --mui-button--BorderWidth: var(--pf-t--global--border--width--regular);
@@ -194,6 +198,10 @@
194
198
  --mui-form-fieldset--LegendPadding: var(--mui-spacing-4px); // 4px horizontal padding
195
199
  --mui-form-fieldset--LegendFontSize: var(--pf-t--global--font--size--body--sm); // 0.75rem
196
200
 
201
+ // Form control border styling (MUI input defaults)
202
+ --mui-form-control--BorderWidth: 1px;
203
+ --mui-form-control--BorderColor: rgba(0, 0, 0, 0.23); // MUI standard input border
204
+
197
205
  // Helper text
198
206
  --mui-helper-text__item--FontWeight: 400;
199
207
 
@@ -546,6 +554,44 @@
546
554
  border-radius: var(--pf-v6-c-form-control--BorderRadius, var(--mui-shape-borderRadius));
547
555
  }
548
556
 
557
+ // NumberInput uses a span.pf-v6-c-form-control, so it gets excluded by the :not(span) rule above.
558
+ // This adds the border specifically to NumberInput's form-control span.
559
+ // Uses PF component variables which inherit from global tokens set at :root
560
+ .mui-theme .pf-v6-c-number-input span.pf-v6-c-form-control {
561
+ border: var(--pf-v6-c-form-control--before--BorderWidth) solid var(--pf-v6-c-form-control--before--BorderColor);
562
+ box-sizing: border-box;
563
+
564
+ // Hover state - uses PF component hover variable
565
+ &:hover {
566
+ border-color: var(--pf-v6-c-form-control--hover--after--BorderColor);
567
+ }
568
+
569
+ // Focus state - use box-shadow to simulate thicker border without affecting layout
570
+ // Uses PF expanded (clicked) color which maps to primary/focus color
571
+ &:focus-within {
572
+ border-color: var(--pf-v6-c-form-control--m-expanded--after--BorderColor);
573
+ // Simulate 2px border with 1px border + 1px inset box-shadow
574
+ box-shadow: inset 0 0 0 1px var(--pf-v6-c-form-control--m-expanded--after--BorderColor);
575
+ }
576
+ }
577
+
578
+ // NumberInput layout fixes - ensure buttons fill full height and connect seamlessly
579
+ .mui-theme .pf-v6-c-number-input {
580
+ // Ensure consistent height
581
+ align-items: stretch;
582
+
583
+ .pf-v6-c-input-group__item {
584
+ display: flex;
585
+ align-items: stretch;
586
+ }
587
+
588
+ // Make buttons take full height of their container
589
+ .pf-v6-c-button {
590
+ height: 100%;
591
+ align-self: stretch;
592
+ }
593
+ }
594
+
549
595
  // Remove pseudo-element borders everywhere since we're using real borders now
550
596
  .mui-theme .pf-v6-c-form-control::after,
551
597
  .mui-theme .pf-v6-c-form-control::before {
@@ -668,6 +714,12 @@
668
714
  border-color: var(--mui-palette-action-disabled);
669
715
  }
670
716
 
717
+ // Hide menu-toggle's ::before pseudo-element border inside fieldset wrapper
718
+ // The fieldset wrapper provides the border, so we don't need the ::before border
719
+ .mui-theme .form-fieldset-wrapper .pf-v6-c-menu-toggle::before {
720
+ border: none;
721
+ }
722
+
671
723
  .mui-theme .form-fieldset-wrapper span.pf-v6-c-form-control.pf-m-error ~ .form-fieldset {
672
724
  border-color: var(--mui-palette-error-main);
673
725
  }
@@ -996,7 +1048,8 @@
996
1048
  border-color: var(--mui-palette-primary-main);
997
1049
  }
998
1050
 
999
- .mui-theme .pf-v6-c-form-control.pf-m-error:not(span) {
1051
+ .mui-theme .pf-v6-c-form-control.pf-m-error:not(span),
1052
+ .mui-theme .pf-v6-c-number-input span.pf-v6-c-form-control.pf-m-error {
1000
1053
  border-color: var(--mui-palette-error-main);
1001
1054
  }
1002
1055
 
@@ -1078,6 +1131,7 @@
1078
1131
  --pf-v6-c-menu-toggle--expanded--Color: var(--mui-palette-common-black);
1079
1132
  --pf-v6-c-menu-toggle--hover--BorderColor: var(--mui-menu-toggle--hover--BorderColor);
1080
1133
  --pf-v6-c-menu-toggle--BorderColor: var(--mui-menu-toggle--BorderColor);
1134
+
1081
1135
  --pf-v6-c-menu-toggle--hover--BackgroundColor: var(
1082
1136
  --pf-t--global--background--color--action--plain--hover
1083
1137
  );
@@ -1136,12 +1190,15 @@
1136
1190
  --pf-v6-c-menu-toggle--m-secondary--Color: var(--mui-palette-primary-main);
1137
1191
  --pf-v6-c-menu-toggle--m-secondary--BorderColor: var(--mui-palette-primary-main);
1138
1192
  --pf-v6-c-menu-toggle--m-secondary--BackgroundColor: transparent;
1193
+ // Explicit border for secondary variant
1194
+ border-color: var(--mui-palette-primary-main);
1139
1195
 
1140
1196
  &:hover {
1141
1197
  --pf-v6-c-menu-toggle--m-secondary--hover--BorderColor: var(--mui-palette-primary-dark);
1142
1198
  --pf-v6-c-menu-toggle--m-secondary--hover--Color: var(--mui-palette-primary-dark);
1143
1199
  // No PF variable for secondary hover background; using direct CSS
1144
1200
  background-color: var(--mui-palette-action-hover);
1201
+ border-color: var(--mui-palette-primary-dark);
1145
1202
  }
1146
1203
 
1147
1204
  // Disabled state for secondary variant (higher specificity than base disabled)
@@ -1710,6 +1767,12 @@ left: 0;
1710
1767
  min-height: var(--kf-central-app-bar-height);
1711
1768
  }
1712
1769
 
1770
+ // Switch component - use pill-shaped border radius for the capsule appearance
1771
+ .mui-theme .pf-v6-c-switch {
1772
+ --pf-v6-c-switch__toggle--BorderRadius: var(--mui-switch--BorderRadius);
1773
+ --pf-v6-c-switch__toggle--before--BorderRadius: var(--mui-switch--BorderRadius);
1774
+ }
1775
+
1713
1776
  .mui-theme .pf-v6-c-modal-box {
1714
1777
  // BorderRadius inherited from --pf-t--global--border--radius--large (set to MUI shape-borderRadius)
1715
1778
  --pf-v6-c-modal-box--BoxShadow: var(--mui-shadows-24);
@@ -1907,14 +1970,6 @@ left: 0;
1907
1970
  }
1908
1971
  }
1909
1972
 
1910
- .mui-theme .workspacekind-file-upload {
1911
- height: 100%;
1912
-
1913
- .pf-v6-c-file-upload__file-details {
1914
- flex-grow: 1;
1915
- }
1916
- }
1917
-
1918
1973
  .mui-theme .pf-v6-c-toolbar__item.toolbar-fieldset-wrapper,
1919
1974
  .mui-theme .toolbar-fieldset-wrapper {
1920
1975
  position: relative;
@@ -1951,6 +2006,21 @@ left: 0;
1951
2006
  --pf-v6-c-menu-toggle--PaddingInlineEnd: 12px;
1952
2007
  }
1953
2008
 
2009
+ // Filter group menu-toggles - add border styling
2010
+ .mui-theme .pf-v6-c-toolbar__group.pf-m-filter-group .pf-v6-c-menu-toggle {
2011
+ // Use inset box-shadow for border effect to avoid layout shift
2012
+ box-shadow: inset 0 0 0 1px var(--mui-palette-grey-400);
2013
+ border-radius: var(--mui-shape-borderRadius);
2014
+
2015
+ &:hover {
2016
+ box-shadow: inset 0 0 0 1px var(--mui-palette-common-black);
2017
+ }
2018
+
2019
+ &.pf-m-expanded {
2020
+ box-shadow: none;
2021
+ }
2022
+ }
2023
+
1954
2024
  /* Only apply fixed width to filter dropdown in toolbar filter group */
1955
2025
  .mui-theme .pf-v6-c-toolbar__group.pf-m-filter-group .pf-v6-c-menu-toggle:not(.pf-m-split-button):not(.pf-m-plain) {
1956
2026
  --pf-v6-c-menu-toggle--MinWidth: 140px;
@@ -1969,20 +2039,16 @@ left: 0;
1969
2039
  --pf-v6-c-content--list--PaddingInlineStart: 0;
1970
2040
  }
1971
2041
 
1972
- .mui-theme .workspacekind-file-upload {
1973
- height: 100%;
2042
+ // File upload textarea border styling (MUI-specific)
2043
+ .mui-theme .pf-v6-c-file-upload__file-details .pf-v6-c-form-control.pf-m-textarea {
2044
+ border: var(--mui-form-control--BorderWidth) solid var(--mui-form-control--BorderColor);
2045
+ border-radius: var(--mui-shape-borderRadius);
1974
2046
 
1975
- .pf-v6-c-file-upload__file-details {
1976
- flex-grow: 1;
2047
+ &:hover {
2048
+ border-color: var(--mui-palette-common-black);
1977
2049
  }
1978
2050
  }
1979
2051
 
1980
- .mui-theme .pf-v6-c-file-upload {
1981
- height: 100%;
1982
- display: flex;
1983
- flex-direction: column;
1984
- }
1985
-
1986
2052
 
1987
2053
  /* Workaround for Toggle group header in Workspace Kind Form */
1988
2054
  .mui-theme .workspace-kind-form-header .pf-v6-c-toggle-group__button.pf-m-selected {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-arch-kubeflow",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Kubeflow-specific theme and UI components for modular architecture micro-frontend projects",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",