@entur/tab 1.0.0-alpha.0 → 1.0.0-next.1
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.
- package/README.md +2 -2
- package/dist/Tab.d.ts +5 -5
- package/dist/TabList.d.ts +9 -5
- package/dist/TabPanel.d.ts +7 -7
- package/dist/TabPanels.d.ts +7 -5
- package/dist/Tabs.d.ts +7 -7
- package/dist/TabsContext.d.ts +20 -0
- package/dist/index.d.ts +0 -1
- package/dist/styles.css +374 -143
- package/dist/tab.cjs.js +199 -0
- package/dist/tab.cjs.js.map +1 -0
- package/dist/tab.esm.js +192 -83
- package/dist/tab.esm.js.map +1 -1
- package/package.json +36 -14
- package/dist/index.js +0 -8
- package/dist/tab.cjs.development.js +0 -98
- package/dist/tab.cjs.development.js.map +0 -1
- package/dist/tab.cjs.production.min.js +0 -2
- package/dist/tab.cjs.production.min.js.map +0 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This package contains the different Tab components.
|
|
4
4
|
|
|
5
|
-
> 💡 Looking for the [documentation](https://
|
|
5
|
+
> 💡 Looking for the [documentation](https://linje.entur.no/komponenter/layout-og-flater/tab)?
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -14,4 +14,4 @@ yarn add @entur/tab
|
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
|
-
Please refer to the [documentation](https://
|
|
17
|
+
Please refer to the [documentation](https://linje.entur.no/komponenter/layout-og-flater/tab) for usage information.
|
package/dist/Tab.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
export type TabProps = {
|
|
3
3
|
/** Overskriften til taben */
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
/** Om taben er disabled eller ikke */
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
/** HTML-elementet eller React-komponenten som lager komponenten */
|
|
8
|
-
as?: keyof JSX.IntrinsicElements |
|
|
8
|
+
as?: keyof JSX.IntrinsicElements | React.ElementType;
|
|
9
9
|
removeActiveLine?: boolean;
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
export declare const Tab:
|
|
10
|
+
className?: string;
|
|
11
|
+
} & Omit<React.ComponentPropsWithoutRef<'button'>, 'children' | 'disabled'>;
|
|
12
|
+
export declare const Tab: ({ className, removeActiveLine, as, disabled, children, ...rest }: TabProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/TabList.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
export type TabListProps = {
|
|
3
3
|
/** Tab-komponenter */
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
/** HTML-elementet eller React-komponenten som lager komponenten */
|
|
6
|
-
as?: keyof JSX.IntrinsicElements |
|
|
6
|
+
as?: keyof JSX.IntrinsicElements | React.ElementType;
|
|
7
7
|
width?: 'fluid';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Tilgjengelig navn på tab-listen (dersom det ikke finnes en synlig overskrift) */
|
|
10
|
+
'aria-label'?: string;
|
|
11
|
+
/** ID til elementet som navngir tab-listen */
|
|
12
|
+
'aria-labelledby'?: string;
|
|
13
|
+
} & Omit<React.ComponentPropsWithoutRef<'div'>, 'children'>;
|
|
14
|
+
export declare const TabList: ({ className, width, as, children, ...rest }: TabListProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/TabPanel.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
export type TabPanelProps = {
|
|
3
|
-
/**
|
|
4
|
-
children
|
|
3
|
+
/** Innholdet i tab-panelet */
|
|
4
|
+
children?: React.ReactNode;
|
|
5
5
|
/** HTML-elementet eller React-komponenten som lager komponenten */
|
|
6
|
-
as?: keyof JSX.IntrinsicElements |
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
export declare const TabPanel:
|
|
6
|
+
as?: keyof JSX.IntrinsicElements | React.ElementType;
|
|
7
|
+
className?: string;
|
|
8
|
+
} & Omit<React.ComponentPropsWithoutRef<'div'>, 'children'>;
|
|
9
|
+
export declare const TabPanel: ({ className, as, children, ...rest }: TabPanelProps) => import("react/jsx-runtime").JSX.Element | null;
|
package/dist/TabPanels.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
export type TabPanelsProps = {
|
|
3
3
|
/** Tab-panelene */
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
/** HTML-elementet eller React-komponenten som lager komponenten */
|
|
6
|
-
as?: keyof JSX.IntrinsicElements |
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
as?: keyof JSX.IntrinsicElements | React.ElementType;
|
|
7
|
+
/** Behold alle panel-noder i DOM (skjult med hidden-attributt) i stedet for å avmontere */
|
|
8
|
+
keepMounted?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
} & Omit<React.ComponentPropsWithoutRef<'div'>, 'children'>;
|
|
11
|
+
export declare const TabPanels: ({ className, as, keepMounted, children, ...rest }: TabPanelsProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Tabs.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
export type TabsProps = {
|
|
3
|
-
/**
|
|
3
|
+
/** Tab-innholdet */
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
/** Kalles når taben endres */
|
|
6
6
|
onChange?: (index: number) => void;
|
|
7
7
|
/** Hvilken tab som skal være åpen by default */
|
|
8
8
|
defaultIndex?: number;
|
|
9
|
-
/** Den åpne indexen */
|
|
9
|
+
/** Den åpne indexen (kontrollert) */
|
|
10
10
|
index?: number;
|
|
11
11
|
/** HTML-elementet eller React-komponenten som lager komponenten */
|
|
12
|
-
as?: keyof JSX.IntrinsicElements |
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
export declare const Tabs:
|
|
12
|
+
as?: keyof JSX.IntrinsicElements | React.ElementType;
|
|
13
|
+
className?: string;
|
|
14
|
+
} & Omit<React.ComponentPropsWithoutRef<'div'>, 'children' | 'onChange'>;
|
|
15
|
+
export declare const Tabs: ({ className, index, defaultIndex, onChange, as, children, ...rest }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type TabsContextValue = {
|
|
3
|
+
selectedIndex: number;
|
|
4
|
+
onSelect: (index: number) => void;
|
|
5
|
+
tabsId: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const TabsContext: React.Context<TabsContextValue>;
|
|
8
|
+
export type TabItemContextValue = {
|
|
9
|
+
tabIndex: number;
|
|
10
|
+
tabId: string;
|
|
11
|
+
panelId: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const TabItemContext: React.Context<TabItemContextValue | null>;
|
|
14
|
+
export type TabPanelItemContextValue = {
|
|
15
|
+
tabIndex: number;
|
|
16
|
+
tabId: string;
|
|
17
|
+
panelId: string;
|
|
18
|
+
keepMounted: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare const TabPanelItemContext: React.Context<TabPanelItemContextValue | null>;
|
package/dist/index.d.ts
CHANGED
package/dist/styles.css
CHANGED
|
@@ -1,153 +1,384 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
--
|
|
5
|
-
--
|
|
1
|
+
[data-color-mode=light],
|
|
2
|
+
:root{
|
|
3
|
+
--components-tab-contrast-border:#aeb7e2;
|
|
4
|
+
--components-tab-contrast-fill-disabled:rgba(84, 86, 140, 0.4);
|
|
5
|
+
--components-tab-contrast-fill-hover:#626493;
|
|
6
|
+
--components-tab-contrast-fill-selected:#181c56;
|
|
7
|
+
--components-tab-contrast-fill-unselected:#393d79;
|
|
8
|
+
--components-tab-contrast-icon:#ffffff;
|
|
9
|
+
--components-tab-contrast-icon-disabled:#b6b8ba;
|
|
10
|
+
--components-tab-contrast-text:#ffffff;
|
|
11
|
+
--components-tab-contrast-text-disabled:#b6b8ba;
|
|
12
|
+
--components-tab-contrast-underline-selected:#ff5959;
|
|
13
|
+
--components-tab-standard-border:#e3e6e8;
|
|
14
|
+
--components-tab-standard-fill-disabled:#cfd2d4;
|
|
15
|
+
--components-tab-standard-fill-hover:#e3e6e8;
|
|
16
|
+
--components-tab-standard-fill-selected:#ffffff;
|
|
17
|
+
--components-tab-standard-fill-unselected:#edf0f2;
|
|
18
|
+
--components-tab-standard-icon:#181c56;
|
|
19
|
+
--components-tab-standard-icon-disabled:#515254;
|
|
20
|
+
--components-tab-standard-text:#181c56;
|
|
21
|
+
--components-tab-standard-text-disabled:#515254;
|
|
22
|
+
--components-tab-standard-underline-selected:#ff5959;
|
|
6
23
|
}
|
|
7
24
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
[data-color-mode=dark]{
|
|
26
|
+
--components-tab-contrast-border:#81828f;
|
|
27
|
+
--components-tab-contrast-fill-disabled:rgba(207, 210, 212, 0.1019607843);
|
|
28
|
+
--components-tab-contrast-fill-hover:#393a49;
|
|
29
|
+
--components-tab-contrast-fill-selected:#08091c;
|
|
30
|
+
--components-tab-contrast-fill-unselected:rgba(229, 229, 233, 0.2509803922);
|
|
31
|
+
--components-tab-contrast-icon:#e5e5e9;
|
|
32
|
+
--components-tab-contrast-icon-disabled:#949699;
|
|
33
|
+
--components-tab-contrast-text:#e5e5e9;
|
|
34
|
+
--components-tab-contrast-text-disabled:#949699;
|
|
35
|
+
--components-tab-contrast-underline-selected:#ff5959;
|
|
36
|
+
--components-tab-standard-border:#81828f;
|
|
37
|
+
--components-tab-standard-fill-disabled:rgba(207, 210, 212, 0.1019607843);
|
|
38
|
+
--components-tab-standard-fill-hover:#393a49;
|
|
39
|
+
--components-tab-standard-fill-selected:#08091c;
|
|
40
|
+
--components-tab-standard-fill-unselected:rgba(229, 229, 233, 0.2509803922);
|
|
41
|
+
--components-tab-standard-icon:#e5e5e9;
|
|
42
|
+
--components-tab-standard-icon-disabled:#949699;
|
|
43
|
+
--components-tab-standard-text:#e5e5e9;
|
|
44
|
+
--components-tab-standard-text-disabled:#949699;
|
|
45
|
+
--components-tab-standard-underline-selected:#ff5959;
|
|
46
|
+
}
|
|
47
|
+
[data-color-mode=light],
|
|
48
|
+
:root{
|
|
49
|
+
--basecolors-frame-contrast:#181c56;
|
|
50
|
+
--basecolors-frame-contrastalt:#393d79;
|
|
51
|
+
--basecolors-frame-contrastalt-2:#292b6a;
|
|
52
|
+
--basecolors-frame-default:#ffffff;
|
|
53
|
+
--basecolors-frame-elevated:#ffffff;
|
|
54
|
+
--basecolors-frame-elevatedalt:#f6f6f9;
|
|
55
|
+
--basecolors-frame-highlight:#ff5959;
|
|
56
|
+
--basecolors-frame-highlightalt:#ffbf9e;
|
|
57
|
+
--basecolors-frame-subdued:#d9dae8;
|
|
58
|
+
--basecolors-frame-tint:#f6f6f9;
|
|
59
|
+
--basecolors-shape-accent:#181c56;
|
|
60
|
+
--basecolors-shape-bicycle-contrast:#00dbb6;
|
|
61
|
+
--basecolors-shape-bicycle-default:#0d827e;
|
|
62
|
+
--basecolors-shape-bus-contrast:#ff6392;
|
|
63
|
+
--basecolors-shape-bus-default:#c5044e;
|
|
64
|
+
--basecolors-shape-cableway-contrast:#b482fb;
|
|
65
|
+
--basecolors-shape-cableway-default:#78469a;
|
|
66
|
+
--basecolors-shape-disabled:#6e6f73;
|
|
67
|
+
--basecolors-shape-disabledalt:#b6b8ba;
|
|
68
|
+
--basecolors-shape-ferry-contrast:#6fdfff;
|
|
69
|
+
--basecolors-shape-ferry-default:#0c6693;
|
|
70
|
+
--basecolors-shape-funicular-contrast:#b482fb;
|
|
71
|
+
--basecolors-shape-funicular-default:#78469a;
|
|
72
|
+
--basecolors-shape-helicopter-contrast:#fbafea;
|
|
73
|
+
--basecolors-shape-helicopter-default:#800664;
|
|
74
|
+
--basecolors-shape-highlight:#ff5959;
|
|
75
|
+
--basecolors-shape-light:#ffffff;
|
|
76
|
+
--basecolors-shape-mask:#ffffff;
|
|
77
|
+
--basecolors-shape-maskalt:#ffffff;
|
|
78
|
+
--basecolors-shape-metro-contrast:#f08901;
|
|
79
|
+
--basecolors-shape-metro-default:#bf5826;
|
|
80
|
+
--basecolors-shape-mobility-contrast:#00dbb6;
|
|
81
|
+
--basecolors-shape-mobility-default:#0d827e;
|
|
82
|
+
--basecolors-shape-plane-contrast:#fbafea;
|
|
83
|
+
--basecolors-shape-plane-default:#800664;
|
|
84
|
+
--basecolors-shape-subdued:#626493;
|
|
85
|
+
--basecolors-shape-subduedalt:#d9dae8;
|
|
86
|
+
--basecolors-shape-taxi-contrast:#ffe082;
|
|
87
|
+
--basecolors-shape-taxi-default:#3d3e40;
|
|
88
|
+
--basecolors-shape-train-contrast:#42a5f5;
|
|
89
|
+
--basecolors-shape-train-default:#00367f;
|
|
90
|
+
--basecolors-shape-tram-contrast:#b482fb;
|
|
91
|
+
--basecolors-shape-tram-default:#78469a;
|
|
92
|
+
--basecolors-shape-walk-contrast:#9ea0bd;
|
|
93
|
+
--basecolors-shape-walk-default:#8d8e9c;
|
|
94
|
+
--basecolors-shape-airportlinkbus-contrast:#fbafea;
|
|
95
|
+
--basecolors-shape-airportlinkbus-default:#800664;
|
|
96
|
+
--basecolors-shape-airportlinkrail-contrast:#fbafea;
|
|
97
|
+
--basecolors-shape-airportlinkrail-default:#800664;
|
|
98
|
+
--basecolors-stroke-contrast:#aeb7e2;
|
|
99
|
+
--basecolors-stroke-default:#181c56;
|
|
100
|
+
--basecolors-stroke-disabled:#949699;
|
|
101
|
+
--basecolors-stroke-focus-contrast:#aeb7e2;
|
|
102
|
+
--basecolors-stroke-focus-standard:#181c56;
|
|
103
|
+
--basecolors-stroke-highlight:#ff5959;
|
|
104
|
+
--basecolors-stroke-highlight2:#ffbf9e;
|
|
105
|
+
--basecolors-stroke-light:#ffffff;
|
|
106
|
+
--basecolors-stroke-subdued:#8284ab;
|
|
107
|
+
--basecolors-stroke-subduedalt:#e3e6e8;
|
|
108
|
+
--basecolors-text-accent:#181c56;
|
|
109
|
+
--basecolors-text-disabled:#6e6f73;
|
|
110
|
+
--basecolors-text-disabledalt:#b6b8ba;
|
|
111
|
+
--basecolors-text-highlight:#ff5959;
|
|
112
|
+
--basecolors-text-highlightalt:#ffbf9e;
|
|
113
|
+
--basecolors-text-light:#ffffff;
|
|
114
|
+
--basecolors-text-subdued:#626493;
|
|
115
|
+
--basecolors-text-subduedalt:#d9dae8;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[data-color-mode=dark]{
|
|
119
|
+
--basecolors-frame-contrast:#212233;
|
|
120
|
+
--basecolors-frame-contrastalt:#141527;
|
|
121
|
+
--basecolors-frame-contrastalt-2:#08091c;
|
|
122
|
+
--basecolors-frame-default:#08091c;
|
|
123
|
+
--basecolors-frame-elevated:rgba(229, 229, 233, 0.1490196078);
|
|
124
|
+
--basecolors-frame-elevatedalt:#464755;
|
|
125
|
+
--basecolors-frame-highlight:#ff5959;
|
|
126
|
+
--basecolors-frame-highlightalt:#ffbf9e;
|
|
127
|
+
--basecolors-frame-subdued:#2d2e3e;
|
|
128
|
+
--basecolors-frame-tint:#141527;
|
|
129
|
+
--basecolors-shape-accent:#e5e5e9;
|
|
130
|
+
--basecolors-shape-bicycle-contrast:#4db2a1;
|
|
131
|
+
--basecolors-shape-bicycle-default:#4db2a1;
|
|
132
|
+
--basecolors-shape-bus-contrast:#ef7398;
|
|
133
|
+
--basecolors-shape-bus-default:#ef7398;
|
|
134
|
+
--basecolors-shape-cableway-contrast:#b898e5;
|
|
135
|
+
--basecolors-shape-cableway-default:#b898e5;
|
|
136
|
+
--basecolors-shape-disabled:#b6b8ba;
|
|
137
|
+
--basecolors-shape-disabledalt:#b3b4bd;
|
|
138
|
+
--basecolors-shape-ferry-contrast:#8ccfe2;
|
|
139
|
+
--basecolors-shape-ferry-default:#8ccfe2;
|
|
140
|
+
--basecolors-shape-funicular-contrast:#b898e5;
|
|
141
|
+
--basecolors-shape-funicular-default:#b898e5;
|
|
142
|
+
--basecolors-shape-helicopter-contrast:#f2b8e5;
|
|
143
|
+
--basecolors-shape-helicopter-default:#f2b8e5;
|
|
144
|
+
--basecolors-shape-highlight:#ff5959;
|
|
145
|
+
--basecolors-shape-light:#e5e5e9;
|
|
146
|
+
--basecolors-shape-mask:#2d2e3e;
|
|
147
|
+
--basecolors-shape-maskalt:#393a49;
|
|
148
|
+
--basecolors-shape-metro-contrast:#dd973c;
|
|
149
|
+
--basecolors-shape-metro-default:#dd973c;
|
|
150
|
+
--basecolors-shape-mobility-contrast:#4db2a1;
|
|
151
|
+
--basecolors-shape-mobility-default:#4db2a1;
|
|
152
|
+
--basecolors-shape-plane-contrast:#f2b8e5;
|
|
153
|
+
--basecolors-shape-plane-default:#f2b8e5;
|
|
154
|
+
--basecolors-shape-subdued:#b3b4bd;
|
|
155
|
+
--basecolors-shape-subduedalt:#b3b4bd;
|
|
156
|
+
--basecolors-shape-taxi-contrast:#ffe082;
|
|
157
|
+
--basecolors-shape-taxi-default:#ffe082;
|
|
158
|
+
--basecolors-shape-train-contrast:#60a2d7;
|
|
159
|
+
--basecolors-shape-train-default:#60a2d7;
|
|
160
|
+
--basecolors-shape-tram-contrast:#b898e5;
|
|
161
|
+
--basecolors-shape-tram-default:#b898e5;
|
|
162
|
+
--basecolors-shape-walk-contrast:#8d8e9c;
|
|
163
|
+
--basecolors-shape-walk-default:#8d8e9c;
|
|
164
|
+
--basecolors-shape-airportlinkbus-contrast:#f2b8e5;
|
|
165
|
+
--basecolors-shape-airportlinkbus-default:#f2b8e5;
|
|
166
|
+
--basecolors-shape-airportlinkrail-contrast:#f2b8e5;
|
|
167
|
+
--basecolors-shape-airportlinkrail-default:#f2b8e5;
|
|
168
|
+
--basecolors-stroke-contrast:#aeb7e2;
|
|
169
|
+
--basecolors-stroke-default:#b3b4bd;
|
|
170
|
+
--basecolors-stroke-disabled:#e3e6e8;
|
|
171
|
+
--basecolors-stroke-focus-contrast:#aeb7e2;
|
|
172
|
+
--basecolors-stroke-focus-standard:#aeb7e2;
|
|
173
|
+
--basecolors-stroke-highlight:#ff5959;
|
|
174
|
+
--basecolors-stroke-highlight2:#ffbf9e;
|
|
175
|
+
--basecolors-stroke-light:#b3b4bd;
|
|
176
|
+
--basecolors-stroke-subdued:#81828f;
|
|
177
|
+
--basecolors-stroke-subduedalt:#949699;
|
|
178
|
+
--basecolors-text-accent:#e5e5e9;
|
|
179
|
+
--basecolors-text-disabled:#b6b8ba;
|
|
180
|
+
--basecolors-text-disabledalt:#b6b8ba;
|
|
181
|
+
--basecolors-text-highlight:#ff5959;
|
|
182
|
+
--basecolors-text-highlightalt:#ffbf9e;
|
|
183
|
+
--basecolors-text-light:#e5e5e9;
|
|
184
|
+
--basecolors-text-subdued:#b3b4bd;
|
|
185
|
+
--basecolors-text-subduedalt:#b3b4bd;
|
|
35
186
|
}
|
|
36
187
|
|
|
37
|
-
|
|
38
|
-
-
|
|
39
|
-
-moz-appearance: none;
|
|
40
|
-
appearance: none;
|
|
41
|
-
background: #f3f3f3;
|
|
42
|
-
border: 0.125rem solid #f3f3f3;
|
|
43
|
-
border-radius: 0.25rem 0.25rem 0 0;
|
|
44
|
-
color: #181c56;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
font-family: inherit;
|
|
47
|
-
font-size: inherit;
|
|
48
|
-
height: 3rem;
|
|
49
|
-
line-height: inherit;
|
|
50
|
-
margin: 0;
|
|
51
|
-
min-width: 8rem;
|
|
52
|
-
padding: 0.5rem 1rem;
|
|
53
|
-
position: relative;
|
|
54
|
-
}
|
|
55
|
-
.eds-tab-list--width-fluid .eds-tab {
|
|
56
|
-
flex-grow: 1;
|
|
57
|
-
min-width: 0;
|
|
58
|
-
}
|
|
59
|
-
.eds-contrast .eds-tab {
|
|
60
|
-
background-color: #54568c;
|
|
61
|
-
border-color: #54568c;
|
|
62
|
-
color: #ffffff;
|
|
63
|
-
}
|
|
64
|
-
.eds-tab:hover {
|
|
65
|
-
background-color: #d1d3d3;
|
|
66
|
-
border-color: #d1d3d3;
|
|
67
|
-
}
|
|
68
|
-
.eds-contrast .eds-tab:hover {
|
|
69
|
-
background-color: #aeb7e2;
|
|
70
|
-
border-color: #aeb7e2;
|
|
71
|
-
color: #181c56;
|
|
72
|
-
}
|
|
73
|
-
.eds-tab + .eds-tab {
|
|
74
|
-
margin-left: 0.25rem;
|
|
75
|
-
}
|
|
76
|
-
.eds-tab::after {
|
|
77
|
-
content: "";
|
|
78
|
-
position: absolute;
|
|
79
|
-
bottom: -0.125rem;
|
|
80
|
-
left: -0.125rem;
|
|
81
|
-
right: -0.125rem;
|
|
82
|
-
background-color: #d1d3d3;
|
|
83
|
-
display: block;
|
|
84
|
-
height: 0.125rem;
|
|
85
|
-
}
|
|
86
|
-
.eds-contrast .eds-tab::after {
|
|
87
|
-
background-color: #aeb7e2;
|
|
88
|
-
}
|
|
89
|
-
.eds-tab[aria-selected=true] {
|
|
90
|
-
background-color: #ffffff;
|
|
91
|
-
border-color: #d1d3d3;
|
|
92
|
-
color: #181c56;
|
|
93
|
-
font-weight: 600;
|
|
94
|
-
}
|
|
95
|
-
.eds-contrast .eds-tab[aria-selected=true] {
|
|
96
|
-
background-color: #181c56;
|
|
97
|
-
color: #ffffff;
|
|
98
|
-
border-color: #aeb7e2;
|
|
99
|
-
}
|
|
100
|
-
.eds-tab[aria-selected=true]::after {
|
|
101
|
-
background-color: #ffffff;
|
|
102
|
-
left: 0;
|
|
103
|
-
right: 0;
|
|
104
|
-
}
|
|
105
|
-
.eds-contrast .eds-tab[aria-selected=true]::after {
|
|
106
|
-
background-color: #181c56;
|
|
107
|
-
}
|
|
108
|
-
.eds-tab[aria-selected=true]::before {
|
|
109
|
-
content: "";
|
|
110
|
-
display: block;
|
|
111
|
-
margin: 0 auto;
|
|
112
|
-
width: 2rem;
|
|
113
|
-
height: 3px;
|
|
114
|
-
background: #ff5959;
|
|
115
|
-
position: absolute;
|
|
116
|
-
bottom: 0.25rem;
|
|
117
|
-
left: 0;
|
|
118
|
-
right: 0;
|
|
119
|
-
}
|
|
120
|
-
.eds-tab--remove-active-line[aria-selected=true]::before {
|
|
121
|
-
background: transparent;
|
|
122
|
-
}
|
|
123
|
-
.eds-tab[disabled] {
|
|
124
|
-
background: #f8f8f8;
|
|
125
|
-
border-color: #f8f8f8;
|
|
126
|
-
color: #d1d3d3;
|
|
127
|
-
pointer-events: none;
|
|
128
|
-
}
|
|
129
|
-
.eds-contrast .eds-tab[disabled] {
|
|
130
|
-
background: #292b6a;
|
|
131
|
-
border-color: #292b6a;
|
|
132
|
-
color: #babbcf;
|
|
133
|
-
}
|
|
134
|
-
.eds-tab:focus {
|
|
135
|
-
outline: none;
|
|
136
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
137
|
-
}
|
|
138
|
-
.eds-contrast .eds-tab:focus {
|
|
139
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
188
|
+
:root{
|
|
189
|
+
--eds-tab:1;
|
|
140
190
|
}
|
|
141
191
|
|
|
142
|
-
.eds-tab-
|
|
143
|
-
|
|
192
|
+
.eds-tab-list{
|
|
193
|
+
position:relative;
|
|
194
|
+
top:0.125rem;
|
|
195
|
+
overflow-x:scroll;
|
|
196
|
+
display:-webkit-box;
|
|
197
|
+
display:-webkit-flex;
|
|
198
|
+
display:-moz-box;
|
|
199
|
+
display:flex;
|
|
200
|
+
scrollbar-width:none;
|
|
201
|
+
padding-top:0.25rem;
|
|
202
|
+
margin-top:-0.25rem;
|
|
203
|
+
z-index:0;
|
|
204
|
+
}
|
|
205
|
+
.eds-tab-list::after{
|
|
206
|
+
content:"";
|
|
207
|
+
position:absolute;
|
|
208
|
+
bottom:0;
|
|
209
|
+
left:0;
|
|
210
|
+
right:0;
|
|
211
|
+
background-color:#e3e6e8;
|
|
212
|
+
background-color:var(--components-tab-standard-border);
|
|
213
|
+
display:block;
|
|
214
|
+
height:0.125rem;
|
|
215
|
+
width:inherit;
|
|
216
|
+
z-index:-1;
|
|
217
|
+
}
|
|
218
|
+
.eds-contrast .eds-tab-list::after{
|
|
219
|
+
background-color:#aeb7e2;
|
|
220
|
+
background-color:var(--components-tab-contrast-border);
|
|
221
|
+
}
|
|
222
|
+
.eds-tab-list::-webkit-scrollbar{
|
|
223
|
+
display:none;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.eds-tab{
|
|
227
|
+
-webkit-appearance:none;
|
|
228
|
+
-moz-appearance:none;
|
|
229
|
+
appearance:none;
|
|
230
|
+
background:#edf0f2;
|
|
231
|
+
background:var(--components-tab-standard-fill-unselected);
|
|
232
|
+
border:0.125rem solid transparent;
|
|
233
|
+
-webkit-border-radius:0.25rem 0.25rem 0 0;
|
|
234
|
+
-moz-border-radius:0.25rem 0.25rem 0 0;
|
|
235
|
+
border-radius:0.25rem 0.25rem 0 0;
|
|
236
|
+
color:#181c56;
|
|
237
|
+
color:var(--components-tab-standard-text);
|
|
238
|
+
cursor:pointer;
|
|
239
|
+
display:-webkit-inline-box;
|
|
240
|
+
display:-webkit-inline-flex;
|
|
241
|
+
display:-moz-inline-box;
|
|
242
|
+
display:inline-flex;
|
|
243
|
+
-webkit-box-align:center;
|
|
244
|
+
-webkit-align-items:center;
|
|
245
|
+
-moz-box-align:center;
|
|
246
|
+
align-items:center;
|
|
247
|
+
-webkit-box-pack:center;
|
|
248
|
+
-webkit-justify-content:center;
|
|
249
|
+
-moz-box-pack:center;
|
|
250
|
+
justify-content:center;
|
|
251
|
+
font-family:inherit;
|
|
252
|
+
font-size:inherit;
|
|
253
|
+
height:3rem;
|
|
254
|
+
line-height:inherit;
|
|
255
|
+
margin:0;
|
|
256
|
+
min-width:8rem;
|
|
257
|
+
padding:0.5rem 1rem;
|
|
258
|
+
position:relative;
|
|
259
|
+
}
|
|
260
|
+
.eds-tab-list--width-fluid .eds-tab{
|
|
261
|
+
-webkit-box-flex:1;
|
|
262
|
+
-webkit-flex-grow:1;
|
|
263
|
+
-moz-box-flex:1;
|
|
264
|
+
flex-grow:1;
|
|
265
|
+
min-width:0;
|
|
266
|
+
}
|
|
267
|
+
.eds-contrast .eds-tab{
|
|
268
|
+
background-color:#393d79;
|
|
269
|
+
background-color:var(--components-tab-contrast-fill-unselected);
|
|
270
|
+
color:#ffffff;
|
|
271
|
+
color:var(--components-tab-contrast-text);
|
|
272
|
+
}
|
|
273
|
+
.eds-tab:hover{
|
|
274
|
+
background-color:#e3e6e8;
|
|
275
|
+
background-color:var(--components-tab-standard-fill-hover);
|
|
276
|
+
color:var(--components-menu-tableofcontent-standard-text-selected);
|
|
277
|
+
}
|
|
278
|
+
.eds-contrast .eds-tab:hover{
|
|
279
|
+
background-color:#626493;
|
|
280
|
+
background-color:var(--components-tab-contrast-fill-hover);
|
|
281
|
+
color:#ffffff;
|
|
282
|
+
color:var(--components-tab-contrast-text);
|
|
283
|
+
}
|
|
284
|
+
.eds-tab + .eds-tab{
|
|
285
|
+
margin-left:0.25rem;
|
|
286
|
+
}
|
|
287
|
+
.eds-tab::after{
|
|
288
|
+
content:"";
|
|
289
|
+
position:absolute;
|
|
290
|
+
bottom:-0.125rem;
|
|
291
|
+
left:-0.125rem;
|
|
292
|
+
right:-0.125rem;
|
|
293
|
+
background-color:#e3e6e8;
|
|
294
|
+
background-color:var(--components-tab-standard-border);
|
|
295
|
+
display:block;
|
|
296
|
+
height:0.125rem;
|
|
297
|
+
}
|
|
298
|
+
.eds-contrast .eds-tab::after{
|
|
299
|
+
background-color:#aeb7e2;
|
|
300
|
+
background-color:var(--components-tab-contrast-border);
|
|
301
|
+
}
|
|
302
|
+
.eds-tab[aria-selected=true]{
|
|
303
|
+
background-color:#ffffff;
|
|
304
|
+
background-color:var(--components-tab-standard-fill-selected);
|
|
305
|
+
border-color:#e3e6e8;
|
|
306
|
+
border-color:var(--components-tab-standard-border);
|
|
307
|
+
color:#181c56;
|
|
308
|
+
color:var(--components-tab-standard-text);
|
|
309
|
+
font-weight:600;
|
|
310
|
+
}
|
|
311
|
+
.eds-contrast .eds-tab[aria-selected=true]{
|
|
312
|
+
background-color:#181c56;
|
|
313
|
+
background-color:var(--components-tab-contrast-fill-selected);
|
|
314
|
+
color:#ffffff;
|
|
315
|
+
color:var(--components-tab-contrast-text);
|
|
316
|
+
border-color:#aeb7e2;
|
|
317
|
+
border-color:var(--components-tab-contrast-border);
|
|
318
|
+
}
|
|
319
|
+
.eds-tab[aria-selected=true]::after{
|
|
320
|
+
background-color:#ffffff;
|
|
321
|
+
background-color:var(--components-tab-standard-fill-selected);
|
|
322
|
+
left:0;
|
|
323
|
+
right:0;
|
|
324
|
+
}
|
|
325
|
+
.eds-contrast .eds-tab[aria-selected=true]::after{
|
|
326
|
+
background-color:#181c56;
|
|
327
|
+
background-color:var(--components-tab-contrast-fill-selected);
|
|
328
|
+
}
|
|
329
|
+
.eds-tab[aria-selected=true]::before{
|
|
330
|
+
content:"";
|
|
331
|
+
display:block;
|
|
332
|
+
margin:0 auto;
|
|
333
|
+
width:2rem;
|
|
334
|
+
height:3px;
|
|
335
|
+
background:#ff5959;
|
|
336
|
+
background:var(--components-tab-standard-underline-selected);
|
|
337
|
+
position:absolute;
|
|
338
|
+
bottom:0.25rem;
|
|
339
|
+
left:0;
|
|
340
|
+
right:0;
|
|
341
|
+
}
|
|
342
|
+
.eds-tab--remove-active-line[aria-selected=true]::before{
|
|
343
|
+
background:transparent;
|
|
344
|
+
}
|
|
345
|
+
.eds-tab[disabled], .eds-tab[aria-disabled=true]{
|
|
346
|
+
background:#cfd2d4;
|
|
347
|
+
background:var(--components-tab-standard-fill-disabled);
|
|
348
|
+
border-color:none;
|
|
349
|
+
color:#515254;
|
|
350
|
+
color:var(--components-tab-standard-text-disabled);
|
|
351
|
+
cursor:not-allowed;
|
|
352
|
+
}
|
|
353
|
+
.eds-contrast .eds-tab[disabled], .eds-contrast .eds-tab[aria-disabled=true]{
|
|
354
|
+
background:rgba(84, 86, 140, 0.4);
|
|
355
|
+
background:var(--components-tab-contrast-fill-disabled);
|
|
356
|
+
border-color:none;
|
|
357
|
+
color:#b6b8ba;
|
|
358
|
+
color:var(--components-tab-contrast-text-disabled);
|
|
359
|
+
}
|
|
360
|
+
.eds-tab:focus-visible{
|
|
361
|
+
outline:2px solid #181c56;
|
|
362
|
+
outline-color:#181c56;
|
|
363
|
+
outline-color:var(--basecolors-stroke-focus-standard);
|
|
364
|
+
outline-offset:0.125rem;
|
|
365
|
+
}
|
|
366
|
+
.eds-contrast .eds-tab:focus-visible{
|
|
367
|
+
outline-color:#aeb7e2;
|
|
368
|
+
outline-color:var(--basecolors-stroke-focus-contrast);
|
|
144
369
|
}
|
|
145
370
|
|
|
146
|
-
.eds-tab-
|
|
147
|
-
|
|
148
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
149
|
-
outline-offset: 0.125rem;
|
|
371
|
+
.eds-tab-panels{
|
|
372
|
+
padding:1rem;
|
|
150
373
|
}
|
|
151
|
-
|
|
152
|
-
|
|
374
|
+
|
|
375
|
+
.eds-tab-panel:focus-visible{
|
|
376
|
+
outline:2px solid #181c56;
|
|
377
|
+
outline-color:#181c56;
|
|
378
|
+
outline-color:var(--basecolors-stroke-focus-standard);
|
|
379
|
+
outline-offset:0.125rem;
|
|
153
380
|
}
|
|
381
|
+
.eds-contrast .eds-tab-panel:focus-visible{
|
|
382
|
+
outline-color:#aeb7e2;
|
|
383
|
+
outline-color:var(--basecolors-stroke-focus-contrast);
|
|
384
|
+
}
|