@dnb/eufemia 9.29.0 → 9.30.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.
Files changed (95) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/cjs/components/button/style/themes/dnb-button-theme-eiendom.css +20 -0
  3. package/cjs/components/button/style/themes/dnb-button-theme-eiendom.min.css +2 -2
  4. package/cjs/components/button/style/themes/dnb-button-theme-eiendom.scss +8 -0
  5. package/cjs/components/slider/Slider.d.ts +2 -2
  6. package/cjs/components/slider/Slider.js +21 -0
  7. package/cjs/components/slider/SliderHelpers.d.ts +2 -2
  8. package/cjs/components/slider/SliderHelpers.js +10 -4
  9. package/cjs/components/slider/SliderInstance.js +1 -1
  10. package/cjs/components/slider/SliderProvider.js +50 -13
  11. package/cjs/components/slider/SliderThumb.js +5 -0
  12. package/cjs/components/slider/SliderTrack.js +3 -2
  13. package/cjs/components/slider/hooks/useSliderEvents.js +5 -5
  14. package/cjs/components/slider/hooks/useSliderProps.d.ts +1 -1
  15. package/cjs/components/slider/style/_slider.scss +1 -7
  16. package/cjs/components/slider/style/dnb-slider.css +1 -7
  17. package/cjs/components/slider/style/dnb-slider.min.css +1 -1
  18. package/cjs/components/slider/types.d.ts +28 -3
  19. package/cjs/components/tabs/style/themes/dnb-tabs-theme-eiendom.css +148 -0
  20. package/cjs/components/tabs/style/themes/dnb-tabs-theme-eiendom.min.css +1 -0
  21. package/cjs/components/tabs/style/themes/dnb-tabs-theme-eiendom.scss +14 -0
  22. package/cjs/shared/Eufemia.js +1 -1
  23. package/cjs/shared/helpers/withCamelCaseProps.js +7 -0
  24. package/cjs/style/dnb-ui-components.css +1 -7
  25. package/cjs/style/dnb-ui-components.min.css +1 -1
  26. package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.css +169 -0
  27. package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +3 -3
  28. package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.scss +1 -0
  29. package/components/button/style/themes/dnb-button-theme-eiendom.css +20 -0
  30. package/components/button/style/themes/dnb-button-theme-eiendom.min.css +2 -2
  31. package/components/button/style/themes/dnb-button-theme-eiendom.scss +8 -0
  32. package/components/slider/Slider.d.ts +2 -2
  33. package/components/slider/Slider.js +1 -0
  34. package/components/slider/SliderHelpers.d.ts +2 -2
  35. package/components/slider/SliderHelpers.js +10 -4
  36. package/components/slider/SliderInstance.js +1 -1
  37. package/components/slider/SliderProvider.js +50 -13
  38. package/components/slider/SliderThumb.js +5 -0
  39. package/components/slider/SliderTrack.js +3 -2
  40. package/components/slider/hooks/useSliderEvents.js +5 -5
  41. package/components/slider/hooks/useSliderProps.d.ts +1 -1
  42. package/components/slider/style/_slider.scss +1 -7
  43. package/components/slider/style/dnb-slider.css +1 -7
  44. package/components/slider/style/dnb-slider.min.css +1 -1
  45. package/components/slider/types.d.ts +28 -3
  46. package/components/tabs/style/themes/dnb-tabs-theme-eiendom.css +148 -0
  47. package/components/tabs/style/themes/dnb-tabs-theme-eiendom.min.css +1 -0
  48. package/components/tabs/style/themes/dnb-tabs-theme-eiendom.scss +14 -0
  49. package/es/components/button/style/themes/dnb-button-theme-eiendom.css +20 -0
  50. package/es/components/button/style/themes/dnb-button-theme-eiendom.min.css +2 -2
  51. package/es/components/button/style/themes/dnb-button-theme-eiendom.scss +8 -0
  52. package/es/components/slider/Slider.d.ts +2 -2
  53. package/es/components/slider/Slider.js +1 -0
  54. package/es/components/slider/SliderHelpers.d.ts +2 -2
  55. package/es/components/slider/SliderHelpers.js +10 -4
  56. package/es/components/slider/SliderInstance.js +1 -1
  57. package/es/components/slider/SliderProvider.js +49 -13
  58. package/es/components/slider/SliderThumb.js +7 -1
  59. package/es/components/slider/SliderTrack.js +3 -2
  60. package/es/components/slider/hooks/useSliderEvents.js +5 -5
  61. package/es/components/slider/hooks/useSliderProps.d.ts +1 -1
  62. package/es/components/slider/style/_slider.scss +1 -7
  63. package/es/components/slider/style/dnb-slider.css +1 -7
  64. package/es/components/slider/style/dnb-slider.min.css +1 -1
  65. package/es/components/slider/types.d.ts +28 -3
  66. package/es/components/tabs/style/themes/dnb-tabs-theme-eiendom.css +148 -0
  67. package/es/components/tabs/style/themes/dnb-tabs-theme-eiendom.min.css +1 -0
  68. package/es/components/tabs/style/themes/dnb-tabs-theme-eiendom.scss +14 -0
  69. package/es/shared/Eufemia.js +1 -1
  70. package/es/shared/helpers/withCamelCaseProps.js +7 -0
  71. package/es/style/dnb-ui-components.css +1 -7
  72. package/es/style/dnb-ui-components.min.css +1 -1
  73. package/es/style/themes/theme-eiendom/dnb-theme-eiendom.css +169 -0
  74. package/es/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +3 -3
  75. package/es/style/themes/theme-eiendom/dnb-theme-eiendom.scss +1 -0
  76. package/esm/dnb-ui-basis.min.mjs +1 -1
  77. package/esm/dnb-ui-components.min.mjs +1 -1
  78. package/esm/dnb-ui-elements.min.mjs +1 -1
  79. package/esm/dnb-ui-extensions.min.mjs +1 -1
  80. package/esm/dnb-ui-lib.min.mjs +2 -2
  81. package/esm/dnb-ui-web-components.min.mjs +2 -2
  82. package/package.json +1 -1
  83. package/shared/Eufemia.js +1 -1
  84. package/shared/helpers/withCamelCaseProps.js +7 -0
  85. package/style/dnb-ui-components.css +1 -7
  86. package/style/dnb-ui-components.min.css +1 -1
  87. package/style/themes/theme-eiendom/dnb-theme-eiendom.css +169 -0
  88. package/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +3 -3
  89. package/style/themes/theme-eiendom/dnb-theme-eiendom.scss +1 -0
  90. package/umd/dnb-ui-basis.min.js +1 -1
  91. package/umd/dnb-ui-components.min.js +1 -1
  92. package/umd/dnb-ui-elements.min.js +1 -1
  93. package/umd/dnb-ui-extensions.min.js +1 -1
  94. package/umd/dnb-ui-lib.min.js +2 -2
  95. package/umd/dnb-ui-web-components.min.js +3 -3
