@norges-domstoler/dds-components 24.2.1 → 24.2.2
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/dist/index.cjs +22 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +25 -19
- package/dist/index.d.cts +20 -14
- package/dist/index.d.mts +20 -14
- package/dist/index.mjs +22 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
--dds-color-surface-default: #181a1c; /* Default bg */
|
|
136
136
|
--dds-color-surface-subtle: #22272a; /* Subtle surface color */
|
|
137
137
|
--dds-color-surface-medium: #303438; /* Medium surface color */
|
|
138
|
+
--dds-color-surface-strong: #444444; /* Strong surface color */
|
|
138
139
|
--dds-color-surface-hover-default: #062c45; /* Hover on surface (default, subtle, medium) */
|
|
139
140
|
--dds-color-surface-hover-subtle: #22272a; /* Subtle hover on surface (default, medium) */
|
|
140
141
|
--dds-color-surface-selected-default: #062c45; /* Selected state for surface (default, subtle, medium) */
|
|
@@ -164,7 +165,7 @@
|
|
|
164
165
|
--dds-color-surface-notification: #d83737; /* bg on a notification */
|
|
165
166
|
--dds-color-surface-skeleton: #545c62; /* Used for skeleton */
|
|
166
167
|
--dds-color-border-default: #77838c; /* Form components, togglebutton, secondary button, checkbox etc */
|
|
167
|
-
--dds-color-border-strong: #
|
|
168
|
+
--dds-color-border-strong: #f1f3f4;
|
|
168
169
|
--dds-color-border-subtle: #545c62; /* Dropdown, tooltip, overflow etc */
|
|
169
170
|
--dds-color-border-inverse: #acbbc6; /* Border or divider on surface.inverse */
|
|
170
171
|
--dds-color-border-action-default: #589ac6; /* Used in progress tracker */
|
|
@@ -174,13 +175,13 @@
|
|
|
174
175
|
--dds-color-border-danger: #ad2c2c; /* Tag.default, error message field */
|
|
175
176
|
--dds-color-border-info: #5197c5; /* Tag.default */
|
|
176
177
|
--dds-color-border-on-action: #181a1c; /* Used on primary split button */
|
|
177
|
-
--dds-color-text-default: #
|
|
178
|
+
--dds-color-text-default: #f1f3f4; /* default text, heading, body. on surface.hover */
|
|
178
179
|
--dds-color-text-medium: #e9ebec; /* Label, etc */
|
|
179
180
|
--dds-color-text-subtle: #d6dadd; /* Disabled or less important text */
|
|
180
181
|
--dds-color-text-on-inverse: #ffffff; /* On surface.inverse */
|
|
181
182
|
--dds-color-text-danger: #efafaf; /* Error text on paper, or default or subtle surafce/bg */
|
|
182
183
|
--dds-color-text-on-action: #0b0d0e; /* On surface.action (primary and danger button) */
|
|
183
|
-
--dds-color-text-on-status-default: #
|
|
184
|
+
--dds-color-text-on-status-default: #f1f3f4; /* On default status surfaces */
|
|
184
185
|
--dds-color-text-on-status-strong: #0b0d0e; /* On status surfaces with strong prop */
|
|
185
186
|
--dds-color-text-action-resting: #9fc5de; /* Link, number in progress tracker */
|
|
186
187
|
--dds-color-text-action-hover: #e7f1f7; /* Hover on text.action */
|
|
@@ -202,7 +203,7 @@
|
|
|
202
203
|
--dds-color-text-on-tertiary-strong: #0b0d0e; /* Used on brand.tertiary-strong */
|
|
203
204
|
--dds-color-text-on-data-default: #0b0d0e; /* Used on data. with default value */
|
|
204
205
|
--dds-color-text-on-data-subtle: #ffffff; /* Used on data. with subtle value */
|
|
205
|
-
--dds-color-icon-default: #
|
|
206
|
+
--dds-color-icon-default: #f1f3f4; /* Often used with text.default */
|
|
206
207
|
--dds-color-icon-medium: #e9ebec; /* Often used with text.medium */
|
|
207
208
|
--dds-color-icon-subtle: #d6dadd; /* Often used with text.subtle */
|
|
208
209
|
--dds-color-icon-on-inverse: #ffffff; /* On surface.inverse */
|
|
@@ -507,12 +508,13 @@
|
|
|
507
508
|
--dds-border-radius-chip: 4px; /* Chips and tags */
|
|
508
509
|
--dds-border-radius-rounded: 9999px; /* Rounded and circular components such as radiobutton, toggle, togglebutton and progress tracker */
|
|
509
510
|
--dds-color-bg-default: #ffffff; /* UI shell base color */
|
|
510
|
-
--dds-color-bg-subtle: #
|
|
511
|
+
--dds-color-bg-subtle: #f8f9f9; /* Alternative UI shell base color */
|
|
511
512
|
--dds-color-surface-default: #ffffff; /* Default bg */
|
|
512
|
-
--dds-color-surface-subtle: #
|
|
513
|
+
--dds-color-surface-subtle: #f8f9f9; /* Subtle surface color */
|
|
513
514
|
--dds-color-surface-medium: #e9ebec; /* Medium surface color */
|
|
514
|
-
--dds-color-surface-
|
|
515
|
-
--dds-color-surface-hover-
|
|
515
|
+
--dds-color-surface-strong: #d6dadd; /* Strong surface color */
|
|
516
|
+
--dds-color-surface-hover-default: #e7f1f7; /* Hover on surface */
|
|
517
|
+
--dds-color-surface-hover-subtle: #f1f3f4; /* Subtle hover on surface */
|
|
516
518
|
--dds-color-surface-selected-default: #e7f1f7; /* Selected state for surface (default, subtle, medium) */
|
|
517
519
|
--dds-color-surface-inverse-default: #354754; /* Can be used as a surface for menu, navigation, footer etc */
|
|
518
520
|
--dds-color-surface-inverse-hover: #2a3943; /* Hover on surface.inverse */
|
|
@@ -887,6 +889,7 @@
|
|
|
887
889
|
--dds-color-surface-default: #181a1c; /* Default bg */
|
|
888
890
|
--dds-color-surface-subtle: #22272a; /* Subtle surface color */
|
|
889
891
|
--dds-color-surface-medium: #303438; /* Medium surface color */
|
|
892
|
+
--dds-color-surface-strong: #444444; /* Strong surface color */
|
|
890
893
|
--dds-color-surface-hover-default: #062c45; /* Hover on surface (default, subtle, medium) */
|
|
891
894
|
--dds-color-surface-hover-subtle: #22272a; /* Subtle hover on surface (default, medium) */
|
|
892
895
|
--dds-color-surface-selected-default: #062c45; /* Selected state for surface (default, subtle, medium) */
|
|
@@ -916,7 +919,7 @@
|
|
|
916
919
|
--dds-color-surface-notification: #d83737; /* bg on a notification */
|
|
917
920
|
--dds-color-surface-skeleton: #545c62; /* Used for skeleton */
|
|
918
921
|
--dds-color-border-default: #77838c; /* Form components, togglebutton, secondary button, checkbox etc */
|
|
919
|
-
--dds-color-border-strong: #
|
|
922
|
+
--dds-color-border-strong: #f1f3f4;
|
|
920
923
|
--dds-color-border-subtle: #545c62; /* Dropdown, tooltip, overflow etc */
|
|
921
924
|
--dds-color-border-inverse: #acbbc6; /* Border or divider on surface.inverse */
|
|
922
925
|
--dds-color-border-action-default: #589ac6; /* Used in progress tracker */
|
|
@@ -926,13 +929,13 @@
|
|
|
926
929
|
--dds-color-border-danger: #ad2c2c; /* Tag.default, error message field */
|
|
927
930
|
--dds-color-border-info: #5197c5; /* Tag.default */
|
|
928
931
|
--dds-color-border-on-action: #181a1c; /* Used on primary split button */
|
|
929
|
-
--dds-color-text-default: #
|
|
932
|
+
--dds-color-text-default: #f1f3f4; /* default text, heading, body. on surface.hover */
|
|
930
933
|
--dds-color-text-medium: #e9ebec; /* Label, etc */
|
|
931
934
|
--dds-color-text-subtle: #d6dadd; /* Disabled or less important text */
|
|
932
935
|
--dds-color-text-on-inverse: #ffffff; /* On surface.inverse */
|
|
933
936
|
--dds-color-text-danger: #efafaf; /* Error text on paper, or default or subtle surafce/bg */
|
|
934
937
|
--dds-color-text-on-action: #0b0d0e; /* On surface.action (primary and danger button) */
|
|
935
|
-
--dds-color-text-on-status-default: #
|
|
938
|
+
--dds-color-text-on-status-default: #f1f3f4; /* On default status surfaces */
|
|
936
939
|
--dds-color-text-on-status-strong: #0b0d0e; /* On status surfaces with strong prop */
|
|
937
940
|
--dds-color-text-action-resting: #9fc5de; /* Link, number in progress tracker */
|
|
938
941
|
--dds-color-text-action-hover: #e7f1f7; /* Hover on text.action */
|
|
@@ -954,7 +957,7 @@
|
|
|
954
957
|
--dds-color-text-on-tertiary-strong: #0b0d0e; /* Used on brand.tertiary-strong */
|
|
955
958
|
--dds-color-text-on-data-default: #0b0d0e; /* Used on data. with default value */
|
|
956
959
|
--dds-color-text-on-data-subtle: #ffffff; /* Used on data. with subtle value */
|
|
957
|
-
--dds-color-icon-default: #
|
|
960
|
+
--dds-color-icon-default: #f1f3f4; /* Often used with text.default */
|
|
958
961
|
--dds-color-icon-medium: #e9ebec; /* Often used with text.medium */
|
|
959
962
|
--dds-color-icon-subtle: #d6dadd; /* Often used with text.subtle */
|
|
960
963
|
--dds-color-icon-on-inverse: #ffffff; /* On surface.inverse */
|
|
@@ -1259,12 +1262,13 @@
|
|
|
1259
1262
|
--dds-border-radius-chip: 2px; /* Chips and tags */
|
|
1260
1263
|
--dds-border-radius-rounded: 9999px; /* Rounded and circular components such as radiobutton, toggle, togglebutton and progress tracker */
|
|
1261
1264
|
--dds-color-bg-default: #ffffff; /* UI shell base color */
|
|
1262
|
-
--dds-color-bg-subtle: #
|
|
1265
|
+
--dds-color-bg-subtle: #f8f9f9; /* Alternative UI shell base color */
|
|
1263
1266
|
--dds-color-surface-default: #ffffff; /* Default bg */
|
|
1264
|
-
--dds-color-surface-subtle: #
|
|
1267
|
+
--dds-color-surface-subtle: #f8f9f9; /* Subtle surface color */
|
|
1265
1268
|
--dds-color-surface-medium: #e9ebec; /* Medium surface color */
|
|
1266
|
-
--dds-color-surface-
|
|
1267
|
-
--dds-color-surface-hover-
|
|
1269
|
+
--dds-color-surface-strong: #d6dadd; /* Strong surface color */
|
|
1270
|
+
--dds-color-surface-hover-default: #e7f1f7; /* Hover on surface */
|
|
1271
|
+
--dds-color-surface-hover-subtle: #f1f3f4; /* Subtle hover on surface */
|
|
1268
1272
|
--dds-color-surface-selected-default: #e7f1f7; /* Selected state for surface (default, subtle, medium) */
|
|
1269
1273
|
--dds-color-surface-inverse-default: #354754; /* Can be used as a surface for menu, navigation, footer etc */
|
|
1270
1274
|
--dds-color-surface-inverse-hover: #2a3943; /* Hover on surface.inverse */
|
|
@@ -1639,6 +1643,7 @@
|
|
|
1639
1643
|
--dds-color-surface-default: #1b1a18; /* Default bg */
|
|
1640
1644
|
--dds-color-surface-subtle: #292824; /* Subtle surface color */
|
|
1641
1645
|
--dds-color-surface-medium: #363530; /* Medium surface color */
|
|
1646
|
+
--dds-color-surface-strong: #514f48; /* Strong surface color */
|
|
1642
1647
|
--dds-color-surface-hover-default: #0b2d34; /* Hover on surface (default, subtle, medium) */
|
|
1643
1648
|
--dds-color-surface-hover-subtle: #292824; /* Subtle hover on surface (default, medium) */
|
|
1644
1649
|
--dds-color-surface-selected-default: #0b2d34; /* Selected state for surface (default, subtle, medium) */
|
|
@@ -1678,7 +1683,7 @@
|
|
|
1678
1683
|
--dds-color-border-info: #5197c5; /* Tag.default */
|
|
1679
1684
|
--dds-color-border-on-action: #1b1a18; /* Used on primary split button */
|
|
1680
1685
|
--dds-color-border-strong: #ffffff;
|
|
1681
|
-
--dds-color-text-default: #
|
|
1686
|
+
--dds-color-text-default: #f3f3f2; /* default text, heading, body. on surface.hover */
|
|
1682
1687
|
--dds-color-text-medium: #e7e6e4; /* Label, etc */
|
|
1683
1688
|
--dds-color-text-subtle: #cfcec9; /* Disabled or less important text */
|
|
1684
1689
|
--dds-color-text-on-inverse: #ffffff; /* On surface.inverse */
|
|
@@ -1706,7 +1711,7 @@
|
|
|
1706
1711
|
--dds-color-text-on-tertiary-strong: #0b0d0e; /* Used on brand.tertiary-strong */
|
|
1707
1712
|
--dds-color-text-on-data-default: #0b0d0e; /* Used on data. with default value */
|
|
1708
1713
|
--dds-color-text-on-data-subtle: #ffffff; /* Used on data. with subtle value */
|
|
1709
|
-
--dds-color-icon-default: #
|
|
1714
|
+
--dds-color-icon-default: #f3f3f2; /* Often used with text.default */
|
|
1710
1715
|
--dds-color-icon-medium: #e7e6e4; /* Often used with text.medium */
|
|
1711
1716
|
--dds-color-icon-subtle: #cfcec9; /* Often used with text.subtle */
|
|
1712
1717
|
--dds-color-icon-on-inverse: #ffffff; /* On surface.inverse */
|
|
@@ -2015,6 +2020,7 @@
|
|
|
2015
2020
|
--dds-color-surface-default: #ffffff; /* Default bg */
|
|
2016
2021
|
--dds-color-surface-subtle: #f3f3f2; /* Subtle surface color */
|
|
2017
2022
|
--dds-color-surface-medium: #e7e6e4; /* Medium surface color */
|
|
2023
|
+
--dds-color-surface-strong: #cfcec9; /* Strong surface color */
|
|
2018
2024
|
--dds-color-surface-hover-default: #e9f1f2; /* Hover on surface (default, subtle, medium) */
|
|
2019
2025
|
--dds-color-surface-hover-subtle: #f3f3f2; /* Subtle hover on surface (default, medium) */
|
|
2020
2026
|
--dds-color-surface-selected-default: #e9f1f2; /* Selected state for surface (default, subtle, medium) */
|
|
@@ -6299,7 +6305,7 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
|
|
|
6299
6305
|
}
|
|
6300
6306
|
.dds-Feedback-module__rating-container {
|
|
6301
6307
|
display: flex;
|
|
6302
|
-
gap: var(--dds-spacing-
|
|
6308
|
+
gap: var(--dds-spacing-x0-5);
|
|
6303
6309
|
}
|
|
6304
6310
|
|
|
6305
6311
|
.dds-Feedback-module__rating-container--horizontal {
|
package/dist/index.d.cts
CHANGED
|
@@ -12386,6 +12386,7 @@ declare function useTheme(): {
|
|
|
12386
12386
|
ddsColorSurfaceDefault: "#181a1c";
|
|
12387
12387
|
ddsColorSurfaceSubtle: "#22272a";
|
|
12388
12388
|
ddsColorSurfaceMedium: "#303438";
|
|
12389
|
+
ddsColorSurfaceStrong: "#444444";
|
|
12389
12390
|
ddsColorSurfaceHoverDefault: "#062c45";
|
|
12390
12391
|
ddsColorSurfaceHoverSubtle: "#22272a";
|
|
12391
12392
|
ddsColorSurfaceSelectedDefault: "#062c45";
|
|
@@ -12415,7 +12416,7 @@ declare function useTheme(): {
|
|
|
12415
12416
|
ddsColorSurfaceNotification: "#d83737";
|
|
12416
12417
|
ddsColorSurfaceSkeleton: "#545c62";
|
|
12417
12418
|
ddsColorBorderDefault: "#77838c";
|
|
12418
|
-
ddsColorBorderStrong: "#
|
|
12419
|
+
ddsColorBorderStrong: "#f1f3f4";
|
|
12419
12420
|
ddsColorBorderSubtle: "#545c62";
|
|
12420
12421
|
ddsColorBorderInverse: "#acbbc6";
|
|
12421
12422
|
ddsColorBorderActionDefault: "#589ac6";
|
|
@@ -12425,13 +12426,13 @@ declare function useTheme(): {
|
|
|
12425
12426
|
ddsColorBorderDanger: "#ad2c2c";
|
|
12426
12427
|
ddsColorBorderInfo: "#5197c5";
|
|
12427
12428
|
ddsColorBorderOnAction: "#181a1c";
|
|
12428
|
-
ddsColorTextDefault: "#
|
|
12429
|
+
ddsColorTextDefault: "#f1f3f4";
|
|
12429
12430
|
ddsColorTextMedium: "#e9ebec";
|
|
12430
12431
|
ddsColorTextSubtle: "#d6dadd";
|
|
12431
12432
|
ddsColorTextOnInverse: "#ffffff";
|
|
12432
12433
|
ddsColorTextDanger: "#efafaf";
|
|
12433
12434
|
ddsColorTextOnAction: "#0b0d0e";
|
|
12434
|
-
ddsColorTextOnStatusDefault: "#
|
|
12435
|
+
ddsColorTextOnStatusDefault: "#f1f3f4";
|
|
12435
12436
|
ddsColorTextOnStatusStrong: "#0b0d0e";
|
|
12436
12437
|
ddsColorTextActionResting: "#9fc5de";
|
|
12437
12438
|
ddsColorTextActionHover: "#e7f1f7";
|
|
@@ -12453,7 +12454,7 @@ declare function useTheme(): {
|
|
|
12453
12454
|
ddsColorTextOnTertiaryStrong: "#0b0d0e";
|
|
12454
12455
|
ddsColorTextOnDataDefault: "#0b0d0e";
|
|
12455
12456
|
ddsColorTextOnDataSubtle: "#ffffff";
|
|
12456
|
-
ddsColorIconDefault: "#
|
|
12457
|
+
ddsColorIconDefault: "#f1f3f4";
|
|
12457
12458
|
ddsColorIconMedium: "#e9ebec";
|
|
12458
12459
|
ddsColorIconSubtle: "#d6dadd";
|
|
12459
12460
|
ddsColorIconOnInverse: "#ffffff";
|
|
@@ -12823,10 +12824,11 @@ declare function useTheme(): {
|
|
|
12823
12824
|
ddsBorderRadiusRounded: "9999px";
|
|
12824
12825
|
ddsBorderRadiusRoundedNumberPx: 9999;
|
|
12825
12826
|
ddsColorBgDefault: "#ffffff";
|
|
12826
|
-
ddsColorBgSubtle: "#
|
|
12827
|
+
ddsColorBgSubtle: "#f8f9f9";
|
|
12827
12828
|
ddsColorSurfaceDefault: "#ffffff";
|
|
12828
|
-
ddsColorSurfaceSubtle: "#
|
|
12829
|
+
ddsColorSurfaceSubtle: "#f8f9f9";
|
|
12829
12830
|
ddsColorSurfaceMedium: "#e9ebec";
|
|
12831
|
+
ddsColorSurfaceStrong: "#d6dadd";
|
|
12830
12832
|
ddsColorSurfaceHoverDefault: "#e7f1f7";
|
|
12831
12833
|
ddsColorSurfaceHoverSubtle: "#f1f3f4";
|
|
12832
12834
|
ddsColorSurfaceSelectedDefault: "#e7f1f7";
|
|
@@ -13268,6 +13270,7 @@ declare function useTheme(): {
|
|
|
13268
13270
|
ddsColorSurfaceDefault: "#181a1c";
|
|
13269
13271
|
ddsColorSurfaceSubtle: "#22272a";
|
|
13270
13272
|
ddsColorSurfaceMedium: "#303438";
|
|
13273
|
+
ddsColorSurfaceStrong: "#444444";
|
|
13271
13274
|
ddsColorSurfaceHoverDefault: "#062c45";
|
|
13272
13275
|
ddsColorSurfaceHoverSubtle: "#22272a";
|
|
13273
13276
|
ddsColorSurfaceSelectedDefault: "#062c45";
|
|
@@ -13297,7 +13300,7 @@ declare function useTheme(): {
|
|
|
13297
13300
|
ddsColorSurfaceNotification: "#d83737";
|
|
13298
13301
|
ddsColorSurfaceSkeleton: "#545c62";
|
|
13299
13302
|
ddsColorBorderDefault: "#77838c";
|
|
13300
|
-
ddsColorBorderStrong: "#
|
|
13303
|
+
ddsColorBorderStrong: "#f1f3f4";
|
|
13301
13304
|
ddsColorBorderSubtle: "#545c62";
|
|
13302
13305
|
ddsColorBorderInverse: "#acbbc6";
|
|
13303
13306
|
ddsColorBorderActionDefault: "#589ac6";
|
|
@@ -13307,13 +13310,13 @@ declare function useTheme(): {
|
|
|
13307
13310
|
ddsColorBorderDanger: "#ad2c2c";
|
|
13308
13311
|
ddsColorBorderInfo: "#5197c5";
|
|
13309
13312
|
ddsColorBorderOnAction: "#181a1c";
|
|
13310
|
-
ddsColorTextDefault: "#
|
|
13313
|
+
ddsColorTextDefault: "#f1f3f4";
|
|
13311
13314
|
ddsColorTextMedium: "#e9ebec";
|
|
13312
13315
|
ddsColorTextSubtle: "#d6dadd";
|
|
13313
13316
|
ddsColorTextOnInverse: "#ffffff";
|
|
13314
13317
|
ddsColorTextDanger: "#efafaf";
|
|
13315
13318
|
ddsColorTextOnAction: "#0b0d0e";
|
|
13316
|
-
ddsColorTextOnStatusDefault: "#
|
|
13319
|
+
ddsColorTextOnStatusDefault: "#f1f3f4";
|
|
13317
13320
|
ddsColorTextOnStatusStrong: "#0b0d0e";
|
|
13318
13321
|
ddsColorTextActionResting: "#9fc5de";
|
|
13319
13322
|
ddsColorTextActionHover: "#e7f1f7";
|
|
@@ -13335,7 +13338,7 @@ declare function useTheme(): {
|
|
|
13335
13338
|
ddsColorTextOnTertiaryStrong: "#0b0d0e";
|
|
13336
13339
|
ddsColorTextOnDataDefault: "#0b0d0e";
|
|
13337
13340
|
ddsColorTextOnDataSubtle: "#ffffff";
|
|
13338
|
-
ddsColorIconDefault: "#
|
|
13341
|
+
ddsColorIconDefault: "#f1f3f4";
|
|
13339
13342
|
ddsColorIconMedium: "#e9ebec";
|
|
13340
13343
|
ddsColorIconSubtle: "#d6dadd";
|
|
13341
13344
|
ddsColorIconOnInverse: "#ffffff";
|
|
@@ -13705,10 +13708,11 @@ declare function useTheme(): {
|
|
|
13705
13708
|
ddsBorderRadiusRounded: "9999px";
|
|
13706
13709
|
ddsBorderRadiusRoundedNumberPx: 9999;
|
|
13707
13710
|
ddsColorBgDefault: "#ffffff";
|
|
13708
|
-
ddsColorBgSubtle: "#
|
|
13711
|
+
ddsColorBgSubtle: "#f8f9f9";
|
|
13709
13712
|
ddsColorSurfaceDefault: "#ffffff";
|
|
13710
|
-
ddsColorSurfaceSubtle: "#
|
|
13713
|
+
ddsColorSurfaceSubtle: "#f8f9f9";
|
|
13711
13714
|
ddsColorSurfaceMedium: "#e9ebec";
|
|
13715
|
+
ddsColorSurfaceStrong: "#d6dadd";
|
|
13712
13716
|
ddsColorSurfaceHoverDefault: "#e7f1f7";
|
|
13713
13717
|
ddsColorSurfaceHoverSubtle: "#f1f3f4";
|
|
13714
13718
|
ddsColorSurfaceSelectedDefault: "#e7f1f7";
|
|
@@ -14150,6 +14154,7 @@ declare function useTheme(): {
|
|
|
14150
14154
|
ddsColorSurfaceDefault: "#1b1a18";
|
|
14151
14155
|
ddsColorSurfaceSubtle: "#292824";
|
|
14152
14156
|
ddsColorSurfaceMedium: "#363530";
|
|
14157
|
+
ddsColorSurfaceStrong: "#514f48";
|
|
14153
14158
|
ddsColorSurfaceHoverDefault: "#0b2d34";
|
|
14154
14159
|
ddsColorSurfaceHoverSubtle: "#292824";
|
|
14155
14160
|
ddsColorSurfaceSelectedDefault: "#0b2d34";
|
|
@@ -14189,7 +14194,7 @@ declare function useTheme(): {
|
|
|
14189
14194
|
ddsColorBorderInfo: "#5197c5";
|
|
14190
14195
|
ddsColorBorderOnAction: "#1b1a18";
|
|
14191
14196
|
ddsColorBorderStrong: "#ffffff";
|
|
14192
|
-
ddsColorTextDefault: "#
|
|
14197
|
+
ddsColorTextDefault: "#f3f3f2";
|
|
14193
14198
|
ddsColorTextMedium: "#e7e6e4";
|
|
14194
14199
|
ddsColorTextSubtle: "#cfcec9";
|
|
14195
14200
|
ddsColorTextOnInverse: "#ffffff";
|
|
@@ -14217,7 +14222,7 @@ declare function useTheme(): {
|
|
|
14217
14222
|
ddsColorTextOnTertiaryStrong: "#0b0d0e";
|
|
14218
14223
|
ddsColorTextOnDataDefault: "#0b0d0e";
|
|
14219
14224
|
ddsColorTextOnDataSubtle: "#ffffff";
|
|
14220
|
-
ddsColorIconDefault: "#
|
|
14225
|
+
ddsColorIconDefault: "#f3f3f2";
|
|
14221
14226
|
ddsColorIconMedium: "#e7e6e4";
|
|
14222
14227
|
ddsColorIconSubtle: "#cfcec9";
|
|
14223
14228
|
ddsColorIconOnInverse: "#ffffff";
|
|
@@ -14591,6 +14596,7 @@ declare function useTheme(): {
|
|
|
14591
14596
|
ddsColorSurfaceDefault: "#ffffff";
|
|
14592
14597
|
ddsColorSurfaceSubtle: "#f3f3f2";
|
|
14593
14598
|
ddsColorSurfaceMedium: "#e7e6e4";
|
|
14599
|
+
ddsColorSurfaceStrong: "#cfcec9";
|
|
14594
14600
|
ddsColorSurfaceHoverDefault: "#e9f1f2";
|
|
14595
14601
|
ddsColorSurfaceHoverSubtle: "#f3f3f2";
|
|
14596
14602
|
ddsColorSurfaceSelectedDefault: "#e9f1f2";
|
package/dist/index.d.mts
CHANGED
|
@@ -12385,6 +12385,7 @@ declare function useTheme(): {
|
|
|
12385
12385
|
ddsColorSurfaceDefault: "#181a1c";
|
|
12386
12386
|
ddsColorSurfaceSubtle: "#22272a";
|
|
12387
12387
|
ddsColorSurfaceMedium: "#303438";
|
|
12388
|
+
ddsColorSurfaceStrong: "#444444";
|
|
12388
12389
|
ddsColorSurfaceHoverDefault: "#062c45";
|
|
12389
12390
|
ddsColorSurfaceHoverSubtle: "#22272a";
|
|
12390
12391
|
ddsColorSurfaceSelectedDefault: "#062c45";
|
|
@@ -12414,7 +12415,7 @@ declare function useTheme(): {
|
|
|
12414
12415
|
ddsColorSurfaceNotification: "#d83737";
|
|
12415
12416
|
ddsColorSurfaceSkeleton: "#545c62";
|
|
12416
12417
|
ddsColorBorderDefault: "#77838c";
|
|
12417
|
-
ddsColorBorderStrong: "#
|
|
12418
|
+
ddsColorBorderStrong: "#f1f3f4";
|
|
12418
12419
|
ddsColorBorderSubtle: "#545c62";
|
|
12419
12420
|
ddsColorBorderInverse: "#acbbc6";
|
|
12420
12421
|
ddsColorBorderActionDefault: "#589ac6";
|
|
@@ -12424,13 +12425,13 @@ declare function useTheme(): {
|
|
|
12424
12425
|
ddsColorBorderDanger: "#ad2c2c";
|
|
12425
12426
|
ddsColorBorderInfo: "#5197c5";
|
|
12426
12427
|
ddsColorBorderOnAction: "#181a1c";
|
|
12427
|
-
ddsColorTextDefault: "#
|
|
12428
|
+
ddsColorTextDefault: "#f1f3f4";
|
|
12428
12429
|
ddsColorTextMedium: "#e9ebec";
|
|
12429
12430
|
ddsColorTextSubtle: "#d6dadd";
|
|
12430
12431
|
ddsColorTextOnInverse: "#ffffff";
|
|
12431
12432
|
ddsColorTextDanger: "#efafaf";
|
|
12432
12433
|
ddsColorTextOnAction: "#0b0d0e";
|
|
12433
|
-
ddsColorTextOnStatusDefault: "#
|
|
12434
|
+
ddsColorTextOnStatusDefault: "#f1f3f4";
|
|
12434
12435
|
ddsColorTextOnStatusStrong: "#0b0d0e";
|
|
12435
12436
|
ddsColorTextActionResting: "#9fc5de";
|
|
12436
12437
|
ddsColorTextActionHover: "#e7f1f7";
|
|
@@ -12452,7 +12453,7 @@ declare function useTheme(): {
|
|
|
12452
12453
|
ddsColorTextOnTertiaryStrong: "#0b0d0e";
|
|
12453
12454
|
ddsColorTextOnDataDefault: "#0b0d0e";
|
|
12454
12455
|
ddsColorTextOnDataSubtle: "#ffffff";
|
|
12455
|
-
ddsColorIconDefault: "#
|
|
12456
|
+
ddsColorIconDefault: "#f1f3f4";
|
|
12456
12457
|
ddsColorIconMedium: "#e9ebec";
|
|
12457
12458
|
ddsColorIconSubtle: "#d6dadd";
|
|
12458
12459
|
ddsColorIconOnInverse: "#ffffff";
|
|
@@ -12822,10 +12823,11 @@ declare function useTheme(): {
|
|
|
12822
12823
|
ddsBorderRadiusRounded: "9999px";
|
|
12823
12824
|
ddsBorderRadiusRoundedNumberPx: 9999;
|
|
12824
12825
|
ddsColorBgDefault: "#ffffff";
|
|
12825
|
-
ddsColorBgSubtle: "#
|
|
12826
|
+
ddsColorBgSubtle: "#f8f9f9";
|
|
12826
12827
|
ddsColorSurfaceDefault: "#ffffff";
|
|
12827
|
-
ddsColorSurfaceSubtle: "#
|
|
12828
|
+
ddsColorSurfaceSubtle: "#f8f9f9";
|
|
12828
12829
|
ddsColorSurfaceMedium: "#e9ebec";
|
|
12830
|
+
ddsColorSurfaceStrong: "#d6dadd";
|
|
12829
12831
|
ddsColorSurfaceHoverDefault: "#e7f1f7";
|
|
12830
12832
|
ddsColorSurfaceHoverSubtle: "#f1f3f4";
|
|
12831
12833
|
ddsColorSurfaceSelectedDefault: "#e7f1f7";
|
|
@@ -13267,6 +13269,7 @@ declare function useTheme(): {
|
|
|
13267
13269
|
ddsColorSurfaceDefault: "#181a1c";
|
|
13268
13270
|
ddsColorSurfaceSubtle: "#22272a";
|
|
13269
13271
|
ddsColorSurfaceMedium: "#303438";
|
|
13272
|
+
ddsColorSurfaceStrong: "#444444";
|
|
13270
13273
|
ddsColorSurfaceHoverDefault: "#062c45";
|
|
13271
13274
|
ddsColorSurfaceHoverSubtle: "#22272a";
|
|
13272
13275
|
ddsColorSurfaceSelectedDefault: "#062c45";
|
|
@@ -13296,7 +13299,7 @@ declare function useTheme(): {
|
|
|
13296
13299
|
ddsColorSurfaceNotification: "#d83737";
|
|
13297
13300
|
ddsColorSurfaceSkeleton: "#545c62";
|
|
13298
13301
|
ddsColorBorderDefault: "#77838c";
|
|
13299
|
-
ddsColorBorderStrong: "#
|
|
13302
|
+
ddsColorBorderStrong: "#f1f3f4";
|
|
13300
13303
|
ddsColorBorderSubtle: "#545c62";
|
|
13301
13304
|
ddsColorBorderInverse: "#acbbc6";
|
|
13302
13305
|
ddsColorBorderActionDefault: "#589ac6";
|
|
@@ -13306,13 +13309,13 @@ declare function useTheme(): {
|
|
|
13306
13309
|
ddsColorBorderDanger: "#ad2c2c";
|
|
13307
13310
|
ddsColorBorderInfo: "#5197c5";
|
|
13308
13311
|
ddsColorBorderOnAction: "#181a1c";
|
|
13309
|
-
ddsColorTextDefault: "#
|
|
13312
|
+
ddsColorTextDefault: "#f1f3f4";
|
|
13310
13313
|
ddsColorTextMedium: "#e9ebec";
|
|
13311
13314
|
ddsColorTextSubtle: "#d6dadd";
|
|
13312
13315
|
ddsColorTextOnInverse: "#ffffff";
|
|
13313
13316
|
ddsColorTextDanger: "#efafaf";
|
|
13314
13317
|
ddsColorTextOnAction: "#0b0d0e";
|
|
13315
|
-
ddsColorTextOnStatusDefault: "#
|
|
13318
|
+
ddsColorTextOnStatusDefault: "#f1f3f4";
|
|
13316
13319
|
ddsColorTextOnStatusStrong: "#0b0d0e";
|
|
13317
13320
|
ddsColorTextActionResting: "#9fc5de";
|
|
13318
13321
|
ddsColorTextActionHover: "#e7f1f7";
|
|
@@ -13334,7 +13337,7 @@ declare function useTheme(): {
|
|
|
13334
13337
|
ddsColorTextOnTertiaryStrong: "#0b0d0e";
|
|
13335
13338
|
ddsColorTextOnDataDefault: "#0b0d0e";
|
|
13336
13339
|
ddsColorTextOnDataSubtle: "#ffffff";
|
|
13337
|
-
ddsColorIconDefault: "#
|
|
13340
|
+
ddsColorIconDefault: "#f1f3f4";
|
|
13338
13341
|
ddsColorIconMedium: "#e9ebec";
|
|
13339
13342
|
ddsColorIconSubtle: "#d6dadd";
|
|
13340
13343
|
ddsColorIconOnInverse: "#ffffff";
|
|
@@ -13704,10 +13707,11 @@ declare function useTheme(): {
|
|
|
13704
13707
|
ddsBorderRadiusRounded: "9999px";
|
|
13705
13708
|
ddsBorderRadiusRoundedNumberPx: 9999;
|
|
13706
13709
|
ddsColorBgDefault: "#ffffff";
|
|
13707
|
-
ddsColorBgSubtle: "#
|
|
13710
|
+
ddsColorBgSubtle: "#f8f9f9";
|
|
13708
13711
|
ddsColorSurfaceDefault: "#ffffff";
|
|
13709
|
-
ddsColorSurfaceSubtle: "#
|
|
13712
|
+
ddsColorSurfaceSubtle: "#f8f9f9";
|
|
13710
13713
|
ddsColorSurfaceMedium: "#e9ebec";
|
|
13714
|
+
ddsColorSurfaceStrong: "#d6dadd";
|
|
13711
13715
|
ddsColorSurfaceHoverDefault: "#e7f1f7";
|
|
13712
13716
|
ddsColorSurfaceHoverSubtle: "#f1f3f4";
|
|
13713
13717
|
ddsColorSurfaceSelectedDefault: "#e7f1f7";
|
|
@@ -14149,6 +14153,7 @@ declare function useTheme(): {
|
|
|
14149
14153
|
ddsColorSurfaceDefault: "#1b1a18";
|
|
14150
14154
|
ddsColorSurfaceSubtle: "#292824";
|
|
14151
14155
|
ddsColorSurfaceMedium: "#363530";
|
|
14156
|
+
ddsColorSurfaceStrong: "#514f48";
|
|
14152
14157
|
ddsColorSurfaceHoverDefault: "#0b2d34";
|
|
14153
14158
|
ddsColorSurfaceHoverSubtle: "#292824";
|
|
14154
14159
|
ddsColorSurfaceSelectedDefault: "#0b2d34";
|
|
@@ -14188,7 +14193,7 @@ declare function useTheme(): {
|
|
|
14188
14193
|
ddsColorBorderInfo: "#5197c5";
|
|
14189
14194
|
ddsColorBorderOnAction: "#1b1a18";
|
|
14190
14195
|
ddsColorBorderStrong: "#ffffff";
|
|
14191
|
-
ddsColorTextDefault: "#
|
|
14196
|
+
ddsColorTextDefault: "#f3f3f2";
|
|
14192
14197
|
ddsColorTextMedium: "#e7e6e4";
|
|
14193
14198
|
ddsColorTextSubtle: "#cfcec9";
|
|
14194
14199
|
ddsColorTextOnInverse: "#ffffff";
|
|
@@ -14216,7 +14221,7 @@ declare function useTheme(): {
|
|
|
14216
14221
|
ddsColorTextOnTertiaryStrong: "#0b0d0e";
|
|
14217
14222
|
ddsColorTextOnDataDefault: "#0b0d0e";
|
|
14218
14223
|
ddsColorTextOnDataSubtle: "#ffffff";
|
|
14219
|
-
ddsColorIconDefault: "#
|
|
14224
|
+
ddsColorIconDefault: "#f3f3f2";
|
|
14220
14225
|
ddsColorIconMedium: "#e7e6e4";
|
|
14221
14226
|
ddsColorIconSubtle: "#cfcec9";
|
|
14222
14227
|
ddsColorIconOnInverse: "#ffffff";
|
|
@@ -14590,6 +14595,7 @@ declare function useTheme(): {
|
|
|
14590
14595
|
ddsColorSurfaceDefault: "#ffffff";
|
|
14591
14596
|
ddsColorSurfaceSubtle: "#f3f3f2";
|
|
14592
14597
|
ddsColorSurfaceMedium: "#e7e6e4";
|
|
14598
|
+
ddsColorSurfaceStrong: "#cfcec9";
|
|
14593
14599
|
ddsColorSurfaceHoverDefault: "#e9f1f2";
|
|
14594
14600
|
ddsColorSurfaceHoverSubtle: "#f3f3f2";
|
|
14595
14601
|
ddsColorSurfaceSelectedDefault: "#e9f1f2";
|
package/dist/index.mjs
CHANGED
|
@@ -7316,22 +7316,15 @@ const TextArea = ({ id, value, defaultValue, onChange, errorMessage, required =
|
|
|
7316
7316
|
};
|
|
7317
7317
|
TextArea.displayName = "TextArea";
|
|
7318
7318
|
//#endregion
|
|
7319
|
-
//#region src/components/Feedback/utils.tsx
|
|
7320
|
-
const getIconSize = (layout) => layout === "vertical" ? "large" : "medium";
|
|
7321
|
-
//#endregion
|
|
7322
7319
|
//#region src/components/Feedback/CommentComponent.tsx
|
|
7323
|
-
const CommentComponent = ({
|
|
7320
|
+
const CommentComponent = ({ rating, feedbackText, positiveFeedbackLabel, negativeFeedbackLabel, ratingSubmittedTitle, textAreaTip, loading, handleSubmit, handleFeedbackTextChange }) => {
|
|
7324
7321
|
const { t } = useTranslation();
|
|
7325
7322
|
return /* @__PURE__ */ jsxs(VStack, {
|
|
7326
7323
|
gap: "x1",
|
|
7327
7324
|
children: [
|
|
7328
|
-
/* @__PURE__ */
|
|
7325
|
+
/* @__PURE__ */ jsx("span", {
|
|
7329
7326
|
className: Feedback_module_default["rating-submitted-title"],
|
|
7330
|
-
children:
|
|
7331
|
-
icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
|
|
7332
|
-
color: "icon-action-resting",
|
|
7333
|
-
iconSize: getIconSize(layout)
|
|
7334
|
-
}), /* @__PURE__ */ jsxs(Paragraph, { children: [ratingSubmittedTitle, " "] })]
|
|
7327
|
+
children: /* @__PURE__ */ jsxs(Paragraph, { children: [ratingSubmittedTitle, " "] })
|
|
7335
7328
|
}),
|
|
7336
7329
|
/* @__PURE__ */ jsx(TextArea, {
|
|
7337
7330
|
value: feedbackText,
|
|
@@ -7357,6 +7350,9 @@ const texts$17 = createTexts({ send: {
|
|
|
7357
7350
|
se: "Sádde"
|
|
7358
7351
|
} });
|
|
7359
7352
|
//#endregion
|
|
7353
|
+
//#region src/components/Feedback/utils.tsx
|
|
7354
|
+
const getButtonSize = (layout) => layout === "vertical" ? "medium" : "small";
|
|
7355
|
+
//#endregion
|
|
7360
7356
|
//#region src/components/Tooltip/Tooltip.tsx
|
|
7361
7357
|
const Tooltip = ({ text, placement = "bottom", children, tooltipId, delay = 100, style, onMouseLeave, onMouseOver, keepMounted = true, id, ref, className, htmlProps, ...rest }) => {
|
|
7362
7358
|
const generatedId = useId();
|
|
@@ -7452,26 +7448,32 @@ Tooltip.displayName = "Tooltip";
|
|
|
7452
7448
|
//#region src/components/Feedback/RatingComponent.tsx
|
|
7453
7449
|
const RatingComponent = ({ layout, ratingLabel, loading, thumbUpTooltip, thumbDownTooltip, handleRatingChange }) => {
|
|
7454
7450
|
const { t } = useTranslation();
|
|
7455
|
-
const
|
|
7456
|
-
"aria-label": tooltip,
|
|
7457
|
-
onClick: () => handleRatingChange(rating),
|
|
7458
|
-
size: getIconSize(layout),
|
|
7459
|
-
icon: rating === "positive" ? ThumbUpIcon : ThumbDownIcon,
|
|
7460
|
-
color: "icon-medium"
|
|
7461
|
-
});
|
|
7451
|
+
const buttonSize = getButtonSize(layout);
|
|
7462
7452
|
return /* @__PURE__ */ jsxs("div", {
|
|
7463
7453
|
className: cn(Feedback_module_default["rating-container"], Feedback_module_default[`rating-container--${layout}`]),
|
|
7464
7454
|
children: [/* @__PURE__ */ jsx("h2", {
|
|
7465
7455
|
className: typographyStyles_module_default["label-medium"],
|
|
7466
7456
|
children: ratingLabel
|
|
7467
7457
|
}), loading ? /* @__PURE__ */ jsx(Spinner, { tooltip: t(texts$16.uploadingFeedback) }) : /* @__PURE__ */ jsxs(HStack, {
|
|
7468
|
-
gap: "
|
|
7458
|
+
gap: "x0.75",
|
|
7469
7459
|
children: [/* @__PURE__ */ jsx(Tooltip, {
|
|
7470
7460
|
text: thumbUpTooltip,
|
|
7471
|
-
children:
|
|
7461
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
7462
|
+
purpose: "secondary",
|
|
7463
|
+
"aria-label": thumbUpTooltip,
|
|
7464
|
+
onClick: () => handleRatingChange("positive"),
|
|
7465
|
+
size: buttonSize,
|
|
7466
|
+
icon: ThumbUpIcon
|
|
7467
|
+
})
|
|
7472
7468
|
}), /* @__PURE__ */ jsx(Tooltip, {
|
|
7473
7469
|
text: thumbDownTooltip,
|
|
7474
|
-
children:
|
|
7470
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
7471
|
+
purpose: "secondary",
|
|
7472
|
+
"aria-label": thumbDownTooltip,
|
|
7473
|
+
onClick: () => handleRatingChange("negative"),
|
|
7474
|
+
size: buttonSize,
|
|
7475
|
+
icon: ThumbDownIcon
|
|
7476
|
+
})
|
|
7475
7477
|
})]
|
|
7476
7478
|
})]
|
|
7477
7479
|
});
|
|
@@ -7529,7 +7531,6 @@ const Feedback = ({ layout = "vertical", ratingLabel, positiveFeedbackLabel, neg
|
|
|
7529
7531
|
handleRatingChange
|
|
7530
7532
|
});
|
|
7531
7533
|
if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) return /* @__PURE__ */ jsx(CommentComponent, {
|
|
7532
|
-
layout,
|
|
7533
7534
|
rating,
|
|
7534
7535
|
feedbackText,
|
|
7535
7536
|
positiveFeedbackLabel: tPositiveFeedbackLabel,
|