@patternfly/patternfly 6.3.0-prerelease.25 → 6.3.0-prerelease.27

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.
Files changed (60) hide show
  1. package/base/patternfly-common.css +35 -0
  2. package/base/patternfly-common.scss +46 -1
  3. package/components/Button/button.css +103 -0
  4. package/components/Button/button.scss +103 -2
  5. package/components/FormControl/form-control.css +16 -0
  6. package/components/FormControl/form-control.scss +9 -0
  7. package/components/MenuToggle/menu-toggle.css +30 -0
  8. package/components/MenuToggle/menu-toggle.scss +33 -0
  9. package/components/Page/page.css +45 -0
  10. package/components/Page/page.scss +29 -0
  11. package/components/Progress/progress.css +16 -0
  12. package/components/Progress/progress.scss +11 -1
  13. package/components/TextInputGroup/text-input-group.css +16 -0
  14. package/components/TextInputGroup/text-input-group.scss +8 -0
  15. package/components/_index.css +226 -0
  16. package/docs/components/Breadcrumb/examples/Breadcrumb.md +1 -1
  17. package/docs/components/Button/examples/Button.md +85 -3
  18. package/docs/components/Card/examples/Card.md +8 -8
  19. package/docs/components/DataList/examples/DataList.md +23 -23
  20. package/docs/components/DualListSelector/examples/DualListSelector.md +18 -18
  21. package/docs/components/Hint/examples/Hint.md +3 -3
  22. package/docs/components/InlineEdit/examples/InlineEdit.md +2 -2
  23. package/docs/components/Masthead/examples/masthead.md +90 -12
  24. package/docs/components/Menu/examples/Menu.md +2 -2
  25. package/docs/components/MenuToggle/examples/MenuToggle.md +90 -51
  26. package/docs/components/OverflowMenu/examples/overflow-menu.md +5 -5
  27. package/docs/components/Page/examples/Page.md +147 -14
  28. package/docs/components/Pagination/examples/Pagination.md +12 -12
  29. package/docs/components/Table/examples/Table.md +240 -240
  30. package/docs/components/Toolbar/examples/Toolbar.md +7 -7
  31. package/docs/demos/AboutModal/examples/AboutModal.md +22 -3
  32. package/docs/demos/Alert/examples/Alert.md +66 -9
  33. package/docs/demos/BackToTop/examples/BackToTop.md +22 -3
  34. package/docs/demos/Banner/examples/Banner.md +47 -6
  35. package/docs/demos/Card/examples/Card.md +4 -4
  36. package/docs/demos/CardView/examples/CardView.md +24 -5
  37. package/docs/demos/Dashboard/examples/Dashboard.md +24 -5
  38. package/docs/demos/DataList/examples/DataList.md +100 -24
  39. package/docs/demos/DescriptionList/examples/DescriptionList.md +66 -9
  40. package/docs/demos/Drawer/examples/Drawer.md +110 -15
  41. package/docs/demos/JumpLinks/examples/JumpLinks.md +132 -18
  42. package/docs/demos/Masthead/examples/Masthead.md +170 -18
  43. package/docs/demos/Modal/examples/Modal.md +132 -18
  44. package/docs/demos/Nav/examples/Nav.md +111 -16
  45. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +110 -15
  46. package/docs/demos/Page/examples/Page.md +309 -43
  47. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +160 -27
  48. package/docs/demos/Skeleton/examples/Skeleton.md +22 -3
  49. package/docs/demos/Table/examples/Table.md +435 -150
  50. package/docs/demos/Tabs/examples/Tabs.md +137 -23
  51. package/docs/demos/Toolbar/examples/Toolbar.md +72 -34
  52. package/docs/demos/Wizard/examples/Wizard.md +198 -27
  53. package/package.json +2 -2
  54. package/patternfly-base-no-globals.css +34 -0
  55. package/patternfly-base.css +34 -0
  56. package/patternfly-no-globals.css +260 -0
  57. package/patternfly.css +260 -0
  58. package/patternfly.min.css +1 -1
  59. package/patternfly.min.css.map +1 -1
  60. package/sass-utilities/mixins.scss +54 -0
@@ -1,6 +1,7 @@
1
1
  @use '../sass-utilities/functions' as *;
2
2
  @use '../sass-utilities/init' as *;