@@ -6659,9 +6659,178 @@ html:not([data-whatintent='touch']) .dnb-tabs__button:hover:not([disabled]) {
6659
6659
  -webkit-box-shadow: 0 0 0 0.0625rem var(--color-black-55);
6660
6660
  box-shadow: 0 0 0 0.0625rem var(--color-black-55); } }
6661
6661
 
6662
+ .dnb-button--secondary:not(.dnb-button--has-text):active[disabled],
6663
+ html:not([data-whatintent='touch']) .dnb-button--secondary:not(.dnb-button--has-text):active[disabled] {
6664
+ cursor: not-allowed; }
6665
+
6666
+ .dnb-button--secondary:not(.dnb-button--has-text):active:not([disabled]),
6667
+ html:not([data-whatintent='touch']) .dnb-button--secondary:not(.dnb-button--has-text):active:not([disabled]) {
6668
+ color: #14555a;
6669
+ color: var(--color-emerald-green);
6670
+ background-color: #f2f4ec;
6671
+ background-color: var(--color-pistachio);
6672
+ --border-color: transparent;
6673
+ -webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
6674
+ box-shadow: 0 0 0 0.0625rem var(--border-color);
6675
+ border-color: transparent; }
6676
+ @media screen and (-ms-high-contrast: none) {
6677
+ .dnb-button--secondary:not(.dnb-button--has-text):active:not([disabled]),
6678
+ html:not([data-whatintent='touch']) .dnb-button--secondary:not(.dnb-button--has-text):active:not([disabled]) {
6679
+ -webkit-box-shadow: 0 0 0 0.0625rem transparent;
6680
+ box-shadow: 0 0 0 0.0625rem transparent; } }
6681
+
6662
6682
  .dnb-button--tertiary {
6663
6683
  color: #14555a;
6664
6684
  color: var(--color-emerald-green); }
