jsl-ui 10.4.3 → 10.4.5

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/docs/AutoSuggestComponent.md +17 -17
  2. package/docs/ButtonComponent.md +22 -22
  3. package/docs/CheckBoxComponent.md +12 -12
  4. package/docs/DataBinding.md +19 -19
  5. package/docs/DateComponent.md +12 -12
  6. package/docs/DateRangeComponent.md +13 -13
  7. package/docs/DateTimeComponent.md +14 -14
  8. package/docs/DialogComponent.md +15 -15
  9. package/docs/DropdownMenuComponent.md +22 -22
  10. package/docs/ExpanderComponent.md +13 -13
  11. package/docs/FormComponent.md +15 -15
  12. package/docs/FormFieldComponent.md +15 -15
  13. package/docs/GridComponent.md +39 -39
  14. package/docs/InputComponent.md +15 -15
  15. package/docs/IntervalComponent.md +13 -13
  16. package/docs/LoadingComponent.md +12 -12
  17. package/docs/NavigationComponent.md +17 -17
  18. package/docs/Notification.md +14 -14
  19. package/docs/NotificationComponent.md +13 -13
  20. package/docs/NumberComponent.md +12 -12
  21. package/docs/OverlayComponent.md +13 -13
  22. package/docs/ProgressComponent.md +12 -12
  23. package/docs/README.md +27 -27
  24. package/docs/RibbonMenuComponent.md +14 -14
  25. package/docs/SelectComponent.md +36 -36
  26. package/docs/SliderComponent.md +20 -20
  27. package/docs/SplitterComponent.md +14 -14
  28. package/docs/StackPanelComponent.md +13 -13
  29. package/docs/TabsComponent.md +16 -16
  30. package/docs/TimeComponent.md +13 -13
  31. package/docs/TreeViewComponent.md +16 -16
  32. package/examples/showcase/checks-and-expanders.ts +148 -148
  33. package/examples/showcase/cultures.ts +39 -39
  34. package/examples/showcase/data-binding.ts +138 -138
  35. package/examples/showcase/dates.ts +168 -168
  36. package/examples/showcase/dialogs.ts +184 -184
  37. package/examples/showcase/dropdown-menus.ts +99 -99
  38. package/examples/showcase/feedback-and-navigation.ts +173 -173
  39. package/examples/showcase/fields.ts +166 -166
  40. package/examples/showcase/fonts/OFL-BricolageGrotesque.txt +93 -93
  41. package/examples/showcase/fonts/OFL-Figtree.txt +93 -93
  42. package/examples/showcase/fonts/OFL-Jost.txt +93 -93
  43. package/examples/showcase/generate-sources.cjs +104 -104
  44. package/examples/showcase/grids.ts +484 -484
  45. package/examples/showcase/index.html +71 -71
  46. package/examples/showcase/layout-and-navigation.ts +46 -46
  47. package/examples/showcase/nivona.css +98 -98
  48. package/examples/showcase/package.json +10 -10
  49. package/examples/showcase/selects.ts +184 -184
  50. package/examples/showcase/showcase-sources.ts +94 -94
  51. package/examples/showcase/showcase.css +281 -281
  52. package/examples/showcase/showcase.ts +244 -244
  53. package/examples/showcase/tabs.ts +161 -161
  54. package/examples/showcase/themes.css +83 -83
  55. package/examples/showcase/themes.ts +56 -56
  56. package/examples/showcase/wirtshans.css +65 -65
  57. package/lib/components/checkbox/CheckBoxStyle.scss +73 -73
  58. package/lib/components/date-range/DateRangeStyle.scss +35 -35
  59. package/lib/components/date-time/DateTimeStyle.scss +9 -9
  60. package/lib/components/dialog/DialogComponent.d.ts +9 -2
  61. package/lib/components/dialog/DialogComponent.js +17 -51
  62. package/lib/components/dropdown-menu/DropdownMenuStyle.scss +48 -48
  63. package/lib/components/expander/ExpanderStyle.scss +61 -61
  64. package/lib/components/form-field/FormFieldStyle.scss +36 -36
  65. package/lib/components/host/RenderHost.d.ts +25 -0
  66. package/lib/components/host/RenderHost.js +63 -0
  67. package/lib/components/loading/LoadingStyle.css +18 -18
  68. package/lib/components/navigation/NavigationStyle.scss +61 -61
  69. package/lib/components/notification/Notification.scss +102 -102
  70. package/lib/components/overlay/OverlayComponent.d.ts +9 -1
  71. package/lib/components/overlay/OverlayComponent.js +22 -13
  72. package/lib/components/overlay/overlay.css +15 -15
  73. package/lib/components/progress/ProgressStyle.scss +4 -4
  74. package/lib/components/ribbon-menu/RibbonMenuStyle.scss +5 -5
  75. package/lib/components/select/SelectStyle.scss +207 -207
  76. package/lib/components/slider/SliderStyle.scss +21 -21
  77. package/lib/components/slider/nouislider.css +15 -15
  78. package/lib/components/stack-panel/SplitterStyle.scss +8 -8
  79. package/lib/components/stack-panel/StackPanelStyle.scss +10 -10
  80. package/lib/components/tabs/TabsStyle.scss +139 -139
  81. package/lib/components/time/TimeComponent.scss +3 -3
  82. package/lib/components/tree-view/TreeViewStyle.scss +14 -14
  83. package/lib/core/helper.js +11 -6
  84. package/lib/grid/plugins/slick.headermenu.css +98 -98
  85. package/lib/grid.css +840 -3532
  86. package/lib/index.css.map +1 -1
  87. package/lib/index.js.map +1 -1
  88. package/lib/ui/auto.suggest.css +30 -30
  89. package/lib/ui/button.css +147 -147
  90. package/lib/ui/date-input.css +10 -10
  91. package/lib/ui/date.picker/css/tiny-date-picker.css +124 -124
  92. package/lib/ui/dialog.css +144 -144
  93. package/lib/ui/input.css +35 -35
  94. package/lib/ui/theme.css +28 -28
  95. package/package.json +1 -1
