@navikt/ds-css 7.12.2 → 7.14.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.
- package/CHANGELOG.md +16 -0
- package/config/tests/bundle.test.ts +1 -1
- package/darkside/dropdown.darkside.css +25 -35
- package/darkside/form/confirmation-panel.darkside.css +7 -21
- package/darkside/index.css +2 -1
- package/darkside/link-panel.darkside.css +37 -0
- package/darkside/panel.darkside.css +4 -4
- package/darkside/tooltip.darkside.css +24 -4
- package/date.css +11 -21
- package/dist/component/date.css +11 -21
- package/dist/component/date.min.css +1 -1
- package/dist/components.css +11 -21
- package/dist/components.min.css +1 -1
- package/dist/darkside/component/dropdown.css +15 -25
- package/dist/darkside/component/dropdown.min.css +1 -1
- package/dist/darkside/component/form.css +7 -21
- package/dist/darkside/component/form.min.css +1 -1
- package/dist/darkside/component/linkpanel.css +38 -0
- package/dist/darkside/component/linkpanel.min.css +1 -0
- package/dist/darkside/component/panel.css +4 -4
- package/dist/darkside/component/panel.min.css +1 -1
- package/dist/darkside/component/tooltip.css +24 -4
- package/dist/darkside/component/tooltip.min.css +1 -1
- package/dist/darkside/components.css +103 -70
- package/dist/darkside/components.min.css +1 -1
- package/dist/darkside/global/tokens.css +275 -233
- package/dist/darkside/global/tokens.min.css +1 -1
- package/dist/darkside/index.css +378 -303
- package/dist/darkside/index.min.css +1 -1
- package/dist/darkside/version/7.14.0/component/dropdown.css +82 -0
- package/dist/darkside/version/7.14.0/component/dropdown.min.css +1 -0
- package/dist/darkside/version/{7.12.2 → 7.14.0}/component/form.css +7 -21
- package/dist/darkside/version/7.14.0/component/form.min.css +1 -0
- package/dist/darkside/version/7.14.0/component/linkpanel.css +38 -0
- package/dist/darkside/version/7.14.0/component/linkpanel.min.css +1 -0
- package/dist/darkside/version/7.14.0/component/panel.css +12 -0
- package/dist/darkside/version/7.14.0/component/panel.min.css +1 -0
- package/dist/darkside/version/{7.12.2 → 7.14.0}/component/tooltip.css +24 -4
- package/dist/darkside/version/{7.12.2 → 7.14.0}/component/tooltip.min.css +1 -1
- package/dist/darkside/version/{7.12.2 → 7.14.0}/components.css +103 -70
- package/dist/darkside/version/7.14.0/components.min.css +1 -0
- package/dist/darkside/version/{7.12.2 → 7.14.0}/global/tokens.css +275 -233
- package/dist/darkside/version/7.14.0/global/tokens.min.css +1 -0
- package/dist/darkside/version/{7.12.2 → 7.14.0}/index.css +378 -303
- package/dist/darkside/version/7.14.0/index.min.css +1 -0
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +12 -22
- package/dist/index.min.css +2 -2
- package/package.json +2 -2
- package/dist/darkside/version/7.12.2/component/dropdown.css +0 -92
- package/dist/darkside/version/7.12.2/component/dropdown.min.css +0 -1
- package/dist/darkside/version/7.12.2/component/form.min.css +0 -1
- package/dist/darkside/version/7.12.2/component/panel.css +0 -12
- package/dist/darkside/version/7.12.2/component/panel.min.css +0 -1
- package/dist/darkside/version/7.12.2/components.min.css +0 -1
- package/dist/darkside/version/7.12.2/global/tokens.min.css +0 -1
- package/dist/darkside/version/7.12.2/index.min.css +0 -1
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/accordion.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/accordion.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/actionmenu.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/actionmenu.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/alert.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/alert.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/button.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/button.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/chat.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/chat.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/chips.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/chips.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/copybutton.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/copybutton.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/date.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/date.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/expansioncard.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/expansioncard.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/guidepanel.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/guidepanel.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/helptext.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/helptext.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/internalheader.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/internalheader.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/link.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/link.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/list.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/list.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/loader.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/loader.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/modal.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/modal.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/pagination.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/pagination.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/popover.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/popover.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/primitives.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/primitives.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/progressbar.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/progressbar.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/readmore.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/readmore.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/skeleton.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/skeleton.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/stepper.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/stepper.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/table.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/table.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/tabs.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/tabs.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/tag.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/tag.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/theme.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/theme.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/timeline.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/timeline.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/togglegroup.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/togglegroup.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/typography.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/component/typography.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/global/baseline.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/global/baseline.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/global/fonts.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/global/fonts.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/global/print.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/global/print.min.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/global/reset.css +0 -0
- /package/dist/darkside/version/{7.12.2 → 7.14.0}/global/reset.min.css +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @navikt/ds-css
|
|
2
2
|
|
|
3
|
+
## 7.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- DatePicker: Updated `date.css` to support `react-day-picker v9`. ([#3525](https://github.com/navikt/aksel/pull/3525))
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Darkside: Added 'arrow' back to Tooltip. ([#3589](https://github.com/navikt/aksel/pull/3589))
|
|
12
|
+
|
|
13
|
+
## 7.13.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Darkside: Added support for `ConfirmationpPanel`, `Linkpanel`, `Panel` and `Dropdown`. Note that all of these will be deprecated in the future. ([#3581](https://github.com/navikt/aksel/pull/3581))
|
|
18
|
+
|
|
3
19
|
## 7.12.2
|
|
4
20
|
|
|
5
21
|
## 7.12.1
|
|
@@ -6,7 +6,7 @@ import { describe, expect, test } from "vitest";
|
|
|
6
6
|
* Darkside config might have some new files added. We can skip these when checking for equality.
|
|
7
7
|
*/
|
|
8
8
|
const newFiles = ["theme"];
|
|
9
|
-
const deprecatedFiles = [
|
|
9
|
+
const deprecatedFiles: string[] = [];
|
|
10
10
|
|
|
11
11
|
describe("Check that old and new (darkside) bundle matches", () => {
|
|
12
12
|
test("Darkside includes the same files as old bundle", () => {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
.navds-dropdown__menu {
|
|
2
2
|
overflow: hidden;
|
|
3
|
-
padding: var(--
|
|
4
|
-
color: var(--
|
|
3
|
+
padding: var(--ax-space-8);
|
|
4
|
+
color: var(--ax-text-neutral);
|
|
5
5
|
width: 27ch;
|
|
6
6
|
max-height: 616px;
|
|
7
7
|
overflow-y: auto;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.navds-dropdown__divider {
|
|
11
|
-
margin: var(--
|
|
11
|
+
margin: var(--ax-space-12) 0;
|
|
12
12
|
border: none;
|
|
13
|
-
border-bottom: 1px solid var(--
|
|
13
|
+
border-bottom: 1px solid var(--ax-border-neutral-subtle);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.navds-dropdown__menu > :not(.navds-dropdown__divider, .navds-dropdown__list) {
|
|
17
|
-
margin: 0 var(--
|
|
17
|
+
margin: 0 var(--ax-space-16) var(--ax-space-12);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.navds-dropdown__list {
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.navds-dropdown__list-heading {
|
|
31
|
-
margin: var(--
|
|
31
|
+
margin-block: var(--ax-space-4) var(--ax-space-12);
|
|
32
|
+
margin-inline: var(--ax-space-4);
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
.navds-dropdown__item {
|
|
@@ -36,7 +37,6 @@
|
|
|
36
37
|
margin: 0;
|
|
37
38
|
overflow: visible;
|
|
38
39
|
background: transparent;
|
|
39
|
-
color: var(--ac-dropdown-item-text, var(--a-text-action));
|
|
40
40
|
font: inherit;
|
|
41
41
|
text-decoration: none;
|
|
42
42
|
text-align: left;
|
|
@@ -44,39 +44,29 @@
|
|
|
44
44
|
width: 100%;
|
|
45
45
|
display: flex;
|
|
46
46
|
align-items: center;
|
|
47
|
-
gap: var(--
|
|
48
|
-
padding: var(--
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
.navds-dropdown__item:hover {
|
|
52
|
-
background-color: var(--ac-dropdown-item-hover-bg, var(--a-surface-action-subtle-hover));
|
|
53
|
-
color: var(--ac-dropdown-item-hover-text, var(--a-text-action-hover));
|
|
54
|
-
}
|
|
47
|
+
gap: var(--ax-space-8);
|
|
48
|
+
padding: var(--ax-space-4);
|
|
49
|
+
border-radius: var(--ax-border-radius-medium);
|
|
50
|
+
color: var(--ax-text-neutral);
|
|
55
51
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
52
|
+
&:hover {
|
|
53
|
+
background-color: var(--ax-bg-accent-moderate-hoverA);
|
|
54
|
+
}
|
|
60
55
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
65
|
-
}
|
|
56
|
+
&:active {
|
|
57
|
+
background-color: var(--ax-bg-accent-moderate-pressedA);
|
|
58
|
+
}
|
|
66
59
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
outline:
|
|
70
|
-
outline-offset: -2px;
|
|
71
|
-
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
60
|
+
&:focus-visible {
|
|
61
|
+
outline: 3px solid var(--ax-border-focus);
|
|
62
|
+
outline-offset: -3px;
|
|
72
63
|
}
|
|
73
|
-
}
|
|
74
64
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
65
|
+
&:disabled {
|
|
66
|
+
opacity: var(--ax-opacity-disabled);
|
|
67
|
+
background: transparent;
|
|
68
|
+
cursor: not-allowed;
|
|
69
|
+
}
|
|
80
70
|
}
|
|
81
71
|
|
|
82
72
|
@media (forced-colors: active) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.navds-confirmation-panel__inner {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap: var(--
|
|
5
|
-
padding: var(--
|
|
6
|
-
border-radius: var(--
|
|
7
|
-
border: 1px solid var(--
|
|
8
|
-
background-color: var(--
|
|
4
|
+
gap: var(--ax-space-12);
|
|
5
|
+
padding: var(--ax-space-16);
|
|
6
|
+
border-radius: var(--ax-border-radius-large);
|
|
7
|
+
border: 1px solid var(--ax-border-default);
|
|
8
|
+
background-color: var(--ax-bg-moderate);
|
|
9
9
|
transition: background-color linear 100ms;
|
|
10
10
|
justify-self: stretch;
|
|
11
11
|
position: relative;
|
|
@@ -15,20 +15,6 @@
|
|
|
15
15
|
max-width: 80ch;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.navds-confirmation-panel--checked .navds-confirmation-panel__inner {
|
|
19
|
-
border-color: var(--ac-confirmation-panel-checked-border, var(--a-border-success));
|
|
20
|
-
background-color: var(--ac-confirmation-panel-checked-bg, var(--a-surface-success-subtle));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.navds-confirmation-panel--error .navds-confirmation-panel__inner {
|
|
24
|
-
border-color: var(--ac-confirmation-panel-error-border, var(--a-border-danger));
|
|
25
|
-
background-color: var(--ac-confirmation-panel-error-bg, var(--a-surface-danger-subtle));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.navds-confirmation-panel--error .navds-checkbox__input:hover:not(:disabled) + .navds-checkbox__label {
|
|
29
|
-
color: var(--a-text-default);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
18
|
@media (forced-colors: active) {
|
|
33
19
|
.navds-confirmation-panel__inner::before {
|
|
34
20
|
content: "";
|
|
@@ -39,8 +25,8 @@
|
|
|
39
25
|
border-left: 8px solid;
|
|
40
26
|
border-color: orange;
|
|
41
27
|
forced-color-adjust: none;
|
|
42
|
-
border-start-start-radius: calc(var(--
|
|
43
|
-
border-end-start-radius: calc(var(--
|
|
28
|
+
border-start-start-radius: calc(var(--ax-border-radius-large) - 1px);
|
|
29
|
+
border-end-start-radius: calc(var(--ax-border-radius-large) - 1px);
|
|
44
30
|
}
|
|
45
31
|
|
|
46
32
|
.navds-confirmation-panel--checked .navds-confirmation-panel__inner::before {
|
package/darkside/index.css
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@import "./baseline/print.darkside.css" layer(aksel.print);
|
|
12
12
|
|
|
13
13
|
/* ------------------------------- Components ------------------------------- */
|
|
14
|
+
@import "./theme.darkside.css" layer(aksel.components);
|
|
14
15
|
@import "./typography.darkside.css" layer(aksel.components);
|
|
15
16
|
@import "./button.darkside.css" layer(aksel.components);
|
|
16
17
|
@import "./chips.darkside.css" layer(aksel.components);
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
@import "./help-text.darkside.css" layer(aksel.components);
|
|
37
38
|
@import "./internalheader.darkside.css" layer(aksel.components);
|
|
38
39
|
@import "./link.darkside.css" layer(aksel.components);
|
|
40
|
+
@import "./link-panel.darkside.css" layer(aksel.components);
|
|
39
41
|
@import "./loader.darkside.css" layer(aksel.components);
|
|
40
42
|
@import "./modal.darkside.css" layer(aksel.components);
|
|
41
43
|
@import "./pagination.darkside.css" layer(aksel.components);
|
|
@@ -52,7 +54,6 @@
|
|
|
52
54
|
@import "./table.darkside.css" layer(aksel.components);
|
|
53
55
|
@import "./tabs.darkside.css" layer(aksel.components);
|
|
54
56
|
@import "./list.darkside.css" layer(aksel.components);
|
|
55
|
-
@import "./theme.darkside.css" layer(aksel.components);
|
|
56
57
|
|
|
57
58
|
/* --------------------------------- Layout --------------------------------- */
|
|
58
59
|
@import "./primitives/index.css" layer(aksel.layout);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.navds-link-panel {
|
|
2
|
+
text-decoration: none;
|
|
3
|
+
color: var(--ax-text-neutral);
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
gap: var(--ax-space-16);
|
|
8
|
+
|
|
9
|
+
&:hover {
|
|
10
|
+
border-color: var(--ax-border-accent);
|
|
11
|
+
|
|
12
|
+
& .navds-link-panel__title {
|
|
13
|
+
text-decoration: underline;
|
|
14
|
+
color: var(--ax-text-accent-subtle);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:focus-visible {
|
|
19
|
+
outline: 3px solid var(--ax-border-focus);
|
|
20
|
+
outline-offset: 3px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.navds-link-panel__chevron {
|
|
25
|
+
flex-shrink: 0;
|
|
26
|
+
font-size: 1.5rem;
|
|
27
|
+
transition: transform 200ms;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.navds-link-panel:hover > .navds-link-panel__chevron,
|
|
31
|
+
.navds-link-panel:focus-within > .navds-link-panel__chevron {
|
|
32
|
+
transform: translateX(4px);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.navds-link-panel__description {
|
|
36
|
+
margin-top: var(--a-space-4);
|
|
37
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.navds-panel {
|
|
2
|
-
background-color: var(--
|
|
3
|
-
padding: var(--
|
|
4
|
-
border-radius: var(--
|
|
2
|
+
background-color: var(--ax-bg-default);
|
|
3
|
+
padding: var(--ax-space-16);
|
|
4
|
+
border-radius: var(--ax-border-radius-small);
|
|
5
5
|
border: 1px solid transparent;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.navds-panel--border {
|
|
9
|
-
border-color: var(--
|
|
9
|
+
border-color: var(--ax-border-neutral);
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.navds-tooltip {
|
|
2
2
|
z-index: 3000;
|
|
3
|
-
background-color: var(--ax-bg-
|
|
4
|
-
color: var(--ax-text-neutral);
|
|
3
|
+
background-color: var(--ax-bg-neutral-strong);
|
|
4
|
+
color: var(--ax-text-neutral-contrast);
|
|
5
5
|
border-radius: var(--ax-border-radius-medium);
|
|
6
6
|
padding: 0 var(--ax-space-6);
|
|
7
7
|
align-items: center;
|
|
@@ -10,8 +10,28 @@
|
|
|
10
10
|
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
11
11
|
animation-duration: 150ms;
|
|
12
12
|
text-align: center;
|
|
13
|
-
border: 1px solid var(--ax-border-neutral-subtleA);
|
|
14
13
|
box-shadow: var(--ax-shadow-dialog);
|
|
14
|
+
border: 1px solid transparent;
|
|
15
|
+
|
|
16
|
+
&:focus {
|
|
17
|
+
outline: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.navds-tooltip__arrow {
|
|
22
|
+
height: 0.5rem;
|
|
23
|
+
width: 0.5rem;
|
|
24
|
+
z-index: -1;
|
|
25
|
+
background-color: var(--ax-bg-neutral-strong);
|
|
26
|
+
position: absolute;
|
|
27
|
+
border-radius: 1px;
|
|
28
|
+
transform: rotate(45deg);
|
|
29
|
+
|
|
30
|
+
@media (forced-colors: active) {
|
|
31
|
+
& {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
15
35
|
}
|
|
16
36
|
|
|
17
37
|
.navds-tooltip:where([data-state="open"]):where([data-side="bottom"]) {
|
|
@@ -96,7 +116,7 @@
|
|
|
96
116
|
align-items: center;
|
|
97
117
|
justify-content: center;
|
|
98
118
|
border-radius: var(--ax-border-radius-small);
|
|
99
|
-
background: var(--ax-bg-neutral-
|
|
119
|
+
background: var(--ax-bg-neutral-moderate);
|
|
100
120
|
|
|
101
121
|
@media (forced-colors: active) {
|
|
102
122
|
& {
|
package/date.css
CHANGED
|
@@ -22,30 +22,13 @@
|
|
|
22
22
|
font-size: var(--a-font-size-small);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.navds-
|
|
26
|
-
font-size:
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
width: 2rem;
|
|
31
|
-
height: 2rem;
|
|
32
|
-
border-radius: var(--a-border-radius-medium);
|
|
33
|
-
margin: var(--a-spacing-2);
|
|
34
|
-
color: var(--a-text-subtle);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.navds-date .rdp-weeknumber.rdp-button {
|
|
38
|
-
width: 2rem;
|
|
39
|
-
height: 2rem;
|
|
40
|
-
box-shadow: 0 0 0 1px var(--a-border-default);
|
|
25
|
+
.navds-date__weeknumber-number {
|
|
26
|
+
font-size: 0.875rem;
|
|
41
27
|
color: var(--a-text-subtle);
|
|
42
|
-
font-size: var(--a-font-size-small);
|
|
43
28
|
}
|
|
44
29
|
|
|
45
|
-
.navds-
|
|
46
|
-
|
|
47
|
-
color: var(--a-text-on-action);
|
|
48
|
-
box-shadow: none;
|
|
30
|
+
.navds-date__weeknumber:active .navds-date__weeknumber-number {
|
|
31
|
+
color: var(--a-text-on-neutral);
|
|
49
32
|
}
|
|
50
33
|
|
|
51
34
|
.navds-date__caption__month .navds-select__container select {
|
|
@@ -303,6 +286,13 @@
|
|
|
303
286
|
margin: 0;
|
|
304
287
|
}
|
|
305
288
|
|
|
289
|
+
span.rdp-weeknumber {
|
|
290
|
+
display: grid;
|
|
291
|
+
place-content: center;
|
|
292
|
+
width: 2rem;
|
|
293
|
+
height: 2rem;
|
|
294
|
+
}
|
|
295
|
+
|
|
306
296
|
.navds-date__modal.navds-date {
|
|
307
297
|
padding: 0;
|
|
308
298
|
}
|
package/dist/component/date.css
CHANGED
|
@@ -22,30 +22,13 @@
|
|
|
22
22
|
font-size: var(--a-font-size-small);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.navds-
|
|
26
|
-
font-size:
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
width: 2rem;
|
|
31
|
-
height: 2rem;
|
|
32
|
-
border-radius: var(--a-border-radius-medium);
|
|
33
|
-
margin: var(--a-spacing-2);
|
|
34
|
-
color: var(--a-text-subtle);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.navds-date .rdp-weeknumber.rdp-button {
|
|
38
|
-
width: 2rem;
|
|
39
|
-
height: 2rem;
|
|
40
|
-
box-shadow: 0 0 0 1px var(--a-border-default);
|
|
25
|
+
.navds-date__weeknumber-number {
|
|
26
|
+
font-size: 0.875rem;
|
|
41
27
|
color: var(--a-text-subtle);
|
|
42
|
-
font-size: var(--a-font-size-small);
|
|
43
28
|
}
|
|
44
29
|
|
|
45
|
-
.navds-
|
|
46
|
-
|
|
47
|
-
color: var(--a-text-on-action);
|
|
48
|
-
box-shadow: none;
|
|
30
|
+
.navds-date__weeknumber:active .navds-date__weeknumber-number {
|
|
31
|
+
color: var(--a-text-on-neutral);
|
|
49
32
|
}
|
|
50
33
|
|
|
51
34
|
.navds-date__caption__month .navds-select__container select {
|
|
@@ -306,6 +289,13 @@
|
|
|
306
289
|
margin: 0;
|
|
307
290
|
}
|
|
308
291
|
|
|
292
|
+
span.rdp-weeknumber {
|
|
293
|
+
display: grid;
|
|
294
|
+
place-content: center;
|
|
295
|
+
width: 2rem;
|
|
296
|
+
height: 2rem;
|
|
297
|
+
}
|
|
298
|
+
|
|
309
299
|
.navds-date__modal.navds-date {
|
|
310
300
|
padding: 0;
|
|
311
301
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.navds-date{padding:var(--a-spacing-4) var(--a-spacing-3)}.navds-date .rdp-day_range_middle.rdp-day_disabled{background:var(--ac-date-middle-bg,var(--a-surface-action-selected));color:var(--ac-date-middle-text,var(--a-text-on-action))}.navds-date .rdp-month,.navds-date.rdp-month{display:grid;gap:var(--a-spacing-5)}.navds-date__caption-label{text-transform:capitalize}.navds-date .rdp-head_cell{font-size:var(--a-font-size-small);text-transform:capitalize}.navds-
|
|
1
|
+
.navds-date{padding:var(--a-spacing-4) var(--a-spacing-3)}.navds-date .rdp-day_range_middle.rdp-day_disabled{background:var(--ac-date-middle-bg,var(--a-surface-action-selected));color:var(--ac-date-middle-text,var(--a-text-on-action))}.navds-date .rdp-month,.navds-date.rdp-month{display:grid;gap:var(--a-spacing-5)}.navds-date__caption-label{text-transform:capitalize}.navds-date .rdp-head_cell{font-size:var(--a-font-size-small);text-transform:capitalize}.navds-date__weeknumber-number{color:var(--a-text-subtle);font-size:.875rem}.navds-date__weeknumber:active .navds-date__weeknumber-number{color:var(--a-text-on-neutral)}.navds-date__caption__month .navds-select__container select{text-transform:capitalize}.navds-date .rdp-button{all:unset;border-radius:var(--a-border-radius-medium);display:block;height:2.5rem;text-align:center;width:2.5rem}.navds-date .rdp-day_range_start{border-radius:var(--a-border-radius-xlarge) var(--a-border-radius-medium) var(--a-border-radius-medium) var(--a-border-radius-xlarge)}.navds-date .rdp-day_range_end:not(.rdp-day_range_start){border-radius:var(--a-border-radius-medium) var(--a-border-radius-xlarge) var(--a-border-radius-xlarge) var(--a-border-radius-medium)}.navds-date .rdp-day_range_start.rdp-day_range_end{border-radius:var(--a-border-radius-xlarge)}.navds-date .navds-date__month-button:not(.rdp-day_selected,[disabled]):focus-visible,.navds-date .rdp-button:not(.rdp-day_selected,[disabled]):focus-visible{box-shadow:var(--a-shadow-focus)}@supports not selector(:focus-visible){.navds-date .navds-date__month-button:not(.rdp-day_selected,[disabled]):focus,.navds-date .rdp-button:not(.rdp-day_selected,[disabled]):focus{box-shadow:var(--a-shadow-focus)}}.navds-date .navds-date__month-button.rdp-day_selected:not([disabled]):focus-visible,.navds-date .rdp-button.rdp-day_selected:not([disabled]):focus-visible{box-shadow:inset 0 0 0 1px var(--a-surface-default),var(--a-shadow-focus)}@supports not selector(:focus-visible){.navds-date .navds-date__month-button.rdp-day_selected:not([disabled]):focus,.navds-date .rdp-button.rdp-day_selected:not([disabled]):focus{box-shadow:inset 0 0 0 1px var(--a-surface-default),var(--a-shadow-focus)}}.navds-date__month-button{all:unset;border-radius:var(--a-border-radius-medium);cursor:pointer;height:3rem;text-align:center;text-transform:capitalize;width:3rem}.navds-date__month-button:focus-visible,.navds-monthpicker__caption-button:focus-visible{box-shadow:var(--a-shadow-focus);z-index:1}@supports not selector(:focus-visible){.navds-date__month-button:focus,.navds-monthpicker__caption-button:focus{box-shadow:var(--a-shadow-focus);z-index:1}}.navds-date__year-label{align-items:center;display:flex}.navds-date__standalone-wrapper,.navds-date__wrapper{height:fit-content;width:fit-content}.navds-date .navds-date__field{display:flex;flex-direction:column;position:relative;width:100%}.navds-date__field-wrapper{align-items:center;display:inline-flex;position:relative;width:fit-content}.navds-date .rdp-day_selected,.navds-monthpicker__month--selected{background:var(--ac-date-selected-bg,var(--a-surface-action-selected));color:var(--ac-date-selected-text,var(--a-text-on-action));cursor:pointer}.navds-date .rdp-day_disabled{background-color:var(--ac-date-disabled-bg,var(--a-surface-neutral-subtle));color:var(--ac-date-disabled-text,var(--a-text-subtle));cursor:not-allowed;text-decoration:line-through}.navds-date .rdp-button:where(:not(.rdp-day_selected,[disabled])):hover,.navds-date__month-button:where(:not(.rdp-day_selected,[disabled])):hover{background:var(--ac-date-hover-bg,var(--a-surface-action-subtle-hover));cursor:pointer}.navds-date .rdp-day_today{box-shadow:0 0 0 1px var(--ac-date-today-border,var(--a-border-action-selected));text-decoration:underline}.navds-date__caption{align-items:center;display:flex;gap:var(--a-spacing-1);justify-content:space-between;padding-inline:var(--a-spacing-1)}.navds-date__caption-button,.navds-date__caption-button:disabled,.navds-date__caption-button:disabled:hover{color:var(--ac-date-caption-text,var(--a-text-default))}.navds-date__field-input{padding-right:var(--a-spacing-12)}.navds-form-field--small .navds-date__field-input{padding-right:var(--a-spacing-8)}.navds-date__field--error .navds-date__field-input:not(:hover,:disabled){border-color:var(--ac-date-input-error-border,var(--a-border-danger));box-shadow:inset 0 0 0 1px var(--ac-date-input-error-border,var(--a-border-danger))}.navds-date__field--error .navds-date__field-input:focus-visible:not(:hover,:disabled){box-shadow:inset 0 0 0 1px var(--ac-date-input-error-border,var(--a-border-danger)),var(--a-shadow-focus)}@supports not selector(:focus-visible){.navds-date__field--error .navds-date__field-input:focus:not(:hover,:disabled){box-shadow:inset 0 0 0 1px var(--ac-date-input-error-border,var(--a-border-danger)),var(--a-shadow-focus)}}.navds-date__field-button{align-items:center;background:none;border:none;border-radius:calc(var(--a-border-radius-medium) - 1px);border-end-start-radius:0;border-start-start-radius:0;color:var(--ac-date-input-button-text,var(--a-text-default));cursor:pointer;display:inline-flex;font-size:1.5rem;height:calc(100% - .125rem);justify-content:center;margin:0;padding:var(--a-spacing-3);position:absolute;right:.0625rem;text-decoration:none;top:50%;transform:translateY(-50%)}.navds-form-field--small .navds-date__field-button{padding:var(--a-spacing-1)}.navds-date__field-button:hover:where(:not([disabled])){background-color:var(--ac-date-input-button-hover-bg,var(--a-surface-action-subtle-hover));color:var(--ac-date-input-button-hover-text,var(--a-text-action-on-action-subtle))}.navds-form-field--disabled .navds-date__field-button{cursor:not-allowed;opacity:1}.navds-date__field-button:focus-visible{border-radius:var(--a-border-radius-medium);box-shadow:var(--a-shadow-focus);outline:none}@supports not selector(:focus-visible){.navds-date__field-button:focus{box-shadow:var(--a-shadow-focus);outline:none}}.navds-date__caption__year{width:5rem}.navds-date .rdp-day_outside{pointer-events:none;visibility:hidden}.navds-date__field--readonly .navds-date__field-button{color:var(--a-gray-500);cursor:default}.navds-date__caption-button{height:2rem;width:2rem}.navds-date__week-row{align-items:center;display:flex;gap:var(--a-spacing-05)}.navds-date__week-wrapper{align-items:center;display:flex;justify-content:center;margin:0;width:2.5rem}span.rdp-weeknumber{display:grid;height:2rem;place-content:center;width:2rem}.navds-date__modal.navds-date{padding:0}.navds-date__modal-body{align-items:flex-end;display:flex;flex-direction:column;gap:var(--a-spacing-2);padding:var(--a-spacing-4)}.navds-date__modal-body>.navds-date{padding:0}.navds-date__popover:where(.navds-popover){border:none}@media (min-width:480px){.navds-date{padding:var(--a-spacing-5) var(--a-spacing-4)}.navds-date__modal-body{padding:var(--a-spacing-6)}.navds-date__caption{gap:var(--a-spacing-2)}.navds-date .rdp-button,.navds-date__caption-button{height:3rem;width:3rem}}
|
package/dist/components.css
CHANGED
|
@@ -5416,30 +5416,13 @@ button.navds-internalheader__title:active,
|
|
|
5416
5416
|
font-size: var(--a-font-size-small);
|
|
5417
5417
|
}
|
|
5418
5418
|
|
|
5419
|
-
.navds-
|
|
5420
|
-
font-size:
|
|
5421
|
-
display: flex;
|
|
5422
|
-
align-items: center;
|
|
5423
|
-
justify-content: center;
|
|
5424
|
-
width: 2rem;
|
|
5425
|
-
height: 2rem;
|
|
5426
|
-
border-radius: var(--a-border-radius-medium);
|
|
5427
|
-
margin: var(--a-spacing-2);
|
|
5419
|
+
.navds-date__weeknumber-number {
|
|
5420
|
+
font-size: 0.875rem;
|
|
5428
5421
|
color: var(--a-text-subtle);
|
|
5429
5422
|
}
|
|
5430
5423
|
|
|
5431
|
-
.navds-
|
|
5432
|
-
|
|
5433
|
-
height: 2rem;
|
|
5434
|
-
box-shadow: 0 0 0 1px var(--a-border-default);
|
|
5435
|
-
color: var(--a-text-subtle);
|
|
5436
|
-
font-size: var(--a-font-size-small);
|
|
5437
|
-
}
|
|
5438
|
-
|
|
5439
|
-
.navds-date .rdp-weeknumber.rdp-button:active {
|
|
5440
|
-
background-color: var(--a-surface-action-active);
|
|
5441
|
-
color: var(--a-text-on-action);
|
|
5442
|
-
box-shadow: none;
|
|
5424
|
+
.navds-date__weeknumber:active .navds-date__weeknumber-number {
|
|
5425
|
+
color: var(--a-text-on-neutral);
|
|
5443
5426
|
}
|
|
5444
5427
|
|
|
5445
5428
|
.navds-date__caption__month .navds-select__container select {
|
|
@@ -5700,6 +5683,13 @@ button.navds-internalheader__title:active,
|
|
|
5700
5683
|
margin: 0;
|
|
5701
5684
|
}
|
|
5702
5685
|
|
|
5686
|
+
span.rdp-weeknumber {
|
|
5687
|
+
display: grid;
|
|
5688
|
+
place-content: center;
|
|
5689
|
+
width: 2rem;
|
|
5690
|
+
height: 2rem;
|
|
5691
|
+
}
|
|
5692
|
+
|
|
5703
5693
|
.navds-date__modal.navds-date {
|
|
5704
5694
|
padding: 0;
|
|
5705
5695
|
}
|