@drivy/cobalt 0.51.0 → 1.0.0-beta.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/cjs/tokens/zIndexes.js +2 -1
- package/cjs/tokens/zIndexes.js.map +1 -1
- package/components/Accordion/index.js +16 -32
- package/components/Accordion/index.js.map +1 -1
- package/components/Alerter/index.js +45 -77
- package/components/Alerter/index.js.map +1 -1
- package/components/ContainedIcon/index.js.map +1 -1
- package/components/Form/Autocomplete/index.js +176 -155
- package/components/Form/Autocomplete/index.js.map +1 -1
- package/components/Form/Slider.js +40 -19
- package/components/Form/Slider.js.map +1 -1
- package/components/Form/field.js +9 -1
- package/components/Form/field.js.map +1 -1
- package/components/Modal/ModalHeader.js +10 -7
- package/components/Modal/ModalHeader.js.map +1 -1
- package/components/Modal/index.js +33 -97
- package/components/Modal/index.js.map +1 -1
- package/components/PhotoDropzone/index.js +2 -5
- package/components/PhotoDropzone/index.js.map +1 -1
- package/components/Tabs/index.js +19 -118
- package/components/Tabs/index.js.map +1 -1
- package/index.js +3 -3
- package/package.json +5 -12
- package/src/tokens/zIndexes.js +2 -1
- package/src/tokens/zIndexes.js.map +1 -1
- package/styles/components/Accordion/index.scss +40 -19
- package/styles/components/Alerter/index.scss +42 -42
- package/styles/components/ContainedIcon/index.scss +64 -8
- package/styles/components/Form/Autocomplete/index.scss +52 -74
- package/styles/components/Form/RadioWithDetails.scss +2 -12
- package/styles/components/Form/Slider.scss +46 -55
- package/styles/components/Form/TextInput.scss +4 -0
- package/styles/components/Form/field.scss +2 -2
- package/styles/components/Modal/index.scss +82 -63
- package/styles/components/PhotoDropzone/index.scss +4 -0
- package/styles/components/Tabs/index.scss +18 -120
- package/styles/core/z-index.scss +1 -0
- package/tokens/zIndexes.js +2 -1
- package/tokens/zIndexes.js.map +1 -1
- package/types/src/components/Accordion/index.d.ts +15 -66
- package/types/src/components/Alerter/index.d.ts +8 -19
- package/types/src/components/ContainedIcon/index.d.ts +1 -1
- package/types/src/components/Form/Autocomplete/index.d.ts +38 -37
- package/types/src/components/Form/Slider.d.ts +12 -77
- package/types/src/components/Form/field.d.ts +16 -1
- package/types/src/components/Modal/ModalHeader.d.ts +1 -1
- package/types/src/components/Modal/index.d.ts +2 -2
- package/types/src/components/Tabs/index.d.ts +9 -6
- package/types/src/index.d.ts +1 -1
- package/types/src/tokens/index.d.ts +1 -0
- package/utilities.css +59 -0
- package/utils/getCobaltTailwindcssConfig.js.map +1 -1
- package/components/Alerter/Alert.js +0 -47
- package/components/Alerter/Alert.js.map +0 -1
- package/components/Modal/ModalBody.js +0 -11
- package/components/Modal/ModalBody.js.map +0 -1
- package/components/utils/Timer.js +0 -24
- package/components/utils/Timer.js.map +0 -1
- package/components/utils/dom.js +0 -8
- package/components/utils/dom.js.map +0 -1
- package/components/utils/px.js +0 -5
- package/components/utils/px.js.map +0 -1
- package/hooks/useElementHeight.js +0 -34
- package/hooks/useElementHeight.js.map +0 -1
- package/types/src/components/Alerter/Alert.d.ts +0 -9
- package/types/src/components/Modal/ModalBody.d.ts +0 -8
|
@@ -1,75 +1,66 @@
|
|
|
1
|
-
|
|
1
|
+
.cobalt-slider {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@include withContext(".cobalt-FormField--withHint >") {
|
|
8
|
-
padding-bottom: spacing(sm);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
width: 100%;
|
|
6
|
+
&--withHint {
|
|
7
|
+
@apply c-pb-sm;
|
|
8
|
+
}
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
padding-bottom: spacing(sm);
|
|
17
|
-
width: 100%;
|
|
18
|
-
}
|
|
10
|
+
&__value-meta {
|
|
11
|
+
@apply c-text-subdued;
|
|
12
|
+
}
|
|
19
13
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
&__value-container {
|
|
15
|
+
@apply c-text-base;
|
|
16
|
+
}
|
|
23
17
|
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
&[data-disabled] {
|
|
19
|
+
.cobalt-slider__value-container {
|
|
20
|
+
@apply c-text-subdued;
|
|
26
21
|
}
|
|
22
|
+
}
|
|
27
23
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
height: spacing(md);
|
|
32
|
-
box-sizing: content-box;
|
|
33
|
-
|
|
34
|
-
// The handle will always be white in any cases
|
|
35
|
-
background: #fff;
|
|
36
|
-
cursor: pointer;
|
|
24
|
+
[data-part="control"] {
|
|
25
|
+
@apply c-py-sm c-flex c-items-center;
|
|
26
|
+
}
|
|
37
27
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
[data-part="track"] {
|
|
29
|
+
@apply c-bg-fill-subdued c-flex-1 c-rounded-full;
|
|
30
|
+
height: 3px;
|
|
41
31
|
|
|
42
|
-
[data-
|
|
43
|
-
@
|
|
44
|
-
outline: none;
|
|
45
|
-
box-shadow: elevation(base);
|
|
32
|
+
&[data-disabled] {
|
|
33
|
+
@apply c-bg-disabled;
|
|
46
34
|
}
|
|
35
|
+
}
|
|
47
36
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
37
|
+
[data-part="range"] {
|
|
38
|
+
@apply c-bg-accent c-rounded-full;
|
|
39
|
+
height: 3px;
|
|
51
40
|
|
|
52
|
-
[data-
|
|
53
|
-
@
|
|
41
|
+
&[data-disabled] {
|
|
42
|
+
@apply c-bg-accentAlt;
|
|
54
43
|
}
|
|
44
|
+
}
|
|
55
45
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
46
|
+
[data-part="thumb"] {
|
|
47
|
+
@apply c-border c-border-base c-shadow;
|
|
48
|
+
width: 1.5rem;
|
|
49
|
+
height: 1.5rem;
|
|
59
50
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
51
|
+
// The handle will always be white in any cases
|
|
52
|
+
background: #fff;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
border-radius: 50%;
|
|
64
55
|
|
|
65
|
-
&
|
|
66
|
-
@
|
|
56
|
+
&[data-disabled] {
|
|
57
|
+
@apply c-bg-neutralAlt;
|
|
58
|
+
cursor: not-allowed;
|
|
67
59
|
}
|
|
68
60
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
61
|
+
&:not([data-disabled]):focus {
|
|
62
|
+
@apply c-border-accent c-border-2;
|
|
63
|
+
outline: none;
|
|
73
64
|
}
|
|
74
65
|
}
|
|
75
66
|
}
|
|
@@ -34,7 +34,7 @@ $formfield-maxwidth: 600px;
|
|
|
34
34
|
max-width: $formfield-maxwidth;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
.cobalt-FormField__Label {
|
|
38
38
|
@include text-color(base);
|
|
39
39
|
display: inline-block;
|
|
40
40
|
|
|
@@ -55,7 +55,7 @@ $formfield-maxwidth: 600px;
|
|
|
55
55
|
& + .cobalt-FormField {
|
|
56
56
|
margin-top: spacing(md);
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
.cobalt-FormField__Label {
|
|
59
59
|
margin-top: spacing(xs);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -1,115 +1,134 @@
|
|
|
1
|
-
|
|
1
|
+
.cobalt-modal {
|
|
2
|
+
--dialog-margin-top: 10vh;
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
@apply c-p-none c-z-modal;
|
|
5
|
+
position: fixed;
|
|
6
|
+
left: 0;
|
|
7
|
+
top: var(--dialog-margin-top);
|
|
4
8
|
|
|
5
|
-
.cobalt-modal {
|
|
6
9
|
display: flex;
|
|
7
|
-
|
|
8
|
-
padding: spacing(none);
|
|
10
|
+
justify-content: center;
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
width: 100%;
|
|
13
|
+
|
|
14
|
+
&__overlay {
|
|
15
|
+
@apply c-z-modal-below;
|
|
16
|
+
position: fixed;
|
|
12
17
|
|
|
13
18
|
overflow: hidden;
|
|
14
19
|
|
|
15
|
-
background-color:
|
|
20
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
21
|
+
backdrop-filter: blur(4px);
|
|
16
22
|
|
|
23
|
+
inset: 0;
|
|
17
24
|
will-change: opacity;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&[data-reach-dialog-content] {
|
|
21
|
-
@include bg-color(secondary);
|
|
22
|
-
max-height: calc(100% - 2 * #{$reach-ui-dialog-margin-top});
|
|
23
|
-
|
|
24
|
-
box-shadow: 0 6px 36px fade-out(black, 0.8);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&[data-reach-dialog-content]:not(.cobalt-modal--mobile) {
|
|
28
|
-
max-width: 38rem;
|
|
29
|
-
width: 80vw;
|
|
30
|
-
}
|
|
31
25
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
height: 100%;
|
|
26
|
+
&[data-state="open"]:not(.cobalt-modal--skipAnimation__enter) {
|
|
27
|
+
animation: c-fade-in 300ms ease-out;
|
|
35
28
|
}
|
|
36
|
-
}
|
|
37
29
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
max-width: unset;
|
|
30
|
+
&[data-state="closed"]:not(.cobalt-modal--skipAnimation__leave) {
|
|
31
|
+
animation: c-fade-out 200ms ease-in;
|
|
41
32
|
}
|
|
42
33
|
}
|
|
43
34
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
35
|
+
.cobalt-modal__content {
|
|
36
|
+
@apply c-bg-secondary;
|
|
37
|
+
max-height: calc(100% - 2 * var(--dialog-margin-top));
|
|
38
|
+
width: 80vw;
|
|
49
39
|
|
|
50
|
-
|
|
51
|
-
position: fixed;
|
|
40
|
+
box-shadow: 0 6px 36px fade-out(black, 0.8);
|
|
52
41
|
|
|
53
|
-
|
|
54
|
-
|
|
42
|
+
@include breakpoint($from: "md") {
|
|
43
|
+
@apply c-rounded-xl;
|
|
44
|
+
max-width: 38rem;
|
|
45
|
+
}
|
|
55
46
|
|
|
56
|
-
|
|
47
|
+
@include breakpoint($until: "md") {
|
|
48
|
+
position: fixed;
|
|
57
49
|
bottom: 0;
|
|
58
50
|
|
|
59
|
-
|
|
51
|
+
width: 100%;
|
|
52
|
+
max-height: calc(100% - theme("spacing.xl"));
|
|
60
53
|
|
|
61
54
|
border-radius: 16px 16px 0 0;
|
|
62
55
|
}
|
|
63
|
-
}
|
|
64
56
|
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
&[data-state="open"]:not(.cobalt-modal--skipAnimation__enter) {
|
|
58
|
+
animation: c-slide-in-from-bottom 300ms ease-out;
|
|
59
|
+
@include breakpoint($from: "md") {
|
|
60
|
+
animation: c-slide-in 300ms ease-out;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&[data-state="closed"]:not(.cobalt-modal--skipAnimation__leave) {
|
|
65
|
+
animation: c-slide-out-to-bottom 200ms ease-in;
|
|
66
|
+
@include breakpoint($from: "md") {
|
|
67
|
+
animation: c-slide-out 200ms ease-in;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
67
70
|
}
|
|
68
71
|
|
|
69
|
-
|
|
72
|
+
&--fullHeight {
|
|
70
73
|
height: 100%;
|
|
71
74
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
padding: spacing(lg) spacing(md);
|
|
75
|
+
.cobalt-modal__content {
|
|
76
|
+
height: 100%;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
77
79
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
&--fullWidth {
|
|
81
|
+
.cobalt-modal__content {
|
|
82
|
+
max-width: unset;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
81
85
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
86
|
+
&--overflowHidden {
|
|
87
|
+
.cobalt-modal__content {
|
|
88
|
+
overflow: hidden;
|
|
85
89
|
}
|
|
86
90
|
}
|
|
87
91
|
|
|
88
92
|
&-footer {
|
|
89
|
-
@
|
|
90
|
-
padding: spacing(sm);
|
|
93
|
+
@apply c-border-t c-border-t-base c-p-sm;
|
|
91
94
|
}
|
|
92
95
|
|
|
93
96
|
&-header {
|
|
94
|
-
@
|
|
97
|
+
@apply c-border-b c-border-b-base c-p-md;
|
|
95
98
|
display: flex;
|
|
96
99
|
justify-content: space-between;
|
|
97
100
|
align-items: center;
|
|
98
|
-
padding: spacing(md);
|
|
99
101
|
|
|
100
102
|
&__title {
|
|
101
|
-
@
|
|
102
|
-
@include text-color(base);
|
|
103
|
-
margin: spacing(none);
|
|
103
|
+
@apply c-text-title-md c-text-base c-m-none;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
&__close-button {
|
|
107
|
+
@apply c-p-none c-cursor-pointer;
|
|
107
108
|
flex: none;
|
|
108
109
|
border: 0;
|
|
109
|
-
padding: spacing(none);
|
|
110
110
|
|
|
111
|
-
cursor: cursor(pointer);
|
|
112
111
|
background-color: transparent;
|
|
113
112
|
}
|
|
113
|
+
|
|
114
|
+
+ .cobalt-modal-body__wrapper
|
|
115
|
+
.cobalt-modal-body.cobalt-modal-body--bodySpacing {
|
|
116
|
+
@apply c-pt-sm;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&-body {
|
|
121
|
+
height: 100%;
|
|
122
|
+
|
|
123
|
+
overflow-y: auto;
|
|
124
|
+
overscroll-behavior: contain;
|
|
125
|
+
|
|
126
|
+
&--bodySpacing {
|
|
127
|
+
@apply c-py-lg c-px-md;
|
|
128
|
+
|
|
129
|
+
&.cobalt-modal-body--hasFooter {
|
|
130
|
+
@apply c-pb-sm;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
114
133
|
}
|
|
115
134
|
}
|
|
@@ -1,114 +1,25 @@
|
|
|
1
|
-
@import "@reach/tabs/styles.css";
|
|
2
|
-
|
|
3
|
-
$scrollButtonWidth: 2rem;
|
|
4
|
-
|
|
5
1
|
.cobalt-tabs {
|
|
6
|
-
@
|
|
2
|
+
@apply c-bg-secondary;
|
|
7
3
|
position: relative;
|
|
8
4
|
}
|
|
9
5
|
|
|
10
|
-
.cobalt-tabs__nav-prev,
|
|
11
|
-
.cobalt-tabs__nav-next {
|
|
12
|
-
position: absolute;
|
|
13
|
-
top: 0;
|
|
14
|
-
|
|
15
|
-
width: $scrollButtonWidth;
|
|
16
|
-
// Tab height
|
|
17
|
-
height: calc(1rem + #{spacing(md) * 2});
|
|
18
|
-
padding: 0;
|
|
19
|
-
border: 0;
|
|
20
|
-
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
background: none;
|
|
23
|
-
|
|
24
|
-
.cobalt-tabs__nav-icon {
|
|
25
|
-
margin-left: 0;
|
|
26
|
-
|
|
27
|
-
transition: margin-left 0.2s;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&[disabled] {
|
|
31
|
-
opacity: 0.2;
|
|
32
|
-
cursor: not-allowed;
|
|
33
|
-
|
|
34
|
-
&:hover .cobalt-tabs__nav-icon,
|
|
35
|
-
&:focus .cobalt-tabs__nav-icon {
|
|
36
|
-
margin-left: 0;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.cobalt-tabs__nav-prev {
|
|
42
|
-
background: linear-gradient(
|
|
43
|
-
270deg,
|
|
44
|
-
transparent,
|
|
45
|
-
var(--c-background-secondary) 30%
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
&:hover .cobalt-tabs__nav-icon,
|
|
49
|
-
&:focus .cobalt-tabs__nav-icon {
|
|
50
|
-
margin-left: -0.4rem;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.cobalt-tabs__nav-next {
|
|
55
|
-
right: 0;
|
|
56
|
-
|
|
57
|
-
background: linear-gradient(
|
|
58
|
-
90deg,
|
|
59
|
-
transparent,
|
|
60
|
-
var(--c-background-secondary) 30%
|
|
61
|
-
);
|
|
62
|
-
|
|
63
|
-
&:hover .cobalt-tabs__nav-icon,
|
|
64
|
-
&:focus .cobalt-tabs__nav-icon {
|
|
65
|
-
margin-left: 0.4rem;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
6
|
.cobalt-tabs__labels {
|
|
70
7
|
position: relative;
|
|
71
8
|
|
|
9
|
+
display: flex;
|
|
72
10
|
width: 100%;
|
|
11
|
+
overflow-y: auto;
|
|
73
12
|
|
|
74
13
|
background: none;
|
|
75
|
-
|
|
76
|
-
&.cobalt-tabs__labels--scrollable {
|
|
77
|
-
padding: 0 $scrollButtonWidth;
|
|
78
|
-
|
|
79
|
-
overflow-x: scroll;
|
|
80
|
-
overflow-y: hidden;
|
|
81
|
-
|
|
82
|
-
// Hide horizontal scrolling bar
|
|
83
|
-
-webkit-overflow-scrolling: touch;
|
|
84
|
-
scrollbar-width: none;
|
|
85
|
-
-ms-overflow-style: none;
|
|
86
|
-
|
|
87
|
-
&::-webkit-scrollbar {
|
|
88
|
-
display: none;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// trick to force a padding-right in the scrollable tab list
|
|
92
|
-
&:after {
|
|
93
|
-
right: 0;
|
|
94
|
-
|
|
95
|
-
min-width: 2rem;
|
|
96
|
-
max-width: 2rem;
|
|
97
|
-
display: block;
|
|
98
|
-
|
|
99
|
-
content: "";
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
14
|
}
|
|
103
15
|
|
|
104
16
|
.cobalt-tabs__label {
|
|
105
|
-
@
|
|
106
|
-
@include bg-color(secondaryInteractive);
|
|
17
|
+
@apply c-text-section-heading c-bg-secondaryInteractive;
|
|
107
18
|
position: relative;
|
|
108
19
|
|
|
109
20
|
display: flex;
|
|
110
|
-
flex: 1 0 auto;
|
|
111
21
|
justify-content: center;
|
|
22
|
+
flex: 1 0 auto;
|
|
112
23
|
align-items: center;
|
|
113
24
|
padding: spacing(md);
|
|
114
25
|
border: 0;
|
|
@@ -125,32 +36,19 @@ $scrollButtonWidth: 2rem;
|
|
|
125
36
|
|
|
126
37
|
transition: 0.2s color;
|
|
127
38
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
bottom: 0;
|
|
131
|
-
left: 0;
|
|
132
|
-
right: 0;
|
|
133
|
-
|
|
134
|
-
display: block;
|
|
135
|
-
height: 3px;
|
|
136
|
-
|
|
137
|
-
content: "";
|
|
138
|
-
|
|
139
|
-
background: transparent;
|
|
140
|
-
|
|
141
|
-
transform: scaleX(0);
|
|
142
|
-
transition: transform ease-out 0.15s;
|
|
39
|
+
&[data-selected] {
|
|
40
|
+
@apply c-text-base;
|
|
143
41
|
}
|
|
42
|
+
}
|
|
144
43
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
&:after {
|
|
149
|
-
@include fill-bg-color(accent);
|
|
44
|
+
.cobalt-tabs__indicator {
|
|
45
|
+
@apply c-bg-accent;
|
|
46
|
+
top: calc(100% - 3px);
|
|
150
47
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
48
|
+
width: var(--width);
|
|
49
|
+
height: 3px;
|
|
50
|
+
--transition-duration: 0.15s;
|
|
51
|
+
--transition-timing-function: ease-in-out;
|
|
154
52
|
}
|
|
155
53
|
|
|
156
54
|
.cobalt-tabs__labels--subLevel {
|
|
@@ -158,9 +56,9 @@ $scrollButtonWidth: 2rem;
|
|
|
158
56
|
flex: 0 0 auto;
|
|
159
57
|
|
|
160
58
|
text-transform: none;
|
|
59
|
+
}
|
|
161
60
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
61
|
+
.cobalt-tabs__indicator {
|
|
62
|
+
@apply c-bg-transparent;
|
|
165
63
|
}
|
|
166
64
|
}
|
package/styles/core/z-index.scss
CHANGED
package/tokens/zIndexes.js
CHANGED
|
@@ -28,7 +28,8 @@ var _zIndexes = {
|
|
|
28
28
|
"modal-above": 91,
|
|
29
29
|
"alert-below": 99,
|
|
30
30
|
alert: alert,
|
|
31
|
-
"alert-above": 101
|
|
31
|
+
"alert-above": 101,
|
|
32
|
+
"autocomplete-popover": 2147483647
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
export { above, alert, base, below, _zIndexes as default, dropdown, header, modal, nav, sidepanel };
|
package/tokens/zIndexes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zIndexes.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zIndexes.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
export { useAccordionItemContext } from "@
|
|
2
|
+
import { AccordionItemProps as ArkAccordionItemProps, AccordionItemTriggerProps as ArkAccordionItemTriggerProps, AccordionRootProps as ArkAccordionRootProps, AccordionItemContentProps as ArkAccordionItemContentProps, AccordionValueChangeDetails } from "@ark-ui/react";
|
|
3
|
+
export { useAccordionItemContext } from "@ark-ui/react";
|
|
4
4
|
type HeadingLevelMapType = {
|
|
5
5
|
h2: 2;
|
|
6
6
|
h3: 3;
|
|
@@ -14,80 +14,29 @@ export type AccordionItemHeaderPropsType = {
|
|
|
14
14
|
* To improve the semantics of the markup further, the ARIA guidelines dictate
|
|
15
15
|
* that each accordion item's button should be wrapped in an element with
|
|
16
16
|
* role="heading", or more simply, an HTML heading tag.
|
|
17
|
-
* https://reach.tech/accordion/#accordion-headings
|
|
18
17
|
*/
|
|
19
18
|
headingLevel?: HeadingLevelMapType[HeadingTag];
|
|
20
19
|
className?: string;
|
|
21
20
|
leftToggleIcon?: boolean;
|
|
22
21
|
useChevron?: boolean;
|
|
23
|
-
} &
|
|
24
|
-
export type AccordionItemPanelPropsType =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export type AccordionItemPropsType = {
|
|
28
|
-
className?: string;
|
|
29
|
-
} & ReachAccordionItemProps;
|
|
30
|
-
export type AccordionPropsType = {
|
|
31
|
-
className?: string;
|
|
32
|
-
collapsible?: ReachAccordionProps["collapsible"];
|
|
33
|
-
defaultIndex?: ReachAccordionProps["defaultIndex"];
|
|
34
|
-
index?: ReachAccordionProps["index"];
|
|
35
|
-
multiple?: ReachAccordionProps["multiple"];
|
|
36
|
-
onChange?: ReachAccordionProps["onChange"];
|
|
37
|
-
} & ReachAccordionProps;
|
|
38
|
-
export declare const AccordionItemHeader: React.ForwardRefExoticComponent<{
|
|
39
|
-
/**
|
|
40
|
-
* To improve the semantics of the markup further, the ARIA guidelines dictate
|
|
41
|
-
* that each accordion item's button should be wrapped in an element with
|
|
42
|
-
* role="heading", or more simply, an HTML heading tag.
|
|
43
|
-
* https://reach.tech/accordion/#accordion-headings
|
|
44
|
-
*/
|
|
45
|
-
headingLevel?: 2 | 3 | 4 | 5 | 6 | undefined;
|
|
46
|
-
className?: string | undefined;
|
|
47
|
-
leftToggleIcon?: boolean | undefined;
|
|
48
|
-
useChevron?: boolean | undefined;
|
|
49
|
-
} & ReachAccordionButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
50
|
-
export declare const AccordionItemPanel: {
|
|
51
|
-
({ children, className, ...props }: AccordionItemPanelPropsType): React.JSX.Element;
|
|
52
|
-
displayName: string;
|
|
22
|
+
} & ArkAccordionItemTriggerProps;
|
|
23
|
+
export type AccordionItemPanelPropsType = ArkAccordionItemContentProps;
|
|
24
|
+
export type AccordionItemPropsType = Omit<ArkAccordionItemProps, "value"> & {
|
|
25
|
+
value?: ArkAccordionItemProps["value"];
|
|
53
26
|
};
|
|
54
|
-
export
|
|
55
|
-
(
|
|
56
|
-
displayName: string;
|
|
57
|
-
Header: React.ForwardRefExoticComponent<{
|
|
58
|
-
/**
|
|
59
|
-
* To improve the semantics of the markup further, the ARIA guidelines dictate
|
|
60
|
-
* that each accordion item's button should be wrapped in an element with
|
|
61
|
-
* role="heading", or more simply, an HTML heading tag.
|
|
62
|
-
* https://reach.tech/accordion/#accordion-headings
|
|
63
|
-
*/
|
|
64
|
-
headingLevel?: 2 | 3 | 4 | 5 | 6 | undefined;
|
|
65
|
-
className?: string | undefined;
|
|
66
|
-
leftToggleIcon?: boolean | undefined;
|
|
67
|
-
useChevron?: boolean | undefined;
|
|
68
|
-
} & ReachAccordionButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
69
|
-
Panel: {
|
|
70
|
-
({ children, className, ...props }: AccordionItemPanelPropsType): React.JSX.Element;
|
|
71
|
-
displayName: string;
|
|
72
|
-
};
|
|
27
|
+
export type AccordionPropsType = Omit<ArkAccordionRootProps, "onValueChange"> & {
|
|
28
|
+
onValueChange?: (value: AccordionValueChangeDetails["value"]) => void;
|
|
73
29
|
};
|
|
74
30
|
declare const Accordion: {
|
|
75
|
-
({ className, children,
|
|
31
|
+
({ className, children, collapsible, onValueChange, ...props }: AccordionPropsType): React.JSX.Element;
|
|
32
|
+
displayName: string;
|
|
76
33
|
Item: {
|
|
77
|
-
({ children, className, ...props }: AccordionItemPropsType): React.JSX.Element;
|
|
34
|
+
({ children, className, value, ...props }: AccordionItemPropsType): React.JSX.Element;
|
|
78
35
|
displayName: string;
|
|
79
|
-
Header:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
* role="heading", or more simply, an HTML heading tag.
|
|
84
|
-
* https://reach.tech/accordion/#accordion-headings
|
|
85
|
-
*/
|
|
86
|
-
headingLevel?: 2 | 3 | 4 | 5 | 6 | undefined;
|
|
87
|
-
className?: string | undefined;
|
|
88
|
-
leftToggleIcon?: boolean | undefined;
|
|
89
|
-
useChevron?: boolean | undefined;
|
|
90
|
-
} & ReachAccordionButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
Header: {
|
|
37
|
+
({ children, className, headingLevel, leftToggleIcon, useChevron, ...props }: AccordionItemHeaderPropsType): React.JSX.Element;
|
|
38
|
+
displayName: string;
|
|
39
|
+
};
|
|
91
40
|
Panel: {
|
|
92
41
|
({ children, className, ...props }: AccordionItemPanelPropsType): React.JSX.Element;
|
|
93
42
|
displayName: string;
|