@@ -1,31 +1,31 @@
1
- @import "./theme.css";
2
-
3
- .autocomplete-suggestions {
4
- display: none;
5
- position: absolute;
6
- z-index: 2200;
7
- max-height: min(16rem, calc(100dvh - 1rem));
8
- overflow-y: auto;
9
- box-sizing: border-box;
10
- padding: 4px;
11
- border: 1px solid var(--jsl-color-border);
12
- border-radius: .625rem;
13
- background: var(--jsl-color-surface);
14
- color: var(--jsl-color-text);
15
- font: inherit;
16
- font-size: .8125rem;
17
- text-align: left;
18
- box-shadow: 0 12px 32px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
19
- }
20
- .autocomplete-suggestion {
21
- position: relative;
22
- padding: .5rem .625rem;
23
- border-radius: .375rem;
24
- line-height: 1.4;
25
- white-space: nowrap;
26
- overflow: hidden;
27
- text-overflow: ellipsis;
28
- cursor: pointer;
29
- }
30
- .autocomplete-suggestion b { color: inherit; font-weight: 600; }
1
+ @import "./theme.css";
2
+
3
+ .autocomplete-suggestions {
4
+ display: none;
5
+ position: absolute;
6
+ z-index: 2200;
7
+ max-height: min(16rem, calc(100dvh - 1rem));
8
+ overflow-y: auto;
9
+ box-sizing: border-box;
10
+ padding: 4px;
11
+ border: 1px solid var(--jsl-color-border);
12
+ border-radius: .625rem;
13
+ background: var(--jsl-color-surface);
14
+ color: var(--jsl-color-text);
15
+ font: inherit;
16
+ font-size: .8125rem;
17
+ text-align: left;
18
+ box-shadow: 0 12px 32px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
19
+ }
20
+ .autocomplete-suggestion {
21
+ position: relative;
22
+ padding: .5rem .625rem;
23
+ border-radius: .375rem;
24
+ line-height: 1.4;
25
+ white-space: nowrap;
26
+ overflow: hidden;
27
+ text-overflow: ellipsis;
28
+ cursor: pointer;
29
+ }
30
+ .autocomplete-suggestion b { color: inherit; font-weight: 600; }
31
31
  .autocomplete-suggestion.selected, .autocomplete-suggestion:hover { background: var(--jsl-color-surface-selected); }
