@linzjs/lui 11.1.0 → 11.1.4

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 "../../Foundation/Variables/ColorVars.scss" as colors;
2
+
3
+ // Component starts
4
+
5
+ $icon-xl: 64px;
6
+ $icon-lg: 48px;
7
+ $icon-md: 24px;
8
+ $icon-sm: 16px;
9
+ $icon-xs: 12px;
10
+
11
+ .LuiIcon {
12
+ display: inline-block;
13
+ height: 100%;
14
+ width: 100%;
15
+ }
16
+
17
+ .LuiIcon--xl {
18
+ max-height: $icon-xl;
19
+ max-width: $icon-xl;
20
+
21
+ > svg {
22
+ height: $icon-xl;
23
+ width: $icon-xl;
24
+ }
25
+ }
26
+
27
+ .LuiIcon--lg {
28
+ max-height: $icon-lg;
29
+ max-width: $icon-lg;
30
+
31
+ > svg {
32
+ height: $icon-lg;
33
+ width: $icon-lg;
34
+ }
35
+ }
36
+
37
+ .LuiIcon--md {
38
+ height: $icon-md;
39
+ max-height: $icon-md;
40
+ max-width: $icon-md;
41
+ width: $icon-md;
42
+
43
+ > svg {
44
+ height: $icon-md;
45
+ width: $icon-md;
46
+ }
47
+ }
48
+
49
+ .LuiIcon--sm {
50
+ max-height: $icon-sm;
51
+ max-width: $icon-sm;
52
+
53
+ > svg {
54
+ height: $icon-sm;
55
+ width: $icon-sm;
56
+ }
57
+ }
58
+
59
+ .LuiIcon--xs {
60
+ max-height: $icon-xs;
61
+ max-width: $icon-xs;
62
+
63
+ > svg {
64
+ height: $icon-xs;
65
+ width: $icon-xs;
66
+ }
67
+ }
68
+
69
+ .LuiIcon--warning {
70
+ fill: colors.$warning;
71
+ }
72
+
73
+ .LuiIcon--error {
74
+ fill: colors.$error;
75
+ }
76
+
77
+ .LuiIcon--success {
78
+ fill: colors.$success;
79
+ }
80
+
81
+ .LuiIcon--interactive {
82
+ fill: colors.$sea;
83
+ }
84
+
85
+ .LuiIcon--disabled {
86
+ fill: colors.$disabled-color;
87
+ }
@@ -0,0 +1,45 @@
1
+ @use "../../../Foundation/Variables/MiscVars.scss" as misc;
2
+ @use "../../../Foundation/Variables/ColorVars.scss" as colors;
3
+ @use '../../../Foundation/Variables/FontVars.scss' as fonts;
4
+ @use '../../../Foundation/Variables/SpacingVars.scss' as spacing;
5
+ @use "../../../Foundation/Utilities" as *;
6
+
7
+ .LuiTab {
8
+ background: transparent;
9
+ border-radius: 0;
10
+ color: colors.$base-type-color;
11
+ min-width: spacing.$unit-xxl * 2;
12
+ @include fonts.font-regular;
13
+
14
+ &:focus {
15
+ background-color: rgba(colors.$persian, 0.2);
16
+ }
17
+
18
+ .LuiTabsGroup--justified & {
19
+ width: 100%;
20
+ }
21
+ }
22
+
23
+ .LuiTab--active,
24
+ .LuiTab--active:focus {
25
+ @include fonts.font-semibold;
26
+ position: relative;
27
+ outline: none;
28
+ background: transparent;
29
+
30
+ &:after {
31
+ content: '';
32
+ display: block;
33
+ height: 4px;
34
+ width: 100%;
35
+ padding: 0 32px;
36
+ left: 0;
37
+ right: 0;
38
+ bottom: -1px;
39
+ box-sizing: border-box;
40
+ background: linear-gradient(270deg, colors.$downy 1%, colors.$persian 100%);
41
+ border-top-left-radius: 3px;
42
+ border-top-right-radius: 3px;
43
+ position: absolute;
44
+ }
45
+ }
@@ -0,0 +1,3 @@
1
+ @forward './LuiTab/LuiTab.scss';
2
+ @forward './LuiTabsGroup/LuiTabsGroup.scss';
3
+ @forward './LuiTabsPanel/LuiTabsPanel.scss';
@@ -0,0 +1,10 @@
1
+ @use '../../../Foundation/Variables/ColorVars.scss' as colors;
2
+
3
+ .LuiTabsGroup {
4
+ border-bottom: 1px solid colors.$silver;
5
+ }
6
+
7
+ .LuiTabsGroup--justified {
8
+ display: flex;
9
+ justify-content: space-between;
10
+ }
@@ -0,0 +1,9 @@
1
+ .LuiTabsPanel {
2
+ display: none;
3
+ }
4
+
5
+ .LuiTabsPanel--active {
6
+ display: block;
7
+ overflow: auto; // fixed the parent adopting the top margins of the content (collapsing margins)
8
+ // No padding is placed on the panel so you have full access to the content area. So any padding for margins needs to be added in your content.
9
+ }
@@ -37,6 +37,9 @@
37
37
  // Components
38
38
  /////////////////////////////////////////
39
39
 
40
+ // This is perhaps not ideal - would rather each react component pulled its own css along with it
41
+ // But this works for both html/css and React implementations. It's on the backlog to fix
42
+
40
43
  @forward "./Components/ContextMenu/context-menu.scss";
41
44
  @forward "./Components/ExpandingSection/expanding-section.scss";
42
45
  @forward "./Components/Footer/footer.scss";
@@ -56,3 +59,10 @@
56
59
  @forward "./Components/LOLCommonMenu/LOLFirmSwitcherMenu.scss";
57
60
  @forward "./Components/Spinner/spinner.scss";
58
61
  @forward "./Components/LuiFormElements/LuiFileInputBox.scss";
62
+
63
+ // The following have scss next to the component that is yet to be hooked up with the react implementation
64
+ // LuiTabs
65
+ @forward "./Components/LuiTabs/LuiTabs.scss";
66
+
67
+ // LuiIcon
68
+ @forward "./Components/LuiIcon/LuiIcons.scss";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "11.1.0",
2
+ "version": "11.1.4",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",