6665
6685
  .dnb-button--tertiary[disabled] {
6666
6686
  color: #737373;
6667
6687
  color: var(--color-black-55); }
6688
+
6689
+ /*
6690
+ * Tabs theme
6691
+ *
6692
+ */
6693
+ /*
6694
+ * Tabs theme
6695
+ *
6696
+ */
6697
+ /**
6698
+ * This file is only used to make themes independent
6699
+ * so that they can get imported individually, without the core styles
6700
+ *
6701
+ */
6702
+ /*
6703
+ * Utilities
6704
+ */
6705
+ /*
6706
+ * Button mixins
6707
+ *
6708
+ */
6709
+ .dnb-tabs__tabs:not(.dnb-section)::before {
6710
+ background-color: #ebebeb;
6711
+ background-color: var(--color-black-8);
6712
+ -webkit-box-shadow: 100vw 0 0 0 #ebebeb;
6713
+ box-shadow: 100vw 0 0 0 #ebebeb;
6714
+ -webkit-box-shadow: 100vw 0 0 0 var(--color-black-8);
6715
+ box-shadow: 100vw 0 0 0 var(--color-black-8); }
6716
+
6717
+ .dnb-tabs__tabs__tablist:focus {
6718
+ border-radius: 0.5rem; }
6719
+
6720
+ .dnb-tabs--at-edge .dnb-tabs__scroll-nav-button:first-of-type {
6721
+ border-radius: 0 50% 50% 0; }
6722
+
6723
+ .dnb-tabs--at-edge .dnb-tabs__scroll-nav-button:last-of-type {
6724
+ border-radius: 50% 0 0 50%; }
6725
+
6726
+ .dnb-tabs--at-edge .dnb-tabs__tabs__tablist:focus {
6727
+ border-radius: 0; }
6728
+
6729
+ .dnb-tabs__content:focus {
6730
+ position: relative; }
6731
+ .dnb-tabs__content:focus::after {
6732
+ content: '';
6733
+ position: absolute;
6734
+ z-index: -1;
6735
+ top: 0.125rem;
6736
+ bottom: -0.5rem;
6737
+ left: -0.5rem;
6738
+ right: -0.5rem;
6739
+ max-width: 100vw;
6740
+ border-radius: 0.5rem;
6741
+ outline: none; }
6742
+ html[data-whatinput='keyboard'] .dnb-tabs__content:focus::after {
6743
+ --border-color: var(--color-emerald-green);
6744
+ -webkit-box-shadow: 0 0 0 0.125rem var(--border-color);
6745
+ box-shadow: 0 0 0 0.125rem var(--border-color);
6746
+ border-color: transparent; }
6747
+ @media screen and (-ms-high-contrast: none) {
6748
+ html[data-whatinput='keyboard'] .dnb-tabs__content:focus::after {
6749
+ -webkit-box-shadow: 0 0 0 0.125rem #14555a;
6750
+ box-shadow: 0 0 0 0.125rem #14555a;
6751
+ -webkit-box-shadow: 0 0 0 0.125rem var(--color-emerald-green);
6752
+ box-shadow: 0 0 0 0.125rem var(--color-emerald-green); } }
6753
+
6754
+ .dnb-tabs__button__title {
6755
+ font-weight: normal;
6756
+ font-weight: var(--font-weight-regular);
6757
+ font-size: 1.125rem;
6758
+ font-size: var(--font-size-basis);
6759
+ text-align: center;
6760
+ display: block;
6761
+ color: #007272;
6762
+ color: var(--color-sea-green);
6763
+ padding: 0.5rem 0 0.25rem 0; }
6764
+
6765
+ html:not([data-whatintent='touch']) .dnb-tabs__button:hover[disabled] {
6766
+ cursor: not-allowed; }
6767
+
6768
+ html:not([data-whatintent='touch']) .dnb-tabs__button:hover:not([disabled]) {
6769
+ background-color: #d2f0e9;
6770
+ background-color: var(--color-mint-green-50); }
6771
+ html:not([data-whatintent='touch']) .dnb-tabs__button:hover:not([disabled])::after {
6772
+ height: 2px;
6773
+ border-radius: 2px;
6774
+ background-color: #007272;
6775
+ background-color: var(--color-sea-green); }
6776
+
6777
+ .dnb-tabs__button:focus {
6778
+ overflow: visible; }
6779
+ .dnb-tabs__button:focus::before {
6780
+ content: '';
6781
+ position: absolute;
6782
+ z-index: 1;
6783
+ top: 0;
6784
+ left: -0.5rem;
6785
+ bottom: 0;
6786
+ right: -0.5rem;
6787
+ height: inherit;
6788
+ border-radius: inherit;
6789
+ outline: none; }
6790
+ html[data-whatinput='keyboard'] .dnb-tabs__button:focus::before {
6791
+ --border-color: var(--color-emerald-green);
6792
+ -webkit-box-shadow: 0 0 0 0.125rem var(--border-color);
6793
+ box-shadow: 0 0 0 0.125rem var(--border-color);
6794
+ border-color: transparent; }
6795
+ @media screen and (-ms-high-contrast: none) {
6796
+ html[data-whatinput='keyboard'] .dnb-tabs__button:focus::before {
6797
+ -webkit-box-shadow: 0 0 0 0.125rem #14555a;
6798
+ box-shadow: 0 0 0 0.125rem #14555a;
6799
+ -webkit-box-shadow: 0 0 0 0.125rem var(--color-emerald-green);
6800
+ box-shadow: 0 0 0 0.125rem var(--color-emerald-green); } }
6801
+ .dnb-tabs__button:focus::before {
6802
+ top: 0.5rem;
6803
+ left: -0.375rem;
6804
+ right: -0.375rem;
6805
+ bottom: 0.5rem;
6806
+ border-radius: 1.5rem; }
6807
+
6808
+ .dnb-tabs__button[disabled] .dnb-tabs__button__title {
6809
+ color: #b3dada;
6810
+ color: var(--color-sea-green-30); }
6811
+
6812
+ .dnb-tabs__button:not([disabled]):active::after, .dnb-tabs__button:not([disabled]).selected::after {
6813
+ height: 2px;
6814
+ border-radius: 2px;
6815
+ background-color: #007272;
6816
+ background-color: var(--color-sea-green); }
6817
+
6818
+ .dnb-tabs__button:not([disabled]):active .dnb-tabs__button__title,
6819
+ .dnb-tabs__button:not([disabled]).selected .dnb-tabs__button__title {
6820
+ color: #14555a;
6821
+ color: var(--color-emerald-green); }
6822
+
6823
+ .dnb-tabs__button:not([disabled]).selected .dnb-tabs__button__title {
6824
+ font-weight: 500;
6825
+ font-weight: var(--font-weight-medium); }
6826
+
6827
+ .dnb-tabs__button span[hidden] {
6828
+ font-weight: 500;
6829
+ font-weight: var(--font-weight-medium); }
6830
+
6831
+ html:not([data-whatintent='touch']) .dnb-tabs__button:hover[disabled] {
6832
+ cursor: not-allowed; }
6833
+
6834
+ html:not([data-whatintent='touch']) .dnb-tabs__button:hover:not([disabled]) {
6835
+ background-color: #f2f4ec;
6836
+ background-color: var(--color-pistachio); }