package/lib/ui/button.css CHANGED
@@ -1,147 +1,147 @@
1
- @import "./theme.css";
2
-
3
- /* Shared by ButtonComponent and manual buttons/links using .jsl-button.
4
- Include link states so generic a:hover/a:visited rules cannot replace the text styling.
5
- Override --jsl-button-* variables on a container or individual button. */
6
- .jsl-button,
7
- .jsl-button:any-link {
8
- --jsl-button-height: 2rem;
9
- --jsl-button-padding: 0.875rem;
10
- display: inline-flex;
11
- align-items: center;
12
- justify-content: center;
13
- gap: 0.5rem;
14
- position: relative;
15
- box-sizing: border-box;
16
- height: var(--jsl-button-height);
17
- margin: 0;
18
- padding: 0 var(--jsl-button-padding);
19
- vertical-align: middle;
20
- border: 1px solid transparent;
21
- border-radius: var(--jsl-button-radius, 0.375rem);
22
- background: var(--jsl-button-primary, var(--jsl-color-accent));
23
- color: var(--jsl-button-on-primary, var(--jsl-color-on-accent));
24
- font: inherit;
25
- /* font-size: 0.875rem; */
26
- font-weight: 500;
27
- line-height: 1.25;
28
- letter-spacing: normal;
29
- text-align: center;
30
- text-decoration: none;
31
- text-transform: none;
32
- white-space: nowrap;
33
- cursor: pointer;
34
- transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
35
- }
36
-
37
- .jsl-button,
38
- button.jsl-button[type] {
39
- -webkit-appearance: none;
40
- appearance: none;
41
- }
42
-
43
- .jsl-button:where(:hover),
44
- .jsl-button:any-link:where(:hover) {
45
- background: var(--jsl-button-primary-hover, var(--jsl-color-accent-hover));
46
- }
47
-
48
- .jsl-button:where(:active, .active, [aria-pressed="true"]),
49
- .jsl-button:any-link:where(:active, .active, [aria-pressed="true"]) {
50
- background: var(--jsl-button-primary-active, var(--jsl-color-accent-active));
51
- box-shadow: inset 0 0 0 1px currentColor;
52
- }
53
-
54
- .jsl-button.jsl-button-outline {
55
- border-color: var(--jsl-button-border, var(--jsl-color-border));
56
- background: var(--jsl-button-surface, var(--jsl-color-surface));
57
- color: var(--jsl-button-text, var(--jsl-color-text));
58
- }
59
-
60
- .jsl-button.jsl-button-ghost {
61
- background: transparent;
62
- color: var(--jsl-button-text, var(--jsl-color-text));
63
- }
64
-
65
- .jsl-button.jsl-button-outline:where(:hover),
66
- .jsl-button.jsl-button-ghost:where(:hover) {
67
- background: var(--jsl-button-hover-surface, var(--jsl-color-surface-hover));
68
- border-color: var(--jsl-button-border, var(--jsl-color-border));
69
- }
70
-
71
- .jsl-button.jsl-button-outline:where(:active, .active, [aria-pressed="true"]),
72
- .jsl-button.jsl-button-ghost:where(:active, .active, [aria-pressed="true"]) {
73
- background: var(--jsl-button-selected-surface, var(--jsl-color-surface-selected));
74
- border-color: var(--jsl-button-primary, var(--jsl-color-accent));
75
- color: var(--jsl-button-selected-text, var(--jsl-color-text));
76
- box-shadow: none;
77
- }
78
-
79
- .jsl-button:focus-visible {
80
- outline: 2px solid var(--jsl-button-focus, var(--jsl-color-focus));
81
- outline-offset: 3px;
82
- }
83
-
84
- .jsl-button.jsl-button-small {
85
- --jsl-button-height: 1.75rem;
86
- --jsl-button-padding: 0.625rem;
87
- gap: 0.375rem;
88
- font-size: 0.8125rem;
89
- }
90
-
91
- .jsl-button.jsl-button-large {
92
- --jsl-button-height: 2.5rem;
93
- --jsl-button-padding: 1rem;
94
- font-size: 0.9375rem;
95
- }
96
-
97
- .jsl-button.jsl-button-icon-only {
98
- width: var(--jsl-button-height);
99
- padding: 0;
100
- flex-shrink: 0;
101
- }
102
-
103
- .jsl-button-icon {
104
- display: inline-flex;
105
- align-items: center;
106
- justify-content: center;
107
- flex: 0 0 auto;
108
- width: 1.125em;
109
- height: 1.125em;
110
- line-height: 1;
111
- pointer-events: none;
112
- }
113
-
114
- .jsl-button-icon > img,
115
- .jsl-button-icon > svg {
116
- display: block;
117
- width: 100%;
118
- height: 100%;
119
- object-fit: contain;
120
- }
121
-
122
- .jsl-button-label-hidden {
123
- position: absolute;
124
- width: 1px;
125
- height: 1px;
126
- padding: 0;
127
- margin: -1px;
128
- overflow: hidden;
129
- clip-path: inset(50%);
130
- white-space: nowrap;
131
- border: 0;
132
- }
133
-
134
- .jsl-button:disabled,
135
- .jsl-button.disabled,
136
- .jsl-button[aria-disabled="true"] {
137
- background: var(--jsl-button-disabled-surface, var(--jsl-color-disabled-surface));
138
- border-color: var(--jsl-button-disabled-border, var(--jsl-color-border-subtle));
139
- color: var(--jsl-button-disabled-text, var(--jsl-color-disabled-text));
140
- box-shadow: none;
141
- cursor: not-allowed;
142
- }
143
-
144
- @media (prefers-reduced-motion: reduce) {
145
- .jsl-button { transition: none; }
146
- }
147
-
1
+ @import "./theme.css";
2
+
3
+ /* Shared by ButtonComponent and manual buttons/links using .jsl-button.
4
+ Include link states so generic a:hover/a:visited rules cannot replace the text styling.
5
+ Override --jsl-button-* variables on a container or individual button. */
6
+ .jsl-button,
7
+ .jsl-button:any-link {
8
+ --jsl-button-height: 2rem;
9
+ --jsl-button-padding: 0.875rem;
10
+ display: inline-flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ gap: 0.5rem;
14
+ position: relative;
15
+ box-sizing: border-box;
16
+ height: var(--jsl-button-height);
17
+ margin: 0;
18
+ padding: 0 var(--jsl-button-padding);
19
+ vertical-align: middle;
20
+ border: 1px solid transparent;
21
+ border-radius: var(--jsl-button-radius, 0.375rem);
22
+ background: var(--jsl-button-primary, var(--jsl-color-accent));
23
+ color: var(--jsl-button-on-primary, var(--jsl-color-on-accent));
24
+ font: inherit;
25
+ /* font-size: 0.875rem; */
26
+ font-weight: 500;
27
+ line-height: 1.25;
28
+ letter-spacing: normal;
29
+ text-align: center;
30
+ text-decoration: none;
31
+ text-transform: none;
32
+ white-space: nowrap;
33
+ cursor: pointer;
34
+ transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
35
+ }
36
+
37
+ .jsl-button,
38
+ button.jsl-button[type] {
39
+ -webkit-appearance: none;
40
+ appearance: none;
41
+ }
42
+
43
+ .jsl-button:where(:hover),
44
+ .jsl-button:any-link:where(:hover) {
45
+ background: var(--jsl-button-primary-hover, var(--jsl-color-accent-hover));
46
+ }
47
+
48
+ .jsl-button:where(:active, .active, [aria-pressed="true"]),
49
+ .jsl-button:any-link:where(:active, .active, [aria-pressed="true"]) {
50
+ background: var(--jsl-button-primary-active, var(--jsl-color-accent-active));
51
+ box-shadow: inset 0 0 0 1px currentColor;
52
+ }
53
+
54
+ .jsl-button.jsl-button-outline {
55
+ border-color: var(--jsl-button-border, var(--jsl-color-border));
56
+ background: var(--jsl-button-surface, var(--jsl-color-surface));
57
+ color: var(--jsl-button-text, var(--jsl-color-text));
58
+ }
59
+
60
+ .jsl-button.jsl-button-ghost {
61
+ background: transparent;
62
+ color: var(--jsl-button-text, var(--jsl-color-text));
63
+ }
64
+
65
+ .jsl-button.jsl-button-outline:where(:hover),
66
+ .jsl-button.jsl-button-ghost:where(:hover) {
67
+ background: var(--jsl-button-hover-surface, var(--jsl-color-surface-hover));
68
+ border-color: var(--jsl-button-border, var(--jsl-color-border));
69
+ }
70
+
71
+ .jsl-button.jsl-button-outline:where(:active, .active, [aria-pressed="true"]),
72
+ .jsl-button.jsl-button-ghost:where(:active, .active, [aria-pressed="true"]) {
73
+ background: var(--jsl-button-selected-surface, var(--jsl-color-surface-selected));
74
+ border-color: var(--jsl-button-primary, var(--jsl-color-accent));
75
+ color: var(--jsl-button-selected-text, var(--jsl-color-text));
76
+ box-shadow: none;
77
+ }
78
+
79
+ .jsl-button:focus-visible {
80
+ outline: 2px solid var(--jsl-button-focus, var(--jsl-color-focus));
81
+ outline-offset: 3px;
82
+ }
83
+
84
+ .jsl-button.jsl-button-small {
85
+ --jsl-button-height: 1.75rem;
86
+ --jsl-button-padding: 0.625rem;
87
+ gap: 0.375rem;
88
+ font-size: 0.8125rem;
89
+ }
90
+
91
+ .jsl-button.jsl-button-large {
92
+ --jsl-button-height: 2.5rem;
93
+ --jsl-button-padding: 1rem;
94
+ font-size: 0.9375rem;
95
+ }
96
+
97
+ .jsl-button.jsl-button-icon-only {
98
+ width: var(--jsl-button-height);
99
+ padding: 0;
100
+ flex-shrink: 0;
101
+ }
102
+
103
+ .jsl-button-icon {
104
+ display: inline-flex;
105
+ align-items: center;
106
+ justify-content: center;
107
+ flex: 0 0 auto;
108
+ width: 1.125em;
109
+ height: 1.125em;
110
+ line-height: 1;
111
+ pointer-events: none;
112
+ }
113
+
114
+ .jsl-button-icon > img,
115
+ .jsl-button-icon > svg {
116
+ display: block;
117
+ width: 100%;
118
+ height: 100%;
119
+ object-fit: contain;
120
+ }
121
+
122
+ .jsl-button-label-hidden {
123
+ position: absolute;
124
+ width: 1px;
125
+ height: 1px;
126
+ padding: 0;
127
+ margin: -1px;
128
+ overflow: hidden;
129
+ clip-path: inset(50%);
130
+ white-space: nowrap;
131
+ border: 0;
132
+ }
133
+
134
+ .jsl-button:disabled,
135
+ .jsl-button.disabled,
136
+ .jsl-button[aria-disabled="true"] {
137
+ background: var(--jsl-button-disabled-surface, var(--jsl-color-disabled-surface));
138
+ border-color: var(--jsl-button-disabled-border, var(--jsl-color-border-subtle));
139
+ color: var(--jsl-button-disabled-text, var(--jsl-color-disabled-text));
140
+ box-shadow: none;
141
+ cursor: not-allowed;
142
+ }
143
+
144
+ @media (prefers-reduced-motion: reduce) {
145
+ .jsl-button { transition: none; }
146
+ }
147
+
@@ -1,11 +1,11 @@
1
- @import "./input.css";
2
-
3
- .jsl-date-input { width: 11rem; font-variant-numeric: tabular-nums; }
4
- .date-comp {
5
- padding-right: 2.4rem;
6
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4' width='13' height='12' rx='2'/%3E%3Cpath d='M6 2v4M12 2v4M3 8h12'/%3E%3C/svg%3E");
7
- background-position: right .7rem center;
8
- background-repeat: no-repeat;
9
- }
10
- .jsl-date-input:disabled { opacity: .75; }
1
+ @import "./input.css";
2
+
3
+ .jsl-date-input { width: 11rem; font-variant-numeric: tabular-nums; }
4
+ .date-comp {
5
+ padding-right: 2.4rem;
6
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4' width='13' height='12' rx='2'/%3E%3Cpath d='M6 2v4M12 2v4M3 8h12'/%3E%3C/svg%3E");
7
+ background-position: right .7rem center;
8
+ background-repeat: no-repeat;
9
+ }
10
+ .jsl-date-input:disabled { opacity: .75; }
11
11
  .jsl-date-input[aria-invalid="true"] { border-style: dashed; border-width: 2px; }