3
3
  @use '../sass-utilities/scss-variables' as *;
4
+ @use '../sass-utilities/namespaces-components' as *;
4
5
 
5
6
  // Media query used to create responsive classes
6
7
  @mixin pf-v6-media-query($point) {
@@ -276,6 +277,25 @@
276
277
  }
277
278
  }
278
279
 
280
+ // Animate error state on form elements
281
+ @mixin pf-v6-animate-danger-jiggle {
282
+ translate: var(--#{$pf-global}--danger-jiggle--TranslateX, 0);
283
+ animation-name: #{$pf-global}-danger-jiggle-motion;
284
+ animation-duration: var(--#{$pf-global}--danger-jiggle--AnimationDuration--Transform);
285
+ animation-timing-function: var(--#{$pf-global}--danger-jiggle--AnimationTimingFunction--Transform);
286
+ animation-fill-mode: both;
287
+ }
288
+
289
+ // Animate default fade in/out
290
+ @mixin pf-v6-fade-default($element) {
291
+ --#{$element}--TransitionDuration--Opacity: var(--pf-t--global--motion--duration--fade--default);
292
+ --#{$element}--TransitionTimingFunction--Opacity: var(--pf-t--global--motion--timing-function--default);
293
+
294
+ animation-name: #{$pf-global}-fade-in;
295
+ animation-duration: var(--#{$element}--TransitionDuration--Opacity);
296
+ animation-timing-function: var(--#{$element}--TransitionTimingFunction--Opacity);
297
+ }
298
+
279
299
  // Build variable stack
280
300
  @mixin pf-v6-build-css-variable-stack($prop, $css-var, $breakpoint-map: $pf-v6-global--breakpoint-map, $important: false) {
281
301
  $list: ();
@@ -410,6 +430,7 @@
410
430
  scale: -1 1;
411
431
  }
412
432
 
433
+
413
434
  @mixin pf-v6-mirror-inline-on-rtl {
414
435
  @include pf-v6-rtl {
415
436
  @include pf-v6-mirror-inline;
@@ -427,3 +448,36 @@
427
448
  @content
428
449
  }
429
450
  }
451
+
452
+ // Sets hamburger styles. Defaults to expand styles (right arrow)
453
+ // $collapse - if true, changes to left arrow
454
+ // $reset - will reset the bars to the default (no arrow)
455
+ @mixin pf-v6-hamburger($collapse: false, $reset: false) {
456
+ @if $reset {
457
+ --#{$button}--hamburger-icon--top--path: var(--#{$button}--hamburger-icon--top--path--base);
458
+ --#{$button}--hamburger-icon--arrow--path: var(--#{$button}--hamburger-icon--arrow--path--base);
459
+ --#{$button}--hamburger-icon--bottom--path: var(--#{$button}--hamburger-icon--bottom--path--base);
460
+ --#{$button}__icon--TransitionDelay: var(--#{$button}--hamburger-icon--TransitionDuration);
461
+ --#{$button}--hover__icon--TransitionDelay: var(--#{$button}--hamburger-icon--TransitionDuration);
462
+ } @else {
463
+ // set direction vars
464
+ --#{$button}--hamburger-icon--top--path: var(--#{$button}--hamburger-icon--top--collapse--path);
465
+ --#{$button}--hamburger-icon--arrow--path: var(--#{$button}--hamburger-icon--arrow--collapse--path);
466
+ --#{$button}--hamburger-icon--bottom--path: var(--#{$button}--hamburger-icon--bottom--collapse--path);
467
+
468
+ // collapse
469
+ @if $collapse {
470
+ --#{$button}__icon--TransitionDelay: 0s;
471
+ --#{$button}__icon--Scale: 1;
472
+ --#{$button}--hover__icon--TransitionDelay: 0s;
473
+ --#{$button}--hover__icon--Scale: 1;
474
+
475
+ // expand
476
+ } @else {
477
+ --#{$button}__icon--TransitionDelay: 0s;
478
+ --#{$button}__icon--Scale: var(--#{$button}--m-hamburger__icon--m-expand--Scale);
479
+ --#{$button}--hover__icon--TransitionDelay: 0s;
480
+ --#{$button}--hover__icon--Scale: var(--#{$button}--m-hamburger__icon--m-expand--Scale);
481
+ }
482
+ }
483
+ }