@@ -1,125 +1,125 @@
1
- @import "../../theme.css";
2
-
3
- .dp-below, .dp-modal, .dp-permanent {
4
- box-sizing: border-box;
5
- color: var(--jsl-color-text);
6
- font: inherit;
7
- font-size: .875rem;
8
- line-height: 1.4;
9
- }
10
- .dp-below *, .dp-modal *, .dp-permanent * { box-sizing: border-box; }
11
- .dp {
12
- width: 19rem;
13
- max-width: calc(100vw - 1rem);
14
- border: 1px solid var(--jsl-color-border);
15
- border-radius: .875rem;
16
- background: var(--jsl-color-surface);
17
- box-shadow: 0 12px 32px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .06);
18
- overflow: auto;
19
- max-height: calc(100dvh - 1rem);
20
- }
21
- .dp-below { position: fixed; z-index: 2200; width: max-content; }
22
- .dp-modal {
23
- position: fixed;
24
- inset: 0;
25
- z-index: 2300;
26
- display: grid;
27
- place-items: center;
28
- padding: .5rem;
29
- background: var(--jsl-color-overlay);
30
- }
31
- .dp-permanent { display: inline-block; max-width: 100%; }
32
- .dp-permanent .dp { box-shadow: none; max-width: 100%; }
33
- .dp button {
34
- appearance: none;
35
- border: 0;
36
- background: transparent;
37
- color: inherit;
38
- border-radius: .4rem;
39
- padding: .5rem;
40
- font: inherit;
41
- line-height: 1.4;
42
- cursor: pointer;
43
- text-align: center;
44
- margin: 0;
45
- }
46
- .dp button:hover:not(:disabled) { background: var(--jsl-color-surface-hover); }
47
- .dp button:focus-visible {
48
- outline: 2px solid var(--jsl-color-focus);
49
- outline-offset: -2px;
50
- position: relative;
51
- z-index: 1;
52
- }
53
- .dp button:disabled {
54
- color: var(--jsl-color-disabled-text);
55
- cursor: not-allowed;
56
- opacity: .4;
57
- }
58
- .dp-cal-header {
59
- display: grid;
60
- grid-template-columns: 2rem 1fr auto 2rem;
61
- align-items: center;
62
- gap: .125rem;
63
- padding: .75rem .625rem .5rem;
64
- }
65
- .dp-cal-header button { font-weight: 600; }
66
- .dp .dp-prev, .dp .dp-next { font-size: 1.375rem; line-height: 1; padding: .35rem; }
67
- .dp-days {
68
- display: grid;
69
- grid-template-columns: repeat(7, minmax(0, 1fr));
70
- gap: .125rem;
71
- padding: 0 .625rem .625rem;
72
- }
73
- .dp-col-header {
74
- color: var(--jsl-color-text-muted);
75
- text-align: center;
76
- font-size: .6875rem;
77
- font-weight: 500;
78
- padding: .5rem 0;
79
- }
80
- .dp .dp-day {
81
- position: relative;
82
- padding: .45rem 0;
83
- min-height: 2.125rem;
84
- font-size: .8125rem;
85
- font-variant-numeric: tabular-nums;
86
- }
87
- .dp .dp-edge-day { color: var(--jsl-color-text-muted); }
88
- .dp .dp-current:not(.dp-selected) { background: var(--jsl-color-surface-selected); }
89
- .dp .dp-selected, .dp .dp-selected:hover:not(:disabled) {
90
- background: var(--jsl-color-accent);
91
- color: var(--jsl-color-on-accent);
92
- font-weight: 600;
93
- }
94
- .dp-day-today::after {
95
- content: "";
96
- position: absolute;
97
- width: 3px;
98
- height: 3px;
99
- bottom: 3px;
100
- left: calc(50% - 1.5px);
101
- border-radius: 50%;
102
- background: currentColor;
103
- }
104
- .dp-cal-footer {
105
- display: grid;
106
- grid-template-columns: repeat(3, 1fr);
107
- gap: .25rem;
108
- border-top: 1px solid var(--jsl-color-border-subtle);
109
- padding: .5rem .625rem;
110
- }
111
- .dp-cal-footer button { font-size: .75rem; font-weight: 500; }
112
- .dp-months {
113
- display: grid;
114
- grid-template-columns: repeat(3, 1fr);
115
- gap: .375rem;
116
- padding: .75rem;
117
- min-height: 15rem;
118
- align-content: center;
119
- }
120
- .dp-months button { font-size: .75rem; padding: .875rem .25rem; }
121
- .dp-years { padding: .75rem; height: 19rem; overflow-y: auto; display: grid; gap: .25rem; }
122
- .dp-years button { display: block; width: 100%; padding: .625rem; }
123
- @media (forced-colors: active) {
124
- .dp .dp-selected { outline: 2px solid Highlight; }
1
+ @import "../../theme.css";
2
+
3
+ .dp-below, .dp-modal, .dp-permanent {
4
+ box-sizing: border-box;
5
+ color: var(--jsl-color-text);
6
+ font: inherit;
7
+ font-size: .875rem;
8
+ line-height: 1.4;
9
+ }
10
+ .dp-below *, .dp-modal *, .dp-permanent * { box-sizing: border-box; }
11
+ .dp {
12
+ width: 19rem;
13
+ max-width: calc(100vw - 1rem);
14
+ border: 1px solid var(--jsl-color-border);
15
+ border-radius: .875rem;
16
+ background: var(--jsl-color-surface);
17
+ box-shadow: 0 12px 32px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .06);
18
+ overflow: auto;
19
+ max-height: calc(100dvh - 1rem);
20
+ }
21
+ .dp-below { position: fixed; z-index: 2200; width: max-content; }
22
+ .dp-modal {
23
+ position: fixed;
24
+ inset: 0;
25
+ z-index: 2300;
26
+ display: grid;
27
+ place-items: center;
28
+ padding: .5rem;
29
+ background: var(--jsl-color-overlay);
30
+ }
31
+ .dp-permanent { display: inline-block; max-width: 100%; }
32
+ .dp-permanent .dp { box-shadow: none; max-width: 100%; }
33
+ .dp button {
34
+ appearance: none;
35
+ border: 0;
36
+ background: transparent;
37
+ color: inherit;
38
+ border-radius: .4rem;
39
+ padding: .5rem;
40
+ font: inherit;
41
+ line-height: 1.4;
42
+ cursor: pointer;
43
+ text-align: center;
44
+ margin: 0;
45
+ }
46
+ .dp button:hover:not(:disabled) { background: var(--jsl-color-surface-hover); }
47
+ .dp button:focus-visible {
48
+ outline: 2px solid var(--jsl-color-focus);
49
+ outline-offset: -2px;
50
+ position: relative;
51
+ z-index: 1;
52
+ }
53
+ .dp button:disabled {
54
+ color: var(--jsl-color-disabled-text);
55
+ cursor: not-allowed;
56
+ opacity: .4;
57
+ }
58
+ .dp-cal-header {
59
+ display: grid;
60
+ grid-template-columns: 2rem 1fr auto 2rem;
61
+ align-items: center;
62
+ gap: .125rem;
63
+ padding: .75rem .625rem .5rem;
64
+ }
65
+ .dp-cal-header button { font-weight: 600; }
66
+ .dp .dp-prev, .dp .dp-next { font-size: 1.375rem; line-height: 1; padding: .35rem; }
67
+ .dp-days {
68
+ display: grid;
69
+ grid-template-columns: repeat(7, minmax(0, 1fr));
70
+ gap: .125rem;
71
+ padding: 0 .625rem .625rem;
72
+ }
73
+ .dp-col-header {
74
+ color: var(--jsl-color-text-muted);
75
+ text-align: center;
76
+ font-size: .6875rem;
77
+ font-weight: 500;
78
+ padding: .5rem 0;
79
+ }
80
+ .dp .dp-day {
81
+ position: relative;
82
+ padding: .45rem 0;
83
+ min-height: 2.125rem;
84
+ font-size: .8125rem;
85
+ font-variant-numeric: tabular-nums;
86
+ }
87
+ .dp .dp-edge-day { color: var(--jsl-color-text-muted); }
88
+ .dp .dp-current:not(.dp-selected) { background: var(--jsl-color-surface-selected); }
89
+ .dp .dp-selected, .dp .dp-selected:hover:not(:disabled) {
90
+ background: var(--jsl-color-accent);
91
+ color: var(--jsl-color-on-accent);
92
+ font-weight: 600;
93
+ }
94
+ .dp-day-today::after {
95
+ content: "";
96
+ position: absolute;
97
+ width: 3px;
98
+ height: 3px;
99
+ bottom: 3px;
100
+ left: calc(50% - 1.5px);
101
+ border-radius: 50%;
102
+ background: currentColor;
103
+ }
104
+ .dp-cal-footer {
105
+ display: grid;
106
+ grid-template-columns: repeat(3, 1fr);
107
+ gap: .25rem;
108
+ border-top: 1px solid var(--jsl-color-border-subtle);
109
+ padding: .5rem .625rem;
110
+ }
111
+ .dp-cal-footer button { font-size: .75rem; font-weight: 500; }
112
+ .dp-months {
113
+ display: grid;
114
+ grid-template-columns: repeat(3, 1fr);
115
+ gap: .375rem;
116
+ padding: .75rem;
117
+ min-height: 15rem;
118
+ align-content: center;
119
+ }
120
+ .dp-months button { font-size: .75rem; padding: .875rem .25rem; }
121
+ .dp-years { padding: .75rem; height: 19rem; overflow-y: auto; display: grid; gap: .25rem; }
122
+ .dp-years button { display: block; width: 100%; padding: .625rem; }
123
+ @media (forced-colors: active) {
124
+ .dp .dp-selected { outline: 2px solid Highlight; }
125
125
  }