@sebgroup/green-core 1.15.0 → 1.16.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.
Files changed (124) hide show
  1. package/README.md +101 -7
  2. package/chunks/chunk.274BU2AI.js +244 -0
  3. package/chunks/chunk.2LQSDOD4.js +29 -0
  4. package/chunks/chunk.2ND5EWHE.js +65 -0
  5. package/chunks/chunk.2OOTOCUG.js +420 -0
  6. package/chunks/chunk.2WO4NHJ2.js +34 -0
  7. package/chunks/chunk.2Y3BHFKO.js +154 -0
  8. package/chunks/chunk.375BWME4.js +29 -0
  9. package/chunks/chunk.3SEVAGLE.js +96 -0
  10. package/chunks/chunk.522C22QY.js +460 -0
  11. package/chunks/chunk.5VURDMKE.js +75 -0
  12. package/chunks/chunk.6NM7ENKA.js +31 -0
  13. package/chunks/chunk.6UA66KQU.js +153 -0
  14. package/chunks/chunk.7P5N6NZL.js +560 -0
  15. package/chunks/chunk.7TCXY7BP.js +0 -0
  16. package/chunks/chunk.D7H7CUS4.js +55 -0
  17. package/chunks/chunk.DFYMYEGD.js +78 -0
  18. package/chunks/chunk.HS7ICQNA.js +0 -0
  19. package/chunks/chunk.IYCENQZG.js +28 -0
  20. package/chunks/chunk.J2A6J77W.js +81 -0
  21. package/chunks/chunk.KC32OWZE.js +274 -0
  22. package/chunks/chunk.KV4SDMFS.js +101 -0
  23. package/chunks/chunk.LUHCF4BJ.js +64 -0
  24. package/chunks/chunk.MAD5DQMN.js +161 -0
  25. package/chunks/chunk.MI4A2C2A.js +0 -0
  26. package/chunks/chunk.NOYHINYP.js +467 -0
  27. package/chunks/chunk.Q2T57HE7.js +0 -0
  28. package/chunks/chunk.QONSFT2N.js +4653 -0
  29. package/chunks/chunk.TMBQL2RO.js +0 -0
  30. package/chunks/chunk.TN6ZYAH3.js +74 -0
  31. package/chunks/chunk.TSDZQZBY.js +0 -0
  32. package/chunks/chunk.TX64TTBN.js +0 -0
  33. package/chunks/chunk.UF6IEONX.js +0 -0
  34. package/chunks/chunk.VOYMQ322.js +61 -0
  35. package/chunks/chunk.VYK7D6QO.js +64 -0
  36. package/chunks/chunk.WDZ2JTCP.js +360 -0
  37. package/chunks/chunk.WJDR7FTS.js +193 -0
  38. package/chunks/chunk.WM7HBMMV.js +54 -0
  39. package/chunks/chunk.XHTJVQUJ.js +140 -0
  40. package/chunks/chunk.XI4H54TV.js +39 -0
  41. package/chunks/chunk.XU4HZLJL.js +0 -0
  42. package/chunks/chunk.YIQIH4RW.js +139 -0
  43. package/chunks/chunk.YJHAKLGR.js +54 -0
  44. package/chunks/chunk.YO24ZYAD.js +0 -0
  45. package/chunks/chunk.ZTE73BY2.js +655 -0
  46. package/components/badge/badge.js +245 -0
  47. package/components/button/button.d.ts +5 -5
  48. package/components/button/button.js +18 -0
  49. package/components/button/button.trans.styles.d.ts +2 -0
  50. package/components/button/index.d.ts +1 -0
  51. package/components/button/index.js +18 -0
  52. package/components/checkbox/checkbox.js +219 -0
  53. package/components/context-menu/context-menu.d.ts +2 -1
  54. package/components/context-menu/context-menu.js +22 -0
  55. package/components/context-menu/index.d.ts +3 -0
  56. package/components/context-menu/index.js +29 -0
  57. package/components/datepicker/date-part-spinner.js +10 -0
  58. package/components/datepicker/datepicker.d.ts +3 -2
  59. package/components/datepicker/datepicker.js +29 -0
  60. package/components/datepicker/index.d.ts +1 -0
  61. package/components/datepicker/index.js +29 -0
  62. package/components/dropdown/dropdown.d.ts +2 -2
  63. package/components/dropdown/dropdown.js +22 -0
  64. package/components/dropdown/index.d.ts +3 -0
  65. package/components/dropdown/index.js +30 -0
  66. package/components/form-control.js +12 -0
  67. package/components/grid/grid.d.ts +2 -2
  68. package/components/grid/grid.js +11 -0
  69. package/components/grid/grid.style.css.js +7 -0
  70. package/components/grid/index.d.ts +1 -0
  71. package/components/grid/index.js +11 -0
  72. package/components/grouped-list/grouped-list.js +14 -0
  73. package/components/grouped-list/index.d.ts +2 -0
  74. package/components/grouped-list/index.js +17 -0
  75. package/components/grouped-list/list-item.js +10 -0
  76. package/components/icon/icon.d.ts +2 -2
  77. package/components/icon/icon.js +10 -0
  78. package/components/icon/index.d.ts +1 -0
  79. package/components/icon/index.js +10 -0
  80. package/components/index.d.ts +4 -3
  81. package/components/index.js +81 -0
  82. package/components/input/input.js +682 -0
  83. package/components/radio/radio-group.js +9 -0
  84. package/components/radio/radio.js +240 -0
  85. package/components/segmented-control/index.d.ts +1 -0
  86. package/components/segmented-control/index.js +15 -0
  87. package/components/segmented-control/segment/index.d.ts +1 -0
  88. package/components/segmented-control/segment/index.js +13 -0
  89. package/components/segmented-control/segment/segment.js +12 -0
  90. package/components/segmented-control/segmented-control.d.ts +1 -1
  91. package/components/segmented-control/segmented-control.js +15 -0
  92. package/components/switch/switch.js +164 -0
  93. package/components/theme/index.d.ts +1 -0
  94. package/components/theme/index.js +11 -0
  95. package/components/theme/theme.js +11 -0
  96. package/components/tooltip/tooltip.js +252 -0
  97. package/index.js +72 -4278
  98. package/localization.js +40 -44
  99. package/package.json +7 -16
  100. package/primitives/calendar/calendar.js +13 -0
  101. package/primitives/calendar/functions.js +7 -0
  102. package/primitives/calendar/index.d.ts +1 -0
  103. package/primitives/calendar/index.js +14 -0
  104. package/primitives/listbox/index.d.ts +0 -1
  105. package/primitives/listbox/index.js +17 -0
  106. package/primitives/listbox/listbox.d.ts +2 -1
  107. package/primitives/listbox/listbox.js +16 -0
  108. package/primitives/listbox/option.js +14 -0
  109. package/primitives/menu/index.d.ts +1 -0
  110. package/primitives/menu/index.js +15 -0
  111. package/primitives/menu/menu-heading.js +11 -0
  112. package/primitives/menu/menu-item.d.ts +1 -2
  113. package/primitives/menu/menu-item.js +12 -0
  114. package/primitives/menu/menu.d.ts +2 -1
  115. package/primitives/menu/menu.js +14 -0
  116. package/primitives/popover/index.js +14 -0
  117. package/primitives/popover/popover.js +13 -0
  118. package/primitives/ripple/index.d.ts +1 -0
  119. package/primitives/ripple/index.js +11 -0
  120. package/primitives/ripple/ripple.d.ts +1 -1
  121. package/primitives/ripple/ripple.js +10 -0
  122. package/scoping.d.ts +1 -0
  123. package/scoping.js +18 -0
  124. package/transitional-styles.js +6 -4275
@@ -1,4278 +1,9 @@
1
- // libs/core/src/utils/transitional-styles/transitional-styles.ts
2
- import { html as html2 } from "lit";
3
- import { unsafeHTML } from "lit/directives/unsafe-html.js";
4
-
5
- // libs/core/src/components/context-menu/context-menu.trans.styles.scss
6
- var context_menu_trans_styles_default = `/* stylelint-disable max-nesting-depth */
7
- /* stylelint-enable max-nesting-depth */
8
- /**
9
- * Calculate the luminance for a color.
10
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
11
- */
12
- /**
13
- * Calculate the contrast ratio between two colors.
14
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
15
- */
16
- /* stylelint-disable */
17
- /* stylelint-enable */
18
- /* stylelint-disable */
19
- /**
20
- * @deprecated
21
- * Use \`add-focus\` instead
22
- */
23
- /** add background color, color and border-color to element when it has focus-visible i.e. tab focus */
24
- i.sg-icon {
25
- font-size: 0;
26
- width: 1rem;
27
- height: 1rem;
28
- display: inline-block;
29
- }
30
- i.sg-icon::before {
31
- content: "";
32
- display: inline-block;
33
- background: var(--color);
34
- width: 100%;
35
- height: 100%;
36
- -webkit-mask-repeat: no-repeat;
37
- mask-repeat: no-repeat;
38
- }
39
- i.sg-icon.sg-icon-calendar::before {
40
- -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 248h80v-56H48v56zm0 48v64h80v-64H48zm128 0v64h96v-64h-96zm144 0v64h80v-64h-80zm80-104h-80v56h80v-56zm0 216h-80v56h64c8.8 0 16-7.2 16-16v-40zm-128 0h-96v56h96v-56zm-144 0H48v40c0 8.8 7.16 16 16 16h64v-56zm144-216h-96v56h96v-56z '/%3E%3C/svg%3E");
41
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 248h80v-56H48v56zm0 48v64h80v-64H48zm128 0v64h96v-64h-96zm144 0v64h80v-64h-80zm80-104h-80v56h80v-56zm0 216h-80v56h64c8.8 0 16-7.2 16-16v-40zm-128 0h-96v56h96v-56zm-144 0H48v40c0 8.8 7.16 16 16 16h64v-56zm144-216h-96v56h96v-56z '/%3E%3C/svg%3E");
42
- }
43
- i.sg-icon.sg-icon-calendar-range::before {
44
- -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M96 288c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm224 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-128-64c0-13.3 10.7-24 24-24h112c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24zm40 72c13.3 0 24 10.7 24 24s-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h112zM152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 448c0 8.8 7.16 16 16 16h320c8.8 0 16-7.2 16-16V192H48v256z'/%3E%3C/svg%3E");
45
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M96 288c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm224 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-128-64c0-13.3 10.7-24 24-24h112c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24zm40 72c13.3 0 24 10.7 24 24s-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h112zM152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 448c0 8.8 7.16 16 16 16h320c8.8 0 16-7.2 16-16V192H48v256z'/%3E%3C/svg%3E");
46
- }
47
- i.sg-icon.sg-icon-ellipsis::before {
48
- -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z'/%3E%3C/svg%3E");
49
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z'/%3E%3C/svg%3E");
50
- }
51
- i.sg-icon.sg-icon-grip-vertical::before {
52
- -webkit-mask-image: url("data:image/svg+xml, %3Csvg height='1em' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z' /%3E%3C/svg%3E");
53
- mask-image: url("data:image/svg+xml, %3Csvg height='1em' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z' /%3E%3C/svg%3E");
54
- }
55
- i.sg-icon.sg-icon-next::before {
56
- background: none;
57
- border-bottom: 2px solid;
58
- border-left: 2px solid;
59
- content: "";
60
- display: block;
61
- height: 12px;
62
- margin-left: -10px;
63
- margin-top: 2px;
64
- transform: translate(75%) rotate(-135deg) scaleZ(-1);
65
- transition: transform 0.3s ease-in;
66
- width: 12px;
67
- }
68
- i.sg-icon.sg-icon-previous::before {
69
- background: none;
70
- border-bottom: 2px solid;
71
- border-left: 2px solid;
72
- content: "";
73
- display: block;
74
- height: 12px;
75
- margin-left: -4px;
76
- margin-top: 2px;
77
- transform: translate(75%) rotate(45deg) scaleZ(-1);
78
- transition: transform 0.3s ease-in;
79
- width: 12px;
80
- }
81
- i.sg-icon.sg-icon-ellipsis::before {
82
- margin-right: -2px;
83
- }
84
-
85
- @layer base, reset, transitional-styles;
86
- @layer transitional-styles {
87
- @layer _base, _overrides;
88
- :host {
89
- display: inline-block;
90
- }
91
- @layer _base {
92
- button {
93
- background-color: transparent;
94
- border: 0;
95
- cursor: pointer;
96
- font-family: inherit;
97
- padding: 0;
98
- padding-left: 1rem;
99
- padding-right: 1rem;
100
- padding-bottom: 0.75rem;
101
- padding-top: 0.75rem;
102
- border-radius: var(--sg-border-radius);
103
- border: solid var(--sg-border-width) var(--sg-border-color);
104
- font-weight: 500;
105
- min-height: 2.75rem;
106
- align-items: center;
107
- display: inline-flex;
108
- justify-content: center;
109
- background-color: transparent;
110
- border: 0.0625rem solid transparent;
111
- padding: 0.625rem;
112
- height: 2.75rem;
113
- width: 2.75rem;
114
- min-width: auto;
115
- --color: var(--gds-ref-pallet-base800);
116
- }
117
- button:focus:not(:focus-visible) {
118
- box-shadow: none;
119
- outline: 0;
120
- }
121
- button:focus, button:focus-visible {
122
- outline-color: var(--gds-sys-color-focus-outline);
123
- outline-style: solid;
124
- outline-width: 0.125rem;
125
- outline-offset: 0.125rem;
126
- }
127
- @media (max-width: 35.98em) {
128
- button {
129
- min-width: 100%;
130
- }
131
- }
132
- @media screen and (-ms-high-contrast: active) {
133
- button {
134
- border: 2px solid currentcolor;
135
- }
136
- }
137
- button.small {
138
- min-height: 2rem;
139
- padding: 0.4375rem 0.75rem;
140
- line-height: 1rem;
141
- }
142
- button.large {
143
- min-height: 4rem;
144
- padding: 1rem 1.5rem;
145
- font-size: 1.5rem;
146
- line-height: 2rem;
147
- }
148
- .form-group button {
149
- margin-top: -0.625rem;
150
- }
151
- button.small {
152
- height: 2rem;
153
- width: 2rem;
154
- padding: 0.4375rem;
155
- line-height: 1.125rem;
156
- }
157
- button svg {
158
- height: 1rem;
159
- width: 1rem;
160
- }
161
- button path,
162
- button line,
163
- button circle,
164
- button rect,
165
- button ellipse,
166
- button polyline,
167
- button text {
168
- fill: var(--gds-ref-pallet-base800);
169
- stroke: var(--gds-ref-pallet-base800);
170
- transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
171
- }
172
- button:hover, button.highlighted {
173
- background-color: rgba(0, 0, 0, 0.1);
174
- border-color: transparent;
175
- }
176
- button:active, button.highlighted:hover {
177
- background-color: rgba(0, 0, 0, 0.2);
178
- border-color: transparent;
179
- }
180
- }
181
- @layer _overrides {
182
- button {
183
- border-color: transparent;
184
- color: var(--gds-ref-pallet-base800);
185
- display: flex;
186
- gap: 0.5rem;
187
- line-height: 0.75;
188
- padding-inline: 0.4375rem;
189
- width: auto;
190
- }
191
- button.highlighted {
192
- background-color: var(--gds-ref-pallet-base300);
193
- }
194
- }
195
- }`;
196
-
197
- // libs/core/src/components/context-menu/context-menu.trans.styles.ts
198
- function register() {
199
- TransitionalStyles.instance.register("gds-context-menu", context_menu_trans_styles_default.toString());
200
- }
201
-
202
- // libs/core/src/components/datepicker/datepicker.trans.styles.scss
203
- var datepicker_trans_styles_default = `/* stylelint-disable max-nesting-depth */
204
- /* stylelint-enable max-nesting-depth */
205
- /**
206
- * Calculate the luminance for a color.
207
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
208
- */
209
- /**
210
- * Calculate the contrast ratio between two colors.
211
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
212
- */
213
- /* stylelint-disable */
214
- /* stylelint-enable */
215
- /* stylelint-disable */
216
- /**
217
- * @deprecated
218
- * Use \`add-focus\` instead
219
- */
220
- /** add background color, color and border-color to element when it has focus-visible i.e. tab focus */
221
- i.sg-icon {
222
- font-size: 0;
223
- width: 1rem;
224
- height: 1rem;
225
- display: inline-block;
226
- }
227
- i.sg-icon::before {
228
- content: "";
229
- display: inline-block;
230
- background: var(--color);
231
- width: 100%;
232
- height: 100%;
233
- -webkit-mask-repeat: no-repeat;
234
- mask-repeat: no-repeat;
235
- }
236
- i.sg-icon.sg-icon-calendar::before {
237
- -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 248h80v-56H48v56zm0 48v64h80v-64H48zm128 0v64h96v-64h-96zm144 0v64h80v-64h-80zm80-104h-80v56h80v-56zm0 216h-80v56h64c8.8 0 16-7.2 16-16v-40zm-128 0h-96v56h96v-56zm-144 0H48v40c0 8.8 7.16 16 16 16h64v-56zm144-216h-96v56h96v-56z '/%3E%3C/svg%3E");
238
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 248h80v-56H48v56zm0 48v64h80v-64H48zm128 0v64h96v-64h-96zm144 0v64h80v-64h-80zm80-104h-80v56h80v-56zm0 216h-80v56h64c8.8 0 16-7.2 16-16v-40zm-128 0h-96v56h96v-56zm-144 0H48v40c0 8.8 7.16 16 16 16h64v-56zm144-216h-96v56h96v-56z '/%3E%3C/svg%3E");
239
- }
240
- i.sg-icon.sg-icon-calendar-range::before {
241
- -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M96 288c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm224 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-128-64c0-13.3 10.7-24 24-24h112c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24zm40 72c13.3 0 24 10.7 24 24s-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h112zM152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 448c0 8.8 7.16 16 16 16h320c8.8 0 16-7.2 16-16V192H48v256z'/%3E%3C/svg%3E");
242
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M96 288c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm224 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-128-64c0-13.3 10.7-24 24-24h112c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24zm40 72c13.3 0 24 10.7 24 24s-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h112zM152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 448c0 8.8 7.16 16 16 16h320c8.8 0 16-7.2 16-16V192H48v256z'/%3E%3C/svg%3E");
243
- }
244
- i.sg-icon.sg-icon-ellipsis::before {
245
- -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z'/%3E%3C/svg%3E");
246
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z'/%3E%3C/svg%3E");
247
- }
248
- i.sg-icon.sg-icon-grip-vertical::before {
249
- -webkit-mask-image: url("data:image/svg+xml, %3Csvg height='1em' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z' /%3E%3C/svg%3E");
250
- mask-image: url("data:image/svg+xml, %3Csvg height='1em' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z' /%3E%3C/svg%3E");
251
- }
252
- i.sg-icon.sg-icon-next::before {
253
- background: none;
254
- border-bottom: 2px solid;
255
- border-left: 2px solid;
256
- content: "";
257
- display: block;
258
- height: 12px;
259
- margin-left: -10px;
260
- margin-top: 2px;
261
- transform: translate(75%) rotate(-135deg) scaleZ(-1);
262
- transition: transform 0.3s ease-in;
263
- width: 12px;
264
- }
265
- i.sg-icon.sg-icon-previous::before {
266
- background: none;
267
- border-bottom: 2px solid;
268
- border-left: 2px solid;
269
- content: "";
270
- display: block;
271
- height: 12px;
272
- margin-left: -4px;
273
- margin-top: 2px;
274
- transform: translate(75%) rotate(45deg) scaleZ(-1);
275
- transition: transform 0.3s ease-in;
276
- width: 12px;
277
- }
278
- i.sg-icon.sg-icon-ellipsis::before {
279
- margin-right: -2px;
280
- }
281
-
282
- /* rules for groups of checkboxes and radio buttons*/
283
- @layer base, reset, transitional-styles;
284
- @layer transitional-styles {
285
- :host {
286
- display: block;
287
- }
288
- label {
289
- display: block;
290
- font-weight: 500;
291
- margin-bottom: 0.5rem;
292
- }
293
- label + .field {
294
- margin-top: 0.5rem;
295
- }
296
- .form-info {
297
- color: var(--text-primary-color);
298
- display: block;
299
- font-size: 0.875rem;
300
- line-height: 1.25rem;
301
- width: 100%;
302
- }
303
- .field {
304
- border-radius: var(--sg-border-radius);
305
- border: solid var(--sg-border-width) var(--sg-border-color);
306
- --border-color: var(--sg-border-color);
307
- align-items: stretch;
308
- background-color: var(--sg-form-control-bg);
309
- box-sizing: border-box;
310
- color: var(--sg-text-primary);
311
- cursor: text;
312
- display: flex;
313
- justify-content: space-between;
314
- margin: 0.5rem 0;
315
- min-height: 2.75rem;
316
- }
317
- .field:hover {
318
- background-color: var(--grey-200);
319
- }
320
- .field .input {
321
- padding-left: 1rem;
322
- padding-right: 1rem;
323
- border-radius: var(--sg-border-radius);
324
- align-items: center;
325
- display: flex;
326
- flex-grow: 1;
327
- }
328
- .field .input:focus:not(:focus-visible) {
329
- box-shadow: none;
330
- outline: 0;
331
- }
332
- .field .input:focus, .field .input:focus-within {
333
- outline-color: var(--gds-sys-color-focus-outline);
334
- outline-style: solid;
335
- outline-width: 0.125rem;
336
- outline-offset: 0.125rem;
337
- }
338
- .field .input::-moz-selection, .field .input span::-moz-selection {
339
- background: transparent;
340
- }
341
- .field .input::selection,
342
- .field .input span::selection {
343
- background: transparent;
344
- }
345
- .field .input.is-placeholder {
346
- opacity: 0;
347
- }
348
- .field .input.is-placeholder:hover, .field .input.is-placeholder:focus, .field .input.is-placeholder:has(:focus) {
349
- opacity: 0.7;
350
- }
351
- .field [role=spinbutton] {
352
- display: inline-block;
353
- }
354
- .field [role=spinbutton]:focus {
355
- background: color-mix(in srgb, var(--gds-sys-color-blue) 50%, transparent);
356
- outline: none;
357
- }
358
- .field [role=spinbutton]::-moz-selection {
359
- background: transparent;
360
- }
361
- .field [role=spinbutton]::selection {
362
- background: transparent;
363
- }
364
- .field button {
365
- border-radius: var(--sg-border-radius);
366
- -webkit-appearance: none;
367
- -moz-appearance: none;
368
- appearance: none;
369
- background: transparent;
370
- border: 0;
371
- box-sizing: border-box;
372
- color: var(--text-primary-color);
373
- cursor: pointer;
374
- width: 2.75rem;
375
- }
376
- .field button:focus:not(:focus-visible) {
377
- box-shadow: none;
378
- outline: 0;
379
- }
380
- .field button:focus, .field button:focus-visible {
381
- outline-color: var(--gds-sys-color-focus-outline);
382
- outline-style: solid;
383
- outline-width: 0.125rem;
384
- outline-offset: 0.125rem;
385
- }
386
- .field button:hover {
387
- background: var(--grey-500);
388
- }
389
- .field button svg {
390
- height: 1rem;
391
- width: 1rem;
392
- }
393
- .field button svg > * {
394
- fill: none;
395
- stroke: currentColor;
396
- stroke-linecap: round;
397
- stroke-linejoin: round;
398
- stroke-width: 2px;
399
- }
400
- .field.small {
401
- font-size: 0.875rem;
402
- min-height: 2rem;
403
- }
404
- :host(:invalid) .field + .form-info {
405
- position: relative;
406
- transition: all 200ms ease-in-out, outline-offset 0s, outline-width 0s;
407
- color: var(--intent-danger-background);
408
- opacity: 1;
409
- }
410
- :host(:invalid) .field + .form-info::before {
411
- background: transparent;
412
- border-radius: 0 0 4px 4px;
413
- -webkit-clip-path: inset(4px 0 0 0);
414
- clip-path: inset(4px 0 0 0);
415
- content: "";
416
- display: block;
417
- height: 4px;
418
- position: absolute;
419
- transform: translate3d(0, -12px, 0);
420
- transition: 300ms ease-in-out;
421
- width: 100%;
422
- }
423
- :host(:invalid) .field + .form-info::before {
424
- background: var(--intent-danger-background);
425
- -webkit-clip-path: inset(1px 0 0 0);
426
- clip-path: inset(1px 0 0 0);
427
- }
428
- .header {
429
- padding-top: 0.5rem;
430
- display: flex;
431
- justify-content: space-between;
432
- }
433
- @media (max-width: 35.98em) {
434
- .header {
435
- padding-top: 0;
436
- }
437
- }
438
- .header > * {
439
- margin-left: 0.25rem;
440
- margin-right: 0.25rem;
441
- min-width: auto;
442
- }
443
- .header > *.link {
444
- flex: 1 1;
445
- }
446
- .header button {
447
- border-radius: var(--sg-border-radius);
448
- -webkit-appearance: none;
449
- -moz-appearance: none;
450
- appearance: none;
451
- background: transparent;
452
- border: 0;
453
- cursor: pointer;
454
- margin: 0.125rem 0.25rem;
455
- padding: 0.5rem;
456
- width: 2.75rem;
457
- }
458
- .header button:focus:not(:focus-visible) {
459
- box-shadow: none;
460
- outline: 0;
461
- }
462
- .header button:focus, .header button:focus-visible {
463
- outline-color: var(--gds-sys-color-focus-outline);
464
- outline-style: solid;
465
- outline-width: 0.125rem;
466
- outline-offset: 0.125rem;
467
- }
468
- .header button:hover {
469
- background: var(--grey-400);
470
- }
471
- .header button:focus-visible {
472
- outline-offset: 0;
473
- }
474
- .header button .icon::before {
475
- background: none;
476
- border-bottom: 2px solid var(--grey-1000);
477
- border-left: 2px solid var(--grey-1000);
478
- content: "";
479
- display: block;
480
- height: 8px;
481
- margin-top: 2px;
482
- width: 8px;
483
- }
484
- .header button .icon.prev::before {
485
- margin-left: 3px;
486
- transform: translate(75%) rotate(45deg) scaleZ(-1);
487
- }
488
- .header button .icon.next::before {
489
- margin-left: -1px;
490
- transform: translate(75%) rotate(-135deg) scaleZ(-1);
491
- }
492
- .footer {
493
- padding-left: 0.5rem;
494
- padding-right: 0.5rem;
495
- padding-bottom: 0.5rem;
496
- padding-top: 0.5rem;
497
- border-top: solid var(--sg-border-width) var(--sg-border-color);
498
- border-color: #ddd;
499
- display: flex;
500
- justify-content: space-between;
501
- }
502
- .footer button {
503
- border-radius: var(--sg-border-radius);
504
- -webkit-appearance: none;
505
- -moz-appearance: none;
506
- appearance: none;
507
- background: transparent;
508
- border: 0;
509
- color: var(--intent-info-background);
510
- cursor: pointer;
511
- font-family: inherit;
512
- font-weight: 500;
513
- padding: 0.5rem 0.75rem;
514
- }
515
- .footer button:focus:not(:focus-visible) {
516
- box-shadow: none;
517
- outline: 0;
518
- }
519
- .footer button:focus, .footer button:focus-visible {
520
- outline-color: var(--gds-sys-color-focus-outline);
521
- outline-style: solid;
522
- outline-width: 0.125rem;
523
- outline-offset: 0.125rem;
524
- }
525
- .footer button:hover {
526
- background: var(--intent-info-background);
527
- color: #fff;
528
- }
529
- .footer .clear {
530
- margin-right: auto;
531
- }
532
- }`;
533
-
534
- // libs/core/src/components/datepicker/datepicker.trans.styles.ts
535
- function register2() {
536
- TransitionalStyles.instance.register("gds-datepicker", datepicker_trans_styles_default.toString());
537
- }
538
-
539
- // libs/core/src/components/dropdown/dropdown.trans.styles.scss
540
- var dropdown_trans_styles_default = `/**
541
- * Calculate the luminance for a color.
542
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
543
- */
544
- /**
545
- * Calculate the contrast ratio between two colors.
546
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
547
- */
548
- /* stylelint-disable max-nesting-depth */
549
- /* stylelint-enable max-nesting-depth */
550
- /* stylelint-disable */
551
- /* stylelint-enable */
552
- /* stylelint-disable */
553
- /**
554
- * @deprecated
555
- * Use \`add-focus\` instead
556
- */
557
- /** add background color, color and border-color to element when it has focus-visible i.e. tab focus */
558
- /* rules for groups of checkboxes and radio buttons*/
559
- @layer base, reset, transitional-styles;
560
- @layer transitional-styles {
561
- input:not([type]),
562
- input[type=date],
563
- input[type=datetime],
564
- input[type=datetime-local],
565
- input[type=email],
566
- input[type=month],
567
- input[type=number],
568
- input[type=password],
569
- input[type=search],
570
- input[type=tel],
571
- input[type=text],
572
- input[type=time],
573
- input[type=url],
574
- input[type=week] {
575
- padding-left: 1rem;
576
- padding-right: 1rem;
577
- padding-bottom: 0.75rem;
578
- padding-top: 0.75rem;
579
- border-radius: var(--sg-border-radius);
580
- border: solid var(--sg-border-width) var(--sg-border-color);
581
- --border-color: var(--sg-border-color);
582
- background-color: var(--sg-form-control-bg);
583
- color: var(--sg-text-primary);
584
- min-height: 2.75rem;
585
- display: flex;
586
- align-items: center;
587
- justify-content: center;
588
- }
589
- input:not([type]):focus:not(:focus-visible),
590
- input[type=date]:focus:not(:focus-visible),
591
- input[type=datetime]:focus:not(:focus-visible),
592
- input[type=datetime-local]:focus:not(:focus-visible),
593
- input[type=email]:focus:not(:focus-visible),
594
- input[type=month]:focus:not(:focus-visible),
595
- input[type=number]:focus:not(:focus-visible),
596
- input[type=password]:focus:not(:focus-visible),
597
- input[type=search]:focus:not(:focus-visible),
598
- input[type=tel]:focus:not(:focus-visible),
599
- input[type=text]:focus:not(:focus-visible),
600
- input[type=time]:focus:not(:focus-visible),
601
- input[type=url]:focus:not(:focus-visible),
602
- input[type=week]:focus:not(:focus-visible) {
603
- box-shadow: none;
604
- outline: 0;
605
- }
606
- input:not([type]):focus, input:not([type]):focus-visible,
607
- input[type=date]:focus,
608
- input[type=date]:focus-visible,
609
- input[type=datetime]:focus,
610
- input[type=datetime]:focus-visible,
611
- input[type=datetime-local]:focus,
612
- input[type=datetime-local]:focus-visible,
613
- input[type=email]:focus,
614
- input[type=email]:focus-visible,
615
- input[type=month]:focus,
616
- input[type=month]:focus-visible,
617
- input[type=number]:focus,
618
- input[type=number]:focus-visible,
619
- input[type=password]:focus,
620
- input[type=password]:focus-visible,
621
- input[type=search]:focus,
622
- input[type=search]:focus-visible,
623
- input[type=tel]:focus,
624
- input[type=tel]:focus-visible,
625
- input[type=text]:focus,
626
- input[type=text]:focus-visible,
627
- input[type=time]:focus,
628
- input[type=time]:focus-visible,
629
- input[type=url]:focus,
630
- input[type=url]:focus-visible,
631
- input[type=week]:focus,
632
- input[type=week]:focus-visible {
633
- outline-color: var(--gds-sys-color-focus-outline);
634
- outline-style: solid;
635
- outline-width: 0.125rem;
636
- outline-offset: 0.125rem;
637
- }
638
- input:not([type]).small,
639
- input[type=date].small,
640
- input[type=datetime].small,
641
- input[type=datetime-local].small,
642
- input[type=email].small,
643
- input[type=month].small,
644
- input[type=number].small,
645
- input[type=password].small,
646
- input[type=search].small,
647
- input[type=tel].small,
648
- input[type=text].small,
649
- input[type=time].small,
650
- input[type=url].small,
651
- input[type=week].small {
652
- min-height: 2rem;
653
- padding: 0.25rem 0.75rem;
654
- line-height: 1rem;
655
- }
656
- @media screen and (-ms-high-contrast: active) {
657
- input:not([type]),
658
- input[type=date],
659
- input[type=datetime],
660
- input[type=datetime-local],
661
- input[type=email],
662
- input[type=month],
663
- input[type=number],
664
- input[type=password],
665
- input[type=search],
666
- input[type=tel],
667
- input[type=text],
668
- input[type=time],
669
- input[type=url],
670
- input[type=week] {
671
- border: 2px solid currentcolor;
672
- }
673
- }
674
- input:not([type]):disabled, input:not([type]).disabled, input:not([type])[aria-disabled=true],
675
- input[type=date]:disabled,
676
- input[type=date].disabled,
677
- input[type=date][aria-disabled=true],
678
- input[type=datetime]:disabled,
679
- input[type=datetime].disabled,
680
- input[type=datetime][aria-disabled=true],
681
- input[type=datetime-local]:disabled,
682
- input[type=datetime-local].disabled,
683
- input[type=datetime-local][aria-disabled=true],
684
- input[type=email]:disabled,
685
- input[type=email].disabled,
686
- input[type=email][aria-disabled=true],
687
- input[type=month]:disabled,
688
- input[type=month].disabled,
689
- input[type=month][aria-disabled=true],
690
- input[type=number]:disabled,
691
- input[type=number].disabled,
692
- input[type=number][aria-disabled=true],
693
- input[type=password]:disabled,
694
- input[type=password].disabled,
695
- input[type=password][aria-disabled=true],
696
- input[type=search]:disabled,
697
- input[type=search].disabled,
698
- input[type=search][aria-disabled=true],
699
- input[type=tel]:disabled,
700
- input[type=tel].disabled,
701
- input[type=tel][aria-disabled=true],
702
- input[type=text]:disabled,
703
- input[type=text].disabled,
704
- input[type=text][aria-disabled=true],
705
- input[type=time]:disabled,
706
- input[type=time].disabled,
707
- input[type=time][aria-disabled=true],
708
- input[type=url]:disabled,
709
- input[type=url].disabled,
710
- input[type=url][aria-disabled=true],
711
- input[type=week]:disabled,
712
- input[type=week].disabled,
713
- input[type=week][aria-disabled=true] {
714
- background: var(--sg-form-control-bg-disabled) !important;
715
- color: var(--text-disabled-color) !important;
716
- border-color: var(--border-disabled-color) !important;
717
- cursor: not-allowed;
718
- }
719
- input:not([type]):disabled::-moz-placeholder, input:not([type]).disabled::-moz-placeholder, input:not([type])[aria-disabled=true]::-moz-placeholder, input[type=date]:disabled::-moz-placeholder, input[type=date].disabled::-moz-placeholder, input[type=date][aria-disabled=true]::-moz-placeholder, input[type=datetime]:disabled::-moz-placeholder, input[type=datetime].disabled::-moz-placeholder, input[type=datetime][aria-disabled=true]::-moz-placeholder, input[type=datetime-local]:disabled::-moz-placeholder, input[type=datetime-local].disabled::-moz-placeholder, input[type=datetime-local][aria-disabled=true]::-moz-placeholder, input[type=email]:disabled::-moz-placeholder, input[type=email].disabled::-moz-placeholder, input[type=email][aria-disabled=true]::-moz-placeholder, input[type=month]:disabled::-moz-placeholder, input[type=month].disabled::-moz-placeholder, input[type=month][aria-disabled=true]::-moz-placeholder, input[type=number]:disabled::-moz-placeholder, input[type=number].disabled::-moz-placeholder, input[type=number][aria-disabled=true]::-moz-placeholder, input[type=password]:disabled::-moz-placeholder, input[type=password].disabled::-moz-placeholder, input[type=password][aria-disabled=true]::-moz-placeholder, input[type=search]:disabled::-moz-placeholder, input[type=search].disabled::-moz-placeholder, input[type=search][aria-disabled=true]::-moz-placeholder, input[type=tel]:disabled::-moz-placeholder, input[type=tel].disabled::-moz-placeholder, input[type=tel][aria-disabled=true]::-moz-placeholder, input[type=text]:disabled::-moz-placeholder, input[type=text].disabled::-moz-placeholder, input[type=text][aria-disabled=true]::-moz-placeholder, input[type=time]:disabled::-moz-placeholder, input[type=time].disabled::-moz-placeholder, input[type=time][aria-disabled=true]::-moz-placeholder, input[type=url]:disabled::-moz-placeholder, input[type=url].disabled::-moz-placeholder, input[type=url][aria-disabled=true]::-moz-placeholder, input[type=week]:disabled::-moz-placeholder, input[type=week].disabled::-moz-placeholder, input[type=week][aria-disabled=true]::-moz-placeholder {
720
- color: var(--text-disabled-color);
721
- }
722
- input:not([type]):disabled::placeholder, input:not([type]).disabled::placeholder, input:not([type])[aria-disabled=true]::placeholder,
723
- input[type=date]:disabled::placeholder,
724
- input[type=date].disabled::placeholder,
725
- input[type=date][aria-disabled=true]::placeholder,
726
- input[type=datetime]:disabled::placeholder,
727
- input[type=datetime].disabled::placeholder,
728
- input[type=datetime][aria-disabled=true]::placeholder,
729
- input[type=datetime-local]:disabled::placeholder,
730
- input[type=datetime-local].disabled::placeholder,
731
- input[type=datetime-local][aria-disabled=true]::placeholder,
732
- input[type=email]:disabled::placeholder,
733
- input[type=email].disabled::placeholder,
734
- input[type=email][aria-disabled=true]::placeholder,
735
- input[type=month]:disabled::placeholder,
736
- input[type=month].disabled::placeholder,
737
- input[type=month][aria-disabled=true]::placeholder,
738
- input[type=number]:disabled::placeholder,
739
- input[type=number].disabled::placeholder,
740
- input[type=number][aria-disabled=true]::placeholder,
741
- input[type=password]:disabled::placeholder,
742
- input[type=password].disabled::placeholder,
743
- input[type=password][aria-disabled=true]::placeholder,
744
- input[type=search]:disabled::placeholder,
745
- input[type=search].disabled::placeholder,
746
- input[type=search][aria-disabled=true]::placeholder,
747
- input[type=tel]:disabled::placeholder,
748
- input[type=tel].disabled::placeholder,
749
- input[type=tel][aria-disabled=true]::placeholder,
750
- input[type=text]:disabled::placeholder,
751
- input[type=text].disabled::placeholder,
752
- input[type=text][aria-disabled=true]::placeholder,
753
- input[type=time]:disabled::placeholder,
754
- input[type=time].disabled::placeholder,
755
- input[type=time][aria-disabled=true]::placeholder,
756
- input[type=url]:disabled::placeholder,
757
- input[type=url].disabled::placeholder,
758
- input[type=url][aria-disabled=true]::placeholder,
759
- input[type=week]:disabled::placeholder,
760
- input[type=week].disabled::placeholder,
761
- input[type=week][aria-disabled=true]::placeholder {
762
- color: var(--text-disabled-color);
763
- }
764
- input:not([type]):hover,
765
- input[type=date]:hover,
766
- input[type=datetime]:hover,
767
- input[type=datetime-local]:hover,
768
- input[type=email]:hover,
769
- input[type=month]:hover,
770
- input[type=number]:hover,
771
- input[type=password]:hover,
772
- input[type=search]:hover,
773
- input[type=tel]:hover,
774
- input[type=text]:hover,
775
- input[type=time]:hover,
776
- input[type=url]:hover,
777
- input[type=week]:hover {
778
- background-color: var(--gds-ref-pallet-base100);
779
- }
780
- input[type=number] {
781
- -moz-appearance: textfield;
782
- }
783
- input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button {
784
- -webkit-appearance: none;
785
- margin: 0;
786
- }
787
- :host {
788
- display: block;
789
- }
790
- :host(:invalid) button + .form-info {
791
- position: relative;
792
- transition: all 200ms ease-in-out, outline-offset 0s, outline-width 0s;
793
- color: var(--intent-danger-background);
794
- opacity: 1;
795
- }
796
- :host(:invalid) button + .form-info::before {
797
- background: transparent;
798
- border-radius: 0 0 4px 4px;
799
- -webkit-clip-path: inset(4px 0 0 0);
800
- clip-path: inset(4px 0 0 0);
801
- content: "";
802
- display: block;
803
- height: 4px;
804
- position: absolute;
805
- transform: translate3d(0, -12px, 0);
806
- transition: 300ms ease-in-out;
807
- width: 100%;
808
- }
809
- :host(:invalid) button + .form-info::before {
810
- background: var(--intent-danger-background);
811
- -webkit-clip-path: inset(1px 0 0 0);
812
- clip-path: inset(1px 0 0 0);
813
- }
814
- ::slotted([slot=trigger]) {
815
- overflow: hidden;
816
- }
817
- slot[name=trigger] > span {
818
- display: block;
819
- overflow: hidden;
820
- text-overflow: ellipsis;
821
- text-wrap: nowrap;
822
- }
823
- .form-info {
824
- color: var(--text-primary-color);
825
- display: block;
826
- font-size: 0.875rem;
827
- line-height: 1.25rem;
828
- width: 100%;
829
- }
830
- input[type=text] {
831
- border-bottom-left-radius: 0;
832
- border-bottom-right-radius: 0;
833
- font-size: 1rem;
834
- line-height: 1;
835
- margin: -1px;
836
- min-height: auto;
837
- padding: 0.75rem;
838
- }
839
- input[type=text]:focus {
840
- outline-offset: -0.25rem;
841
- }
842
- button {
843
- background-color: transparent;
844
- border: 0;
845
- cursor: pointer;
846
- font-family: inherit;
847
- padding: 0;
848
- padding-left: 1rem;
849
- padding-right: 1rem;
850
- padding-bottom: 0.75rem;
851
- padding-top: 0.75rem;
852
- border-radius: var(--sg-border-radius);
853
- border: solid var(--sg-border-width) var(--sg-border-color);
854
- font-weight: 500;
855
- min-height: 2.75rem;
856
- align-items: center;
857
- display: inline-flex;
858
- justify-content: center;
859
- transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
860
- background: transparent;
861
- border-color: rgb(0, 122, 199);
862
- color: rgb(0, 122, 199);
863
- --color: rgb(0, 122, 199);
864
- background-color: transparent;
865
- border: 0;
866
- cursor: pointer;
867
- font-family: inherit;
868
- padding: 0;
869
- padding-left: 1rem;
870
- padding-right: 1rem;
871
- padding-bottom: 0.75rem;
872
- padding-top: 0.75rem;
873
- border-radius: var(--sg-border-radius);
874
- border: solid var(--sg-border-width) var(--sg-border-color);
875
- --border-color: var(--grey-800);
876
- --sg-border-color: var(--grey-800);
877
- background: var(--sg-form-control-bg);
878
- color: var(--text-primary-color);
879
- min-height: 2.75rem;
880
- display: flex;
881
- flex-wrap: nowrap;
882
- justify-content: space-between;
883
- align-items: center;
884
- max-width: 100%;
885
- font-size: inherit;
886
- font-weight: normal;
887
- line-height: 1.125;
888
- margin-bottom: 0.5rem;
889
- margin-top: 0.5rem;
890
- width: 100%;
891
- }
892
- button:focus:not(:focus-visible) {
893
- box-shadow: none;
894
- outline: 0;
895
- }
896
- button:focus, button:focus-visible {
897
- outline-color: var(--gds-sys-color-focus-outline);
898
- outline-style: solid;
899
- outline-width: 0.125rem;
900
- outline-offset: 0.125rem;
901
- }
902
- @media (max-width: 35.98em) {
903
- button {
904
- min-width: 100%;
905
- }
906
- }
907
- @media screen and (-ms-high-contrast: active) {
908
- button {
909
- border: 2px solid currentcolor;
910
- }
911
- }
912
- button.small {
913
- min-height: 2rem;
914
- padding: 0.4375rem 0.75rem;
915
- line-height: 1rem;
916
- }
917
- button.large {
918
- min-height: 4rem;
919
- padding: 1rem 1.5rem;
920
- font-size: 1.5rem;
921
- line-height: 2rem;
922
- }
923
- button:focus:not(:focus-visible) {
924
- box-shadow: none;
925
- outline: 0;
926
- }
927
- button:focus, button:focus-visible {
928
- outline-color: var(--gds-sys-color-focus-outline);
929
- outline-style: solid;
930
- outline-width: 0.125rem;
931
- outline-offset: 0.125rem;
932
- }
933
- button:not(:disabled, .disabled, [aria-disabled]):hover {
934
- background-color: #199be3;
935
- color: rgb(255, 255, 255);
936
- --background: #199be3;
937
- --color: rgb(255, 255, 255);
938
- border-color: #199be3;
939
- }
940
- button[aria-selected], button:active, button.active, button.active:hover, button:active:hover {
941
- background-color: rgb(0, 122, 199);
942
- color: rgb(255, 255, 255);
943
- --background: rgb(0, 122, 199);
944
- --color: rgb(255, 255, 255);
945
- border-color: rgb(0, 122, 199);
946
- }
947
- button:disabled, button.disabled, button[aria-disabled=true] {
948
- background: var(--sg-form-control-bg-disabled) !important;
949
- color: var(--text-disabled-color) !important;
950
- border-color: var(--border-disabled-color) !important;
951
- cursor: not-allowed;
952
- }
953
- button:disabled::-moz-placeholder, button.disabled::-moz-placeholder, button[aria-disabled=true]::-moz-placeholder {
954
- color: var(--text-disabled-color);
955
- }
956
- button:disabled::placeholder, button.disabled::placeholder, button[aria-disabled=true]::placeholder {
957
- color: var(--text-disabled-color);
958
- }
959
- button:focus, button:focus {
960
- outline-color: var(--gds-sys-color-focus-outline);
961
- outline-style: solid;
962
- outline-width: 0.125rem;
963
- outline-offset: 0.125rem;
964
- }
965
- @media (max-width: 35.98em) {
966
- button {
967
- min-width: 100%;
968
- }
969
- }
970
- button:not(:disabled, .disabled, [aria-disabled]):hover {
971
- --background: var(--grey-400);
972
- --color: var(--grey-1000);
973
- background-color: var(--grey-400);
974
- color: var(--grey-1000);
975
- border-color: var(--grey-1000);
976
- }
977
- button > span {
978
- white-space: nowrap;
979
- overflow: hidden;
980
- text-overflow: ellipsis;
981
- }
982
- button::after {
983
- margin-left: 0.5rem;
984
- margin-right: 0.5rem;
985
- border-bottom: solid 2px var(--text-primary-color);
986
- border-left: solid 2px var(--text-primary-color);
987
- content: "";
988
- display: block;
989
- height: 0.5rem;
990
- width: 0.5rem;
991
- position: relative;
992
- top: -0.15rem;
993
- transform: translate(75%, 0) rotate3d(0, 0, 1, -45deg) scale3d(1, 1, -1);
994
- transition: transform 300ms ease-in;
995
- flex-shrink: 0;
996
- }
997
- button[aria-expanded=true]::after {
998
- transform: translate(75%, 6px) rotate3d(0, 0, 1, -45deg) scale3d(-1, -1, 1);
999
- }
1000
- button:hover::after {
1001
- border-color: currentColor;
1002
- }
1003
- button.small {
1004
- font-size: 0.875rem;
1005
- }
1006
- button:hover {
1007
- background: var(--grey-400);
1008
- }
1009
- label {
1010
- display: block;
1011
- font-weight: 500;
1012
- line-height: 1.25rem;
1013
- margin-bottom: 0.5rem;
1014
- width: 100%;
1015
- }
1016
- }`;
1017
-
1018
- // libs/core/src/components/dropdown/dropdown.trans.styles.ts
1019
- function register3() {
1020
- TransitionalStyles.instance.register("gds-dropdown", dropdown_trans_styles_default.toString());
1021
- }
1022
-
1023
- // libs/core/src/components/grouped-list/grouped-list.trans.styles.scss
1024
- var grouped_list_trans_styles_default = `@layer base, reset, transitional-styles;
1025
- @layer transitional-styles {
1026
- @layer _base, _overrides;
1027
- :host {
1028
- display: block;
1029
- list-style: none;
1030
- }
1031
- @layer _base {
1032
- .gds-list-heading {
1033
- background-color: var(--gds-ref-pallet-base200, #e9e9e9);
1034
- font-size: 0.875rem;
1035
- font-weight: 500;
1036
- padding: 0.5rem 1rem;
1037
- }
1038
- ::slotted([gds-element=gds-list-item]) {
1039
- all: revert;
1040
- border-bottom: 1px solid var(--gds-ref-pallet-base200, #e9e9e9);
1041
- display: flex;
1042
- gap: 0.25rem;
1043
- justify-content: space-between;
1044
- padding: 1rem;
1045
- }
1046
- }
1047
- }`;
1048
-
1049
- // libs/core/src/components/grouped-list/grouped-list.trans.styles.ts
1050
- function register4() {
1051
- TransitionalStyles.instance.register("gds-grouped-list", grouped_list_trans_styles_default.toString());
1052
- }
1053
-
1054
- // libs/core/src/components/segmented-control/segment/segment.trans.styles.css
1055
- var segment_trans_styles_default = `@layer base, reset, transitional-styles;
1056
-
1057
- @layer transitional-styles {
1058
- @layer _base;
1059
-
1060
- @layer _base {
1061
- :host {
1062
- border-right: 1px solid #333;
1063
- box-sizing: border-box;
1064
- display: flex;
1065
- transition: 0.2s;
1066
- z-index: 1;
1067
- }
1068
-
1069
- :host(:last-child) {
1070
- border-right: 0;
1071
- }
1072
-
1073
- button {
1074
- -webkit-appearance: none;
1075
- -moz-appearance: none;
1076
- appearance: none;
1077
- background: transparent;
1078
- border-width: 0;
1079
- color: var(--gds-sys-color-content-content);
1080
- cursor: pointer;
1081
- flex-grow: 1;
1082
- flex-shrink: 0;
1083
- font-family: inherit;
1084
- font-size: inherit;
1085
- font-weight: 500;
1086
- min-width: 6.625rem;
1087
- overflow: hidden;
1088
- padding: 0 1rem;
1089
- text-align: center;
1090
- text-overflow: ellipsis;
1091
- white-space: nowrap;
1092
- width: 100%;
1093
- }
1094
-
1095
- @media (pointer: fine) {
1096
- button:hover {
1097
- background-color: var(--grey-400);
1098
- }
1099
- }
1100
-
1101
- button[aria-current='true'] {
1102
- background-color: #333;
1103
- color: #fff;
1104
- }
1105
-
1106
- button:focus-visible {
1107
- outline: 2px solid #000;
1108
- outline-offset: -2px;
1109
- }
1110
- }
1111
- }
1112
- `;
1113
-
1114
- // libs/core/src/components/segmented-control/segment/segment.trans.styles.ts
1115
- function register5() {
1116
- TransitionalStyles.instance.register("gds-segmented", segment_trans_styles_default.toString());
1117
- }
1118
-
1119
- // libs/core/src/components/segmented-control/segmented-control.trans.styles.css
1120
- var segmented_control_trans_styles_default = `@layer base, reset, transitional-styles;
1121
-
1122
- @layer transitional-styles {
1123
- @layer _base, _overrides;
1124
-
1125
- @layer _base {
1126
- :host {
1127
- background-color: #fff;
1128
- border: 1px solid #333;
1129
- border-radius: 4px;
1130
- box-sizing: border-box;
1131
- contain: layout;
1132
- display: inline-flex;
1133
- height: 3rem;
1134
- max-width: 100%;
1135
- overflow: hidden;
1136
- }
1137
-
1138
- :host([size='small']) {
1139
- height: 2.5rem;
1140
- }
1141
-
1142
- #track {
1143
- box-sizing: border-box;
1144
- display: flex;
1145
- flex-grow: 0;
1146
- flex-shrink: 1;
1147
- overflow: hidden;
1148
- position: relative;
1149
- width: 100%;
1150
- }
1151
-
1152
- #segments {
1153
- box-sizing: border-box;
1154
- display: inline-flex;
1155
- position: relative;
1156
- transition: 0.2s;
1157
- z-index: 1;
1158
- }
1159
-
1160
- #segments > * {
1161
- flex: 1 1 auto;
1162
- }
1163
-
1164
- #btn-prev,
1165
- #btn-next {
1166
- align-items: center;
1167
- -webkit-appearance: none;
1168
- -moz-appearance: none;
1169
- appearance: none;
1170
- aspect-ratio: 1;
1171
- background-color: #fff;
1172
- border-width: 0;
1173
- color: #333;
1174
- cursor: pointer;
1175
- display: flex;
1176
- font-size: 1rem;
1177
- height: 100%;
1178
- justify-content: center;
1179
- width: 2.5rem;
1180
-
1181
- @media (pointer: fine) {
1182
- &:hover {
1183
- background-color: var(--grey-400);
1184
- }
1185
- }
1186
- }
1187
-
1188
- #btn-prev {
1189
- border-right: 1px solid #333;
1190
- }
1191
-
1192
- :host([size='small']) #btn-prev,
1193
- :host([size='small']) #btn-next {
1194
- width: 2rem;
1195
- }
1196
-
1197
- ::slotted(*) {
1198
- flex-grow: 1;
1199
- flex-shrink: 0;
1200
- z-index: 1;
1201
- }
1202
-
1203
- #indicator {
1204
- display: none;
1205
- }
1206
- }
1207
-
1208
- /* @layer _overrides {
1209
- } */
1210
- }
1211
- `;
1212
-
1213
- // libs/core/src/components/segmented-control/segmented-control.trans.styles.ts
1214
- function register6() {
1215
- TransitionalStyles.instance.register(
1216
- "gds-segmented-control",
1217
- segmented_control_trans_styles_default.toString()
1218
- );
1219
- }
1220
-
1221
- // libs/core/src/components/theme/chlorophyll-tokens.scss
1222
- var chlorophyll_tokens_default = `/**
1223
- * Calculate the luminance for a color.
1224
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
1225
- */
1226
- /**
1227
- * Calculate the contrast ratio between two colors.
1228
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
1229
- */
1230
- /* stylelint-disable max-nesting-depth */
1231
- /* stylelint-enable max-nesting-depth */
1232
- /* stylelint-disable */
1233
- /* stylelint-enable */
1234
- /* stylelint-disable */
1235
- /* Mixin for adding themes,
1236
- Themes such as dark-mode, high-contrast mode etc.
1237
- Values for light mode are used by default.
1238
- */
1239
- /* mixin for generating css variables from map with optional prefix */
1240
- :host([color-scheme=light]) {
1241
- --gds-sys-shape-corner-none: 0;
1242
- --gds-sys-shape-corner-small: 0.125rem;
1243
- --gds-sys-shape-corner-medium: 0.25rem;
1244
- --gds-sys-shape-corner-round: 50%;
1245
- --gds-ref-color-white: #ffffff;
1246
- --gds-ref-color-black: #000000;
1247
- --gds-ref-pallet-base000: hsl(0 0% 100%);
1248
- --gds-ref-pallet-base100: hsl(0, 0%, 97%);
1249
- --gds-ref-pallet-base200: hsl(0, 0%, 91%);
1250
- --gds-ref-pallet-base300: hsl(0, 0%, 87%);
1251
- --gds-ref-pallet-base400: hsl(0, 0%, 81%);
1252
- --gds-ref-pallet-base500: hsl(0, 0%, 68%);
1253
- --gds-ref-pallet-base600: hsl(0, 0%, 53%);
1254
- --gds-ref-pallet-base700: hsl(0, 0%, 29%);
1255
- --gds-ref-pallet-base800: hsl(0, 0%, 20%);
1256
- --gds-ref-pallet-base900: hsl(0, 0%, 10%);
1257
- --gds-ref-pallet-base1000: hsl(0 0% 0%);
1258
- --gds-sys-color-blue: #41b0ee;
1259
- --gds-sys-color-blue-dark-1: #0092e1;
1260
- --gds-sys-color-blue-dark-2: #007ac7;
1261
- --gds-sys-color-surface: var(--gds-ref-pallet-base000);
1262
- --gds-sys-color-base: var(--gds-ref-pallet-base800);
1263
- --gds-sys-color-font: var(--gds-ref-pallet-base800);
1264
- --gds-sys-color-base-container: var(--gds-ref-pallet-base500);
1265
- --gds-sys-color-focus-outline: var(--gds-ref-pallet-base1000);
1266
- /******************************************/
1267
- /*********** Component Tokens *************/
1268
- /******************************************/
1269
- --gds-comp-checkbox-container-height: 1rem;
1270
- --gds-comp-checkbox-container-width: 1rem;
1271
- --gds-comp-checkbox-container-color: var(--gds-sys-color-surface);
1272
- --gds-comp-checkbox-container-color-disabled: var(--gds-ref-pallet-base200);
1273
- --gds-comp-checkbox-border-color: var(--gds-sys-color-base);
1274
- --gds-comp-checkbox-border-radius: var(--gds-sys-shape-corner-small);
1275
- --gds-comp-checkbox-hover-border-color: var(--gds-ref-pallet-base600);
1276
- --gds-comp-checkbox-container-color-selected: var(--gds-sys-color-base);
1277
- --gds-comp-checkbox-border-color-selected: var(--gds-sys-color-surface);
1278
- --gds-comp-checkbox-border-color-focus: var(--gds-sys-color-blue-dark-2);
1279
- /* @media (prefers-color-scheme: dark) {
1280
- --gds-comp-checkbox-container-color: var(--gds-sys-color-base-container);
1281
- --gds-comp-checkbox-border-color: transparent;
1282
- --gds-comp-checkbox-hover-border-color: var(--gds-sys-color-blue);
1283
- --gds-comp-checkbox-container-color-selected: var(--gds-sys-color-blue-dark-2);
1284
- --gds-comp-checkbox-border-color-selected: var(--gds-ref-pallet-base000);
1285
- }
1286
-
1287
- .light {
1288
- --gds-comp-checkbox-container-color: var(--gds-sys-color-surface);
1289
- --gds-comp-checkbox-border-color: var(--gds-sys-color-base);
1290
- --gds-comp-checkbox-border-radius: var(--gds-sys-shape-corner-small);
1291
- --gds-comp-checkbox-hover-border-color: var(--gds-ref-pallet-base600);
1292
- --gds-comp-checkbox-container-color-selected: var(--gds-sys-color-base);
1293
- --gds-comp-checkbox-border-color-selected: var(--gds-sys-color-surface);
1294
- }*/
1295
- --heading-primary-color: rgb(0, 0, 0);
1296
- --text-primary-color: rgb(51, 51, 51);
1297
- --text-secondary-color: rgb(134, 134, 134);
1298
- --text-disabled-color: var(--gds-ref-pallet-base600);
1299
- --text-primary-disabled-color: var(--gds-ref-pallet-base600);
1300
- --border-color: rgba(0, 0, 0, 0.17);
1301
- --border-secondary-color: rgba(0, 0, 0, 0.1);
1302
- --border-disabled-color: var(--gds-ref-pallet-base500);
1303
- --border-primary-disabled-color: var(--gds-ref-pallet-base500);
1304
- --border-color-invalid: rgb(159, 0, 10);
1305
- --border-color-valid: rgb(55, 157, 0);
1306
- --checkbox-checkmark-disabled-color: rgb(255, 255, 255);
1307
- --form-control-primary-bg-disabled: var(--gds-ref-pallet-base200);
1308
- --link-color-dark: rgb(51, 51, 51);
1309
- --link-color-dark-visited: rgb(73, 73, 73);
1310
- /* try and adjust colors to get desired color combination,
1311
- in this case adjust background to go with white foreground */
1312
- --intent-primary-background: rgb(0, 122, 199);
1313
- --intent-primary-color: #fff;
1314
- --intent-primary-fadable-color: 255, 255, 255;
1315
- /* try and adjust colors to get desired color combination,
1316
- in this case adjust background to go with white foreground */
1317
- --intent-secondary-background: rgb(222, 222, 222);
1318
- --intent-secondary-color: black;
1319
- --intent-secondary-fadable-color: 0, 0, 0;
1320
- /* try and adjust colors to get desired color combination,
1321
- in this case adjust background to go with white foreground */
1322
- --intent-info-background: rgb(0, 122, 199);
1323
- --intent-info-color: #fff;
1324
- --intent-info-fadable-color: 255, 255, 255;
1325
- /* try and adjust colors to get desired color combination,
1326
- in this case adjust background to go with white foreground */
1327
- --intent-success-background: #308602;
1328
- --intent-success-color: #fff;
1329
- --intent-success-fadable-color: 255, 255, 255;
1330
- /* try and adjust colors to get desired color combination,
1331
- in this case adjust background to go with white foreground */
1332
- --intent-warning-background: rgb(255, 197, 0);
1333
- --intent-warning-color: black;
1334
- --intent-warning-fadable-color: 0, 0, 0;
1335
- /* try and adjust colors to get desired color combination,
1336
- in this case adjust background to go with white foreground */
1337
- --intent-danger-background: rgb(159, 0, 10);
1338
- --intent-danger-color: #fff;
1339
- --intent-danger-fadable-color: 255, 255, 255;
1340
- /* try and adjust colors to get desired color combination,
1341
- in this case adjust background to go with white foreground */
1342
- --intent-light-background: rgb(238, 238, 238);
1343
- --intent-light-color: black;
1344
- --intent-light-fadable-color: 0, 0, 0;
1345
- /* try and adjust colors to get desired color combination,
1346
- in this case adjust background to go with white foreground */
1347
- --intent-dark-background: rgb(51, 51, 51);
1348
- --intent-dark-color: #fff;
1349
- --intent-dark-fadable-color: 255, 255, 255;
1350
- --grey-1100: rgb(26, 26, 26);
1351
- --grey-1000: rgb(51, 51, 51);
1352
- --grey-900: rgb(73, 73, 73);
1353
- --grey-800: rgb(134, 134, 134);
1354
- --grey-700: rgb(173, 173, 173);
1355
- --grey-600: rgb(206, 206, 206);
1356
- --grey-500: rgb(222, 222, 222);
1357
- --grey-400: rgb(233, 233, 233);
1358
- --grey-300: rgb(238, 238, 238);
1359
- --grey-200: rgb(248, 248, 248);
1360
- --grey-100: rgb(255, 255, 255);
1361
- color: var(--text-primary-color);
1362
- --gds-sys-outline-color: #333333;
1363
- --gds-comp-chips-fr-color: #333333;
1364
- --gds-comp-chips-bg-color: #ffffff;
1365
- --gds-comp-chips-br-color: #333333;
1366
- --gds-comp-chips-fr-color-hover: #ffffff;
1367
- --gds-comp-chips-bg-color-hover: #494949;
1368
- --gds-comp-chips-br-color-hover: #494949;
1369
- --gds-comp-chips-bg-color-active: #333333;
1370
- --gds-comp-chips-bg-color-action: #333333;
1371
- /* generate css variables */
1372
- --sg-z-index-datepicker: 995;
1373
- --sg-z-index-dropdown-backdrop: 990;
1374
- --sg-z-index-dropdown: 2000;
1375
- --sg-z-index-sticky: 1020;
1376
- --sg-z-index-fixed: 1030;
1377
- --sg-z-index-modal-backdrop: 1040;
1378
- --sg-z-index-modal: 1050;
1379
- --sg-z-index-popover: 1060;
1380
- --sg-z-index-tooltip: 1070;
1381
- --sg-text-primary: #333333;
1382
- --sg-text-secondary: #333333;
1383
- --sg-form-control-bg: #fff;
1384
- --sg-form-control-bg-disabled: #eeeeee;
1385
- --sg-border-color: var(--gds-ref-pallet-base600);
1386
- --sg-border-width: 1px;
1387
- --sg-border-width-50: 0.5px;
1388
- --sg-border-radius: 0.25rem;
1389
- --sg-hsl-contrast: 0deg, 0%, 0%;
1390
- --sg-hsl-light: 0deg, 0%, 97.2549019608%;
1391
- --sg-hsl-light-contrast: 0deg, 0%, 0%;
1392
- --sg-hsl-dark: 0deg, 0%, 10.1960784314%;
1393
- --sg-hsl-dark-contrast: 0deg, 0%, 100%;
1394
- --sg-hsl-black: 0deg, 0%, 0%;
1395
- --sg-hsl-white: 0deg, 0%, 100%;
1396
- --sg-hsl-blue-0: 201.5028901734deg, 83.5748792271%, 59.4117647059%;
1397
- --sg-hsl-blue-1: 201.0666666667deg, 100%, 44.1176470588%;
1398
- --sg-hsl-blue-2: 203.216080402deg, 100%, 39.0196078431%;
1399
- --sg-hsl-green-0: 96.1325966851deg, 79.03930131%, 44.9019607843%;
1400
- --sg-hsl-green-1: 97deg, 100%, 35.2941176471%;
1401
- --sg-hsl-green-2: 98.8235294118deg, 100%, 26.6666666667%;
1402
- --sg-hsl-yellow-0: 46.3529411765deg, 100%, 50%;
1403
- --sg-hsl-yellow-1: 42.3529411765deg, 100%, 50%;
1404
- --sg-hsl-yellow-2: 38.7096774194deg, 100%, 48.6274509804%;
1405
- --sg-hsl-red-0: 3.6180904523deg, 86.8995633188%, 55.0980392157%;
1406
- --sg-hsl-red-1: 0deg, 78.5123966942%, 47.4509803922%;
1407
- --sg-hsl-red-2: 356.1497326203deg, 100%, 36.6666666667%;
1408
- --sg-hsl-purple-0: 261.7741935484deg, 51.6666666667%, 47.0588235294%;
1409
- --sg-hsl-purple-1: 259.2660550459deg, 55.3299492386%, 38.6274509804%;
1410
- --sg-hsl-purple-2: 255.9183673469deg, 56.976744186%, 33.7254901961%;
1411
- --sg-grey-100: #f8f8f8;
1412
- --sg-grey-200: #e9e9e9;
1413
- --sg-grey-300: #dedede;
1414
- --sg-grey-400: #cecece;
1415
- --sg-grey-500: #adadad;
1416
- --sg-grey-600: #868686;
1417
- --sg-grey-700: #494949;
1418
- --sg-grey-800: #333333;
1419
- --sg-grey-900: #1a1a1a;
1420
- --sg-intent-neutral-hsl: 0deg, 0%, 91.3725490196%;
1421
- --sg-intent-neutral-hsl-contrast: 0deg, 0%, 0%;
1422
- --sg-intent-info-hsl: 203.216080402deg, 100%, 39.0196078431%;
1423
- --sg-intent-info-hsl-contrast: 0deg, 0%, 100%;
1424
- --sg-intent-success-hsl: 98.8235294118deg, 100%, 26.6666666667%;
1425
- --sg-intent-success-hsl-contrast: 0deg, 0%, 100%;
1426
- --sg-intent-warning-hsl: 46.3529411765deg, 100%, 50%;
1427
- --sg-intent-warning-hsl-contrast: 0deg, 0%, 0%;
1428
- --sg-intent-critical-hsl: 0deg, 78.5123966942%, 47.4509803922%;
1429
- --sg-intent-critical-hsl-contrast: 0deg, 0%, 100%;
1430
- --sg-hsl-disabled-background: 0deg, 0%, 97.2549019608%;
1431
- --sg-hsl-disabled-color: 0deg, 0%, 67.8431372549%;
1432
- --sg-bg-level-0: #eeeeee;
1433
- --sg-bg-level-1: #fff;
1434
- --sg-bg-level-2: #fff;
1435
- --sg-bg-level-3: #fff;
1436
- --sg-table-header-background: #1a1a1a;
1437
- --sg-table-header-color: #fff;
1438
- --sg-table-cell-padding-x: 0.5rem;
1439
- --sg-table-cell-padding-y: 0.6875rem;
1440
- --sg-table-border-width: 1px;
1441
- --sg-table-border-color: var(--gds-ref-pallet-base600);
1442
- --sg-table-sort-icon-color: var(--gds-ref-pallet-base600);
1443
- --sg-table-sort-icon-color-active: #fff;
1444
- --sg-skeleton-loader-highlight-color: #dedede;
1445
- --sg-skeleton-loader-background-color: #f8f8f8;
1446
- --sg-modal-background: #fff;
1447
- --sg-modal-box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.15);
1448
- --sg-modal-backdrop-background: rgba(0, 0, 0, 0.5);
1449
- --sg-popover-box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.15);
1450
- --sg-popover-background: #fff;
1451
- --sg-popover-border-color: #007ac7;
1452
- --sg-card-box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.15);
1453
- --sg-card-background: #fff;
1454
- --sg-card-heading-color: #333333;
1455
- --sg-card-color: #333333;
1456
- --sg-card-border: solid 1px #fff;
1457
- --sg-card-border-radius: 0;
1458
- }
1459
-
1460
- /* force dark mode */
1461
- :host([color-scheme=dark]) {
1462
- --heading-primary-color: rgb(255, 255, 255);
1463
- --text-primary-color: rgba(255, 255, 255, 0.9);
1464
- --text-secondary-color: rgba(255, 255, 255, 0.6);
1465
- --text-disabled-color: rgba(255, 255, 255, 0.07);
1466
- --text-primary-disabled-color: rgba(255, 255, 255, 0.07);
1467
- --border-color: rgb(51, 51, 51);
1468
- --border-secondary-color: rgb(51, 51, 51);
1469
- --border-disabled-color: rgb(44, 44, 44);
1470
- --border-primary-disabled-color: rgb(44, 44, 44);
1471
- --border-color-invalid: rgb(255, 89, 79);
1472
- --border-color-valid: rgb(48, 136, 0);
1473
- --checkbox-checkmark-disabled-color: rgb(51, 51, 51);
1474
- --link-color-dark: rgb(179, 179, 179);
1475
- --link-color-dark-visited: rgb(171, 171, 171);
1476
- --form-control-primary-bg-disabled: rgba(255, 255, 255, 0.02);
1477
- /* try and adjust colors to get desired color combination,
1478
- in this case adjust background to go with white foreground */
1479
- --intent-primary-background: rgb(44, 156, 217);
1480
- --intent-primary-color: #000;
1481
- --intent-primary-fadable-color: 0, 0, 0;
1482
- /* try and adjust colors to get desired color combination,
1483
- in this case adjust background to go with white foreground */
1484
- --intent-secondary-background: rgb(51, 51, 51);
1485
- --intent-secondary-color: #fff;
1486
- --intent-secondary-fadable-color: 255, 255, 255;
1487
- /* try and adjust colors to get desired color combination,
1488
- in this case adjust background to go with white foreground */
1489
- --intent-info-background: rgb(44, 156, 217);
1490
- --intent-info-color: #000;
1491
- --intent-info-fadable-color: 0, 0, 0;
1492
- /* try and adjust colors to get desired color combination,
1493
- in this case adjust background to go with white foreground */
1494
- --intent-success-background: rgb(48, 136, 0);
1495
- --intent-success-color: #000;
1496
- --intent-success-fadable-color: 0, 0, 0;
1497
- /* try and adjust colors to get desired color combination,
1498
- in this case adjust background to go with white foreground */
1499
- --intent-warning-background: rgb(255, 225, 130);
1500
- --intent-warning-color: #000;
1501
- --intent-warning-fadable-color: 0, 0, 0;
1502
- /* try and adjust colors to get desired color combination,
1503
- in this case adjust background to go with white foreground */
1504
- --intent-danger-background: rgb(255, 89, 79);
1505
- --intent-danger-color: #000;
1506
- --intent-danger-fadable-color: 0, 0, 0;
1507
- /* try and adjust colors to get desired color combination,
1508
- in this case adjust background to go with white foreground */
1509
- --intent-light-background: rgb(39, 39, 39);
1510
- --intent-light-color: #fff;
1511
- --intent-light-fadable-color: 255, 255, 255;
1512
- /* try and adjust colors to get desired color combination,
1513
- in this case adjust background to go with white foreground */
1514
- --intent-dark-background: rgb(171, 171, 171);
1515
- --intent-dark-color: #000;
1516
- --intent-dark-fadable-color: 0, 0, 0;
1517
- --grey-100: rgb(18, 18, 18);
1518
- --grey-200: rgb(34, 34, 34);
1519
- --grey-300: rgb(39, 39, 39);
1520
- --grey-400: rgb(44, 44, 44);
1521
- --grey-500: rgb(51, 51, 51);
1522
- --grey-600: rgb(60, 60, 60);
1523
- --grey-700: rgb(67, 67, 67);
1524
- --grey-800: rgb(73, 73, 73);
1525
- --grey-900: rgb(117, 117, 117);
1526
- --grey-1000: rgb(171, 171, 171);
1527
- --grey-1100: rgb(179, 179, 179);
1528
- color: var(--text-primary-color);
1529
- --gds-sys-outline-color: hsla(0, 0%, 87%, 0.2);
1530
- --gds-comp-chips-fr-color: #dedede;
1531
- --gds-comp-chips-bg-color: #2c2c2c;
1532
- --gds-comp-chips-br-color: #2c2c2c;
1533
- --gds-comp-chips-fr-color-hover: #dedede;
1534
- --gds-comp-chips-bg-color-hover: #2c2c2c;
1535
- --gds-comp-chips-br-color-hover: hsla(0, 0%, 87%, 0.2);
1536
- --gds-comp-chips-bg-color-active: #222222;
1537
- --gds-comp-chips-bg-color-action: #2c2c2c;
1538
- --gds-sys-color-focus-outline: white;
1539
- --gds-sys-color-font: var(--gds-ref-pallet-base300);
1540
- /* generate css variables */
1541
- --sg-z-index-datepicker: 995;
1542
- --sg-z-index-dropdown-backdrop: 990;
1543
- --sg-z-index-dropdown: 2000;
1544
- --sg-z-index-sticky: 1020;
1545
- --sg-z-index-fixed: 1030;
1546
- --sg-z-index-modal-backdrop: 1040;
1547
- --sg-z-index-modal: 1050;
1548
- --sg-z-index-popover: 1060;
1549
- --sg-z-index-tooltip: 1070;
1550
- --sg-text-primary: #dedede;
1551
- --sg-text-secondary: #ababab;
1552
- --sg-form-control-bg: rgba(0, 0, 0, 0.1);
1553
- --sg-form-control-bg-disabled: rgba(255, 255, 255, 0.02);
1554
- --sg-border-color: #ababab;
1555
- --sg-border-width: 1px;
1556
- --sg-border-width-50: 0.5px;
1557
- --sg-border-radius: 0.25rem;
1558
- --sg-hsl-contrast: 0deg, 0%, 100%;
1559
- --sg-hsl-light: 0deg, 0%, 87.0588235294%;
1560
- --sg-hsl-light-contrast: 0deg, 0%, 0%;
1561
- --sg-hsl-dark: 0deg, 0%, 7.0588235294%;
1562
- --sg-hsl-dark-contrast: 0deg, 0%, 100%;
1563
- --sg-hsl-black: 0deg, 0%, 0%;
1564
- --sg-hsl-white: 0deg, 0%, 100%;
1565
- --sg-hsl-blue-0: 201.5028901734deg, 83.5748792271%, 59.4117647059%;
1566
- --sg-hsl-blue-1: 201.0666666667deg, 100%, 44.1176470588%;
1567
- --sg-hsl-blue-2: 203.216080402deg, 100%, 39.0196078431%;
1568
- --sg-hsl-green-0: 96.1325966851deg, 79.03930131%, 44.9019607843%;
1569
- --sg-hsl-green-1: 97deg, 100%, 35.2941176471%;
1570
- --sg-hsl-green-2: 98.8235294118deg, 100%, 26.6666666667%;
1571
- --sg-hsl-yellow-0: 46.3529411765deg, 100%, 50%;
1572
- --sg-hsl-yellow-1: 42.3529411765deg, 100%, 50%;
1573
- --sg-hsl-yellow-2: 38.7096774194deg, 100%, 48.6274509804%;
1574
- --sg-hsl-red-0: 3.6180904523deg, 86.8995633188%, 55.0980392157%;
1575
- --sg-hsl-red-1: 0deg, 78.5123966942%, 47.4509803922%;
1576
- --sg-hsl-red-2: 356.1497326203deg, 100%, 36.6666666667%;
1577
- --sg-hsl-purple-0: 261.7741935484deg, 51.6666666667%, 47.0588235294%;
1578
- --sg-hsl-purple-1: 259.2660550459deg, 55.3299492386%, 38.6274509804%;
1579
- --sg-hsl-purple-2: 255.9183673469deg, 56.976744186%, 33.7254901961%;
1580
- --sg-grey-100: #dedede;
1581
- --sg-grey-200: #ababab;
1582
- --sg-grey-300: #757575;
1583
- --sg-grey-400: #494949;
1584
- --sg-grey-500: #333333;
1585
- --sg-grey-600: #2c2c2c;
1586
- --sg-grey-700: #272727;
1587
- --sg-grey-800: #222222;
1588
- --sg-grey-900: #121212;
1589
- --sg-intent-neutral-hsl: 0deg, 0%, 20%;
1590
- --sg-intent-neutral-hsl-contrast: 0deg, 0%, 100%;
1591
- --sg-intent-info-hsl: 203.216080402deg, 100%, 39.0196078431%;
1592
- --sg-intent-info-hsl-contrast: 0deg, 0%, 100%;
1593
- --sg-intent-success-hsl: 98.8235294118deg, 100%, 26.6666666667%;
1594
- --sg-intent-success-hsl-contrast: 0deg, 0%, 100%;
1595
- --sg-intent-warning-hsl: 46.3529411765deg, 100%, 50%;
1596
- --sg-intent-warning-hsl-contrast: 0deg, 0%, 0%;
1597
- --sg-intent-critical-hsl: 0deg, 78.5123966942%, 47.4509803922%;
1598
- --sg-intent-critical-hsl-contrast: 0deg, 0%, 100%;
1599
- --sg-hsl-disabled-background: 0deg, 0%, 20%;
1600
- --sg-hsl-disabled-color: 0deg, 0%, 45.8823529412%;
1601
- --sg-bg-level-0: #121212;
1602
- --sg-bg-level-1: #222222;
1603
- --sg-bg-level-2: #272727;
1604
- --sg-bg-level-3: #2c2c2c;
1605
- --sg-table-header-background: #121212;
1606
- --sg-table-header-color: #fff;
1607
- --sg-table-cell-padding-x: 0.5rem;
1608
- --sg-table-cell-padding-y: 0.6875rem;
1609
- --sg-table-border-width: 1px;
1610
- --sg-table-border-color: #ababab;
1611
- --sg-table-sort-icon-color: #ababab;
1612
- --sg-table-sort-icon-color-active: #fff;
1613
- --sg-skeleton-loader-highlight-color: #494949;
1614
- --sg-skeleton-loader-background-color: #2c2c2c;
1615
- --sg-modal-background: #272727;
1616
- --sg-modal-box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.15);
1617
- --sg-modal-backdrop-background: rgba(0, 0, 0, 0.5);
1618
- --sg-popover-box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.15);
1619
- --sg-popover-background: #222222;
1620
- --sg-popover-border-color: #007ac7;
1621
- --sg-card-box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.15);
1622
- --sg-card-background: #222222;
1623
- --sg-card-heading-color: #dedede;
1624
- --sg-card-color: #dedede;
1625
- --sg-card-border: solid 1px #222222;
1626
- --sg-card-border-radius: 0;
1627
- }
1628
-
1629
- /* use preferred color scheme */
1630
- @media (prefers-color-scheme: dark) {
1631
- :host,
1632
- :host([color-scheme=auto]) {
1633
- --heading-primary-color: rgb(255, 255, 255);
1634
- --text-primary-color: rgba(255, 255, 255, 0.9);
1635
- --text-secondary-color: rgba(255, 255, 255, 0.6);
1636
- --text-disabled-color: rgba(255, 255, 255, 0.07);
1637
- --text-primary-disabled-color: rgba(255, 255, 255, 0.07);
1638
- --border-color: rgb(51, 51, 51);
1639
- --border-secondary-color: rgb(51, 51, 51);
1640
- --border-disabled-color: rgb(44, 44, 44);
1641
- --border-primary-disabled-color: rgb(44, 44, 44);
1642
- --border-color-invalid: rgb(255, 89, 79);
1643
- --border-color-valid: rgb(48, 136, 0);
1644
- --checkbox-checkmark-disabled-color: rgb(51, 51, 51);
1645
- --link-color-dark: rgb(179, 179, 179);
1646
- --link-color-dark-visited: rgb(171, 171, 171);
1647
- --form-control-primary-bg-disabled: rgba(255, 255, 255, 0.02);
1648
- /* try and adjust colors to get desired color combination,
1649
- in this case adjust background to go with white foreground */
1650
- --intent-primary-background: rgb(44, 156, 217);
1651
- --intent-primary-color: #000;
1652
- --intent-primary-fadable-color: 0, 0, 0;
1653
- /* try and adjust colors to get desired color combination,
1654
- in this case adjust background to go with white foreground */
1655
- --intent-secondary-background: rgb(51, 51, 51);
1656
- --intent-secondary-color: #fff;
1657
- --intent-secondary-fadable-color: 255, 255, 255;
1658
- /* try and adjust colors to get desired color combination,
1659
- in this case adjust background to go with white foreground */
1660
- --intent-info-background: rgb(44, 156, 217);
1661
- --intent-info-color: #000;
1662
- --intent-info-fadable-color: 0, 0, 0;
1663
- /* try and adjust colors to get desired color combination,
1664
- in this case adjust background to go with white foreground */
1665
- --intent-success-background: rgb(48, 136, 0);
1666
- --intent-success-color: #000;
1667
- --intent-success-fadable-color: 0, 0, 0;
1668
- /* try and adjust colors to get desired color combination,
1669
- in this case adjust background to go with white foreground */
1670
- --intent-warning-background: rgb(255, 225, 130);
1671
- --intent-warning-color: #000;
1672
- --intent-warning-fadable-color: 0, 0, 0;
1673
- /* try and adjust colors to get desired color combination,
1674
- in this case adjust background to go with white foreground */
1675
- --intent-danger-background: rgb(255, 89, 79);
1676
- --intent-danger-color: #000;
1677
- --intent-danger-fadable-color: 0, 0, 0;
1678
- /* try and adjust colors to get desired color combination,
1679
- in this case adjust background to go with white foreground */
1680
- --intent-light-background: rgb(39, 39, 39);
1681
- --intent-light-color: #fff;
1682
- --intent-light-fadable-color: 255, 255, 255;
1683
- /* try and adjust colors to get desired color combination,
1684
- in this case adjust background to go with white foreground */
1685
- --intent-dark-background: rgb(171, 171, 171);
1686
- --intent-dark-color: #000;
1687
- --intent-dark-fadable-color: 0, 0, 0;
1688
- --grey-100: rgb(18, 18, 18);
1689
- --grey-200: rgb(34, 34, 34);
1690
- --grey-300: rgb(39, 39, 39);
1691
- --grey-400: rgb(44, 44, 44);
1692
- --grey-500: rgb(51, 51, 51);
1693
- --grey-600: rgb(60, 60, 60);
1694
- --grey-700: rgb(67, 67, 67);
1695
- --grey-800: rgb(73, 73, 73);
1696
- --grey-900: rgb(117, 117, 117);
1697
- --grey-1000: rgb(171, 171, 171);
1698
- --grey-1100: rgb(179, 179, 179);
1699
- color: var(--text-primary-color);
1700
- --gds-sys-outline-color: hsla(0, 0%, 87%, 0.2);
1701
- --gds-comp-chips-fr-color: #dedede;
1702
- --gds-comp-chips-bg-color: #2c2c2c;
1703
- --gds-comp-chips-br-color: #2c2c2c;
1704
- --gds-comp-chips-fr-color-hover: #dedede;
1705
- --gds-comp-chips-bg-color-hover: #2c2c2c;
1706
- --gds-comp-chips-br-color-hover: hsla(0, 0%, 87%, 0.2);
1707
- --gds-comp-chips-bg-color-active: #222222;
1708
- --gds-comp-chips-bg-color-action: #2c2c2c;
1709
- --gds-sys-color-focus-outline: white;
1710
- --gds-sys-color-font: var(--gds-ref-pallet-base300);
1711
- /* generate css variables */
1712
- --sg-z-index-datepicker: 995;
1713
- --sg-z-index-dropdown-backdrop: 990;
1714
- --sg-z-index-dropdown: 2000;
1715
- --sg-z-index-sticky: 1020;
1716
- --sg-z-index-fixed: 1030;
1717
- --sg-z-index-modal-backdrop: 1040;
1718
- --sg-z-index-modal: 1050;
1719
- --sg-z-index-popover: 1060;
1720
- --sg-z-index-tooltip: 1070;
1721
- --sg-text-primary: #dedede;
1722
- --sg-text-secondary: #ababab;
1723
- --sg-form-control-bg: rgba(0, 0, 0, 0.1);
1724
- --sg-form-control-bg-disabled: rgba(255, 255, 255, 0.02);
1725
- --sg-border-color: #ababab;
1726
- --sg-border-width: 1px;
1727
- --sg-border-width-50: 0.5px;
1728
- --sg-border-radius: 0.25rem;
1729
- --sg-hsl-contrast: 0deg, 0%, 100%;
1730
- --sg-hsl-light: 0deg, 0%, 87.0588235294%;
1731
- --sg-hsl-light-contrast: 0deg, 0%, 0%;
1732
- --sg-hsl-dark: 0deg, 0%, 7.0588235294%;
1733
- --sg-hsl-dark-contrast: 0deg, 0%, 100%;
1734
- --sg-hsl-black: 0deg, 0%, 0%;
1735
- --sg-hsl-white: 0deg, 0%, 100%;
1736
- --sg-hsl-blue-0: 201.5028901734deg, 83.5748792271%, 59.4117647059%;
1737
- --sg-hsl-blue-1: 201.0666666667deg, 100%, 44.1176470588%;
1738
- --sg-hsl-blue-2: 203.216080402deg, 100%, 39.0196078431%;
1739
- --sg-hsl-green-0: 96.1325966851deg, 79.03930131%, 44.9019607843%;
1740
- --sg-hsl-green-1: 97deg, 100%, 35.2941176471%;
1741
- --sg-hsl-green-2: 98.8235294118deg, 100%, 26.6666666667%;
1742
- --sg-hsl-yellow-0: 46.3529411765deg, 100%, 50%;
1743
- --sg-hsl-yellow-1: 42.3529411765deg, 100%, 50%;
1744
- --sg-hsl-yellow-2: 38.7096774194deg, 100%, 48.6274509804%;
1745
- --sg-hsl-red-0: 3.6180904523deg, 86.8995633188%, 55.0980392157%;
1746
- --sg-hsl-red-1: 0deg, 78.5123966942%, 47.4509803922%;
1747
- --sg-hsl-red-2: 356.1497326203deg, 100%, 36.6666666667%;
1748
- --sg-hsl-purple-0: 261.7741935484deg, 51.6666666667%, 47.0588235294%;
1749
- --sg-hsl-purple-1: 259.2660550459deg, 55.3299492386%, 38.6274509804%;
1750
- --sg-hsl-purple-2: 255.9183673469deg, 56.976744186%, 33.7254901961%;
1751
- --sg-grey-100: #dedede;
1752
- --sg-grey-200: #ababab;
1753
- --sg-grey-300: #757575;
1754
- --sg-grey-400: #494949;
1755
- --sg-grey-500: #333333;
1756
- --sg-grey-600: #2c2c2c;
1757
- --sg-grey-700: #272727;
1758
- --sg-grey-800: #222222;
1759
- --sg-grey-900: #121212;
1760
- --sg-intent-neutral-hsl: 0deg, 0%, 20%;
1761
- --sg-intent-neutral-hsl-contrast: 0deg, 0%, 100%;
1762
- --sg-intent-info-hsl: 203.216080402deg, 100%, 39.0196078431%;
1763
- --sg-intent-info-hsl-contrast: 0deg, 0%, 100%;
1764
- --sg-intent-success-hsl: 98.8235294118deg, 100%, 26.6666666667%;
1765
- --sg-intent-success-hsl-contrast: 0deg, 0%, 100%;
1766
- --sg-intent-warning-hsl: 46.3529411765deg, 100%, 50%;
1767
- --sg-intent-warning-hsl-contrast: 0deg, 0%, 0%;
1768
- --sg-intent-critical-hsl: 0deg, 78.5123966942%, 47.4509803922%;
1769
- --sg-intent-critical-hsl-contrast: 0deg, 0%, 100%;
1770
- --sg-hsl-disabled-background: 0deg, 0%, 20%;
1771
- --sg-hsl-disabled-color: 0deg, 0%, 45.8823529412%;
1772
- --sg-bg-level-0: #121212;
1773
- --sg-bg-level-1: #222222;
1774
- --sg-bg-level-2: #272727;
1775
- --sg-bg-level-3: #2c2c2c;
1776
- --sg-table-header-background: #121212;
1777
- --sg-table-header-color: #fff;
1778
- --sg-table-cell-padding-x: 0.5rem;
1779
- --sg-table-cell-padding-y: 0.6875rem;
1780
- --sg-table-border-width: 1px;
1781
- --sg-table-border-color: #ababab;
1782
- --sg-table-sort-icon-color: #ababab;
1783
- --sg-table-sort-icon-color-active: #fff;
1784
- --sg-skeleton-loader-highlight-color: #494949;
1785
- --sg-skeleton-loader-background-color: #2c2c2c;
1786
- --sg-modal-background: #272727;
1787
- --sg-modal-box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.15);
1788
- --sg-modal-backdrop-background: rgba(0, 0, 0, 0.5);
1789
- --sg-popover-box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.15);
1790
- --sg-popover-background: #222222;
1791
- --sg-popover-border-color: #007ac7;
1792
- --sg-card-box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.15);
1793
- --sg-card-background: #222222;
1794
- --sg-card-heading-color: #dedede;
1795
- --sg-card-color: #dedede;
1796
- --sg-card-border: solid 1px #222222;
1797
- --sg-card-border-radius: 0;
1798
- }
1799
- }`;
1800
-
1801
- // libs/core/src/components/theme/theme.trans.styles.ts
1802
- function register7() {
1803
- TransitionalStyles.instance.register(
1804
- "gds-theme",
1805
- chlorophyll_tokens_default.toString()
1806
- );
1807
- }
1808
-
1809
- // libs/core/src/primitives/calendar/calendar.trans.styles.scss
1810
- var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
1811
- /* stylelint-enable max-nesting-depth */
1812
- /**
1813
- * Calculate the luminance for a color.
1814
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
1815
- */
1816
- /**
1817
- * Calculate the contrast ratio between two colors.
1818
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
1819
- */
1820
- /* stylelint-disable */
1821
- /* stylelint-enable */
1822
- /* stylelint-disable */
1823
- /**
1824
- * @deprecated
1825
- * Use \`add-focus\` instead
1826
- */
1827
- /** add background color, color and border-color to element when it has focus-visible i.e. tab focus */
1828
- /* medium */
1829
- /* regular */
1830
- /* regular */
1831
- /* regular */
1832
- /* hover */
1833
- /* focus */
1834
- /* selected */
1835
- /* highlighted */
1836
- /* active */
1837
- /* disabled */
1838
- /* today */
1839
- /* weekend */
1840
- @layer base, reset, transitional-styles;
1841
- @layer transitional-styles {
1842
- @layer _base {
1843
- :host {
1844
- display: flex;
1845
- justify-content: center;
1846
- }
1847
- @media (max-width: 35.98em) {
1848
- :host {
1849
- flex-wrap: wrap;
1850
- overflow-y: auto;
1851
- }
1852
- }
1853
- :host table {
1854
- border-spacing: 0;
1855
- }
1856
- :host table tr th,
1857
- :host table tr td {
1858
- box-sizing: border-box;
1859
- height: 2.75rem;
1860
- text-align: center;
1861
- width: 2.75rem;
1862
- }
1863
- :host table thead {
1864
- /* days */
1865
- }
1866
- :host table thead th {
1867
- background: var(--sg-bg-level-2);
1868
- border-bottom: solid 1px var(--sg-grey-300);
1869
- font-weight: 400;
1870
- top: 0;
1871
- }
1872
- @media (max-width: 35.98em) {
1873
- :host table thead th {
1874
- position: sticky;
1875
- }
1876
- }
1877
- :host table tbody {
1878
- /* week numbers */
1879
- /* dates */
1880
- }
1881
- :host table tbody tr th {
1882
- font-weight: 400;
1883
- }
1884
- :host table tbody tr td {
1885
- border: solid 1px transparent;
1886
- font-weight: 500;
1887
- -webkit-user-select: none;
1888
- -moz-user-select: none;
1889
- user-select: none;
1890
- /* weekend */
1891
- /* today */
1892
- /* hover */
1893
- /* focus */
1894
- /* selected */
1895
- /* highlighted */
1896
- /* active (pressed) */
1897
- /* disabled */
1898
- }
1899
- :host table tbody tr td.sg-date-holiday:not(.disabled) {
1900
- background: var(--sg-bg-level-2);
1901
- color: hsl(var(--sg-hsl-red-2));
1902
- }
1903
- :host table tbody tr td.today {
1904
- background: transparent;
1905
- border-radius: 4px;
1906
- box-shadow: inset 0 0 0 2px var(--grey-1000);
1907
- color: var(--grey-1000);
1908
- }
1909
- :host table tbody tr td:hover:not(.disabled) {
1910
- background: var(--grey-500);
1911
- border: solid 1px var(--sg-bg-level-2);
1912
- border-radius: 4px;
1913
- color: var(--gds-sys-color-font);
1914
- cursor: pointer;
1915
- }
1916
- :host table tbody tr td:focus-visible:focus:not(:focus-visible) {
1917
- box-shadow: none;
1918
- outline: 0;
1919
- }
1920
- :host table tbody tr td:focus-visible:focus, :host table tbody tr td:focus-visible:focus-visible {
1921
- outline-color: var(--gds-sys-color-focus-outline);
1922
- outline-style: solid;
1923
- outline-width: 0.125rem;
1924
- outline-offset: 0.125rem;
1925
- }
1926
- :host table tbody tr td:focus-visible:not(.disabled) {
1927
- border: solid 1px var(--sg-bg-level-2);
1928
- border-radius: 4px;
1929
- cursor: pointer;
1930
- position: relative;
1931
- z-index: 0;
1932
- }
1933
- :host table tbody tr td[aria-selected=true] {
1934
- background: var(--grey-1000);
1935
- border: solid 1px var(--sg-bg-level-2);
1936
- border-radius: 4px;
1937
- color: hsl(var(--sg-hsl-white));
1938
- }
1939
- :host table tbody tr td[tabindex="0"] {
1940
- border-radius: 4px;
1941
- }
1942
- :host table tbody tr td:hover:active:not(.disabled) {
1943
- background: var(--grey-1000);
1944
- border: solid 1px var(--sg-bg-level-2);
1945
- border-radius: 4px;
1946
- color: hsl(var(--sg-hsl-white));
1947
- }
1948
- :host table tbody tr td.disabled {
1949
- background: hsl(var(--sg-hsl-disabled-background));
1950
- border: solid 1px var(--sg-bg-level-2);
1951
- border-radius: 4px;
1952
- color: hsl(var(--sg-hsl-disabled-color));
1953
- cursor: not-allowed;
1954
- font-weight: 400;
1955
- }
1956
- :host table tbody tr td.disabled.sg-date-holiday {
1957
- color: hsla(var(--sg-hsl-red-2), 0.25);
1958
- }
1959
- table {
1960
- flex-grow: 1;
1961
- width: 100%;
1962
- }
1963
- }
1964
- @layer _modifiers {
1965
- .week-number {
1966
- border-right: solid 1px var(--gds-ref-pallet-base300);
1967
- font-weight: 400;
1968
- pointer-events: none;
1969
- }
1970
- }
1971
- }`;
1972
-
1973
- // libs/core/src/primitives/calendar/calendar.trans.styles.ts
1974
- function register8() {
1975
- TransitionalStyles.instance.register("gds-calendar", calendar_trans_styles_default.toString());
1976
- }
1977
-
1978
- // libs/core/src/primitives/listbox/listbox.trans.styles.scss
1979
- var listbox_trans_styles_default = `/**
1980
- * Calculate the luminance for a color.
1981
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
1982
- */
1983
- /**
1984
- * Calculate the contrast ratio between two colors.
1985
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
1986
- */
1987
- /* stylelint-disable max-nesting-depth */
1988
- /* stylelint-enable max-nesting-depth */
1989
- /* stylelint-disable */
1990
- /* stylelint-enable */
1991
- /* stylelint-disable */
1992
- /**
1993
- * @deprecated
1994
- * Use \`add-focus\` instead
1995
- */
1996
- /** add background color, color and border-color to element when it has focus-visible i.e. tab focus */
1997
- /**
1998
- * @deprecated in favor of Grouped list component
1999
- */
2000
- /**
2001
- * @deprecated in favor of Grouped list component
2002
- */
2003
- @layer base, reset, transitional-styles;
2004
- @layer transitional-styles {
2005
- :host {
2006
- padding-left: 0;
2007
- margin-bottom: 0;
2008
- margin-top: 0;
2009
- display: flex;
2010
- flex-direction: column;
2011
- list-style: none;
2012
- overflow-y: auto;
2013
- }
2014
- :host > li {
2015
- padding-bottom: 0.5rem;
2016
- padding-top: 0.5rem;
2017
- border: 0;
2018
- display: block;
2019
- position: relative;
2020
- }
2021
- :host > li::before {
2022
- font-weight: 500;
2023
- display: inline-block;
2024
- left: 0;
2025
- position: absolute;
2026
- text-align: center;
2027
- }
2028
- }`;
2029
-
2030
- // libs/core/src/primitives/listbox/option.trans.styles.scss
2031
- var option_trans_styles_default = `/**
2032
- * Calculate the luminance for a color.
2033
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
2034
- */
2035
- /**
2036
- * Calculate the contrast ratio between two colors.
2037
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
2038
- */
2039
- /* stylelint-disable max-nesting-depth */
2040
- /* stylelint-enable max-nesting-depth */
2041
- /* stylelint-disable */
2042
- /* stylelint-enable */
2043
- /* stylelint-disable */
2044
- /**
2045
- * @deprecated
2046
- * Use \`add-focus\` instead
2047
- */
2048
- /** add background color, color and border-color to element when it has focus-visible i.e. tab focus */
2049
- @layer base, reset, transitional-styles;
2050
- @layer transitional-styles {
2051
- :host div {
2052
- padding-left: 1rem;
2053
- padding-right: 1rem;
2054
- padding-bottom: 0.75rem;
2055
- padding-top: 0.75rem;
2056
- line-height: 1.25;
2057
- cursor: pointer;
2058
- display: flex;
2059
- gap: 0.75rem;
2060
- -webkit-user-select: none;
2061
- -moz-user-select: none;
2062
- user-select: none;
2063
- }
2064
- :host div:hover, :host div:focus-visible {
2065
- background-color: var(--grey-400);
2066
- }
2067
- :host div:active {
2068
- background-color: var(--grey-400);
2069
- }
2070
- :host div:focus {
2071
- outline-color: #000;
2072
- outline-offset: -0.25rem;
2073
- }
2074
- :host div.active.sg-highlighted, :host div[aria-selected=true] {
2075
- background: var(--grey-1000);
2076
- color: #fff;
2077
- }
2078
- :host(:hover) div,
2079
- :host(:focus-visible) div {
2080
- background-color: var(--grey-400);
2081
- }
2082
- :host(:active) div {
2083
- background-color: var(--grey-500);
2084
- }
2085
- :host(:focus) div {
2086
- outline-color: #000;
2087
- outline-offset: -0.25rem;
2088
- }
2089
- :host([aria-hidden=true]) div {
2090
- display: none;
2091
- }
2092
- :host([highlighted]) div {
2093
- background: var(--grey-1000);
2094
- color: #fff;
2095
- }
2096
- .checkbox {
2097
- background-color: var(--gds-comp-checkbox-container-color);
2098
- border-radius: var(--gds-comp-checkbox-border-radius);
2099
- box-shadow: inset 0 0 0 1px var(--gds-comp-checkbox-border-color);
2100
- flex: 0 0 auto;
2101
- flex-shrink: 0;
2102
- height: var(--gds-comp-checkbox-container-width);
2103
- margin-top: 0.15rem;
2104
- position: relative;
2105
- width: var(--gds-comp-checkbox-container-width);
2106
- }
2107
- .checkbox.checked {
2108
- background-color: var(--gds-comp-checkbox-container-color-selected);
2109
- }
2110
- .checkbox.checked::after {
2111
- border-bottom: 3px solid var(--gds-comp-checkbox-border-color-selected, #fff);
2112
- border-left: 3px solid var(--gds-comp-checkbox-border-color-selected, #fff);
2113
- content: "";
2114
- height: 0.5rem;
2115
- left: -1px;
2116
- position: absolute;
2117
- top: 0.05rem;
2118
- transform: scale(0.55) rotate(-45deg);
2119
- transform-origin: center center;
2120
- width: 1rem;
2121
- }
2122
- }`;
2123
-
2124
- // libs/core/src/primitives/menu/menu-heading.trans.styles.scss
2125
- var menu_heading_trans_styles_default = `@layer base, reset, transitional-styles;
2126
- @layer transitional-styles {
2127
- :host {
2128
- background-color: var(--gds-ref-pallet-base300);
2129
- color: var(--gds-ref-pallet-base800);
2130
- display: flex;
2131
- font-size: 0.875rem;
2132
- font-weight: 500;
2133
- padding: 0.75rem 1rem;
2134
- -webkit-user-select: none;
2135
- -moz-user-select: none;
2136
- user-select: none;
2137
- }
2138
- :host([aria-hidden=true]) {
2139
- display: none;
2140
- }
2141
- }`;
2142
-
2143
- // libs/core/src/primitives/listbox/listbox.trans.styles.ts
2144
- function register9() {
2145
- TransitionalStyles.instance.register("gds-listbox", listbox_trans_styles_default.toString());
2146
- TransitionalStyles.instance.register("gds-option", option_trans_styles_default.toString());
2147
- TransitionalStyles.instance.register(
2148
- "gds-menu-heading",
2149
- menu_heading_trans_styles_default.toString()
2150
- );
2151
- }
2152
-
2153
- // libs/core/src/primitives/popover/popover.trans.styles.scss
2154
- var popover_trans_styles_default = `/* stylelint-disable max-nesting-depth */
2155
- /* stylelint-enable max-nesting-depth */
2156
- /**
2157
- * Calculate the luminance for a color.
2158
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
2159
- */
2160
- /**
2161
- * Calculate the contrast ratio between two colors.
2162
- * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
2163
- */
2164
- /* stylelint-disable */
2165
- /* stylelint-enable */
2166
- /* stylelint-disable */
2167
- /**
2168
- * @deprecated
2169
- * Use \`add-focus\` instead
2170
- */
2171
- /** add background color, color and border-color to element when it has focus-visible i.e. tab focus */
2172
- button,
2173
- input[type=button],
2174
- input[type=submit],
2175
- input[type=reset],
2176
- .button,
2177
- .gds-filter-chip {
2178
- background-color: transparent;
2179
- border: 0;
2180
- cursor: pointer;
2181
- font-family: inherit;
2182
- padding: 0;
2183
- }
2184
-
2185
- button:where(:not(.link,
2186
- .close,
2187
- .sg-table-sort,
2188
- [aria-haspopup=listbox],
2189
- [aria-haspopup=menu],
2190
- [role=switch],
2191
- .gds-filter-chip)),
2192
- input:where([type=button], [type=submit], [type=reset]),
2193
- .button {
2194
- padding-left: 1rem;
2195
- padding-right: 1rem;
2196
- padding-bottom: 0.75rem;
2197
- padding-top: 0.75rem;
2198
- border-radius: var(--sg-border-radius);
2199
- border: solid var(--sg-border-width) var(--sg-border-color);
2200
- font-weight: 500;
2201
- min-height: 2.75rem;
2202
- align-items: center;
2203
- display: inline-flex;
2204
- justify-content: center;
2205
- }
2206
- button:where(:not(.link,
2207
- .close,
2208
- .sg-table-sort,
2209
- [aria-haspopup=listbox],
2210
- [aria-haspopup=menu],
2211
- [role=switch],
2212
- .gds-filter-chip)):focus:not(:focus-visible),
2213
- input:where([type=button], [type=submit], [type=reset]):focus:not(:focus-visible),
2214
- .button:focus:not(:focus-visible) {
2215
- box-shadow: none;
2216
- outline: 0;
2217
- }
2218
- button:where(:not(.link,
2219
- .close,
2220
- .sg-table-sort,
2221
- [aria-haspopup=listbox],
2222
- [aria-haspopup=menu],
2223
- [role=switch],
2224
- .gds-filter-chip)):focus, button:where(:not(.link,
2225
- .close,
2226
- .sg-table-sort,
2227
- [aria-haspopup=listbox],
2228
- [aria-haspopup=menu],
2229
- [role=switch],
2230
- .gds-filter-chip)):focus-visible,
2231
- input:where([type=button], [type=submit], [type=reset]):focus,
2232
- input:where([type=button], [type=submit], [type=reset]):focus-visible,
2233
- .button:focus,
2234
- .button:focus-visible {
2235
- outline-color: var(--gds-sys-color-focus-outline);
2236
- outline-style: solid;
2237
- outline-width: 0.125rem;
2238
- outline-offset: 0.125rem;
2239
- }
2240
- @media (max-width: 35.98em) {
2241
- button:where(:not(.link,
2242
- .close,
2243
- .sg-table-sort,
2244
- [aria-haspopup=listbox],
2245
- [aria-haspopup=menu],
2246
- [role=switch],
2247
- .gds-filter-chip)),
2248
- input:where([type=button], [type=submit], [type=reset]),
2249
- .button {
2250
- min-width: 100%;
2251
- }
2252
- }
2253
- @media screen and (-ms-high-contrast: active) {
2254
- button:where(:not(.link,
2255
- .close,
2256
- .sg-table-sort,
2257
- [aria-haspopup=listbox],
2258
- [aria-haspopup=menu],
2259
- [role=switch],
2260
- .gds-filter-chip)),
2261
- input:where([type=button], [type=submit], [type=reset]),
2262
- .button {
2263
- border: 2px solid currentcolor;
2264
- }
2265
- }
2266
- button:where(:not(.link,
2267
- .close,
2268
- .sg-table-sort,
2269
- [aria-haspopup=listbox],
2270
- [aria-haspopup=menu],
2271
- [role=switch],
2272
- .gds-filter-chip)).small,
2273
- input:where([type=button], [type=submit], [type=reset]).small,
2274
- .button.small {
2275
- min-height: 2rem;
2276
- padding: 0.4375rem 0.75rem;
2277
- line-height: 1rem;
2278
- }
2279
- button:where(:not(.link,
2280
- .close,
2281
- .sg-table-sort,
2282
- [aria-haspopup=listbox],
2283
- [aria-haspopup=menu],
2284
- [role=switch],
2285
- .gds-filter-chip)).large,
2286
- input:where([type=button], [type=submit], [type=reset]).large,
2287
- .button.large {
2288
- min-height: 4rem;
2289
- padding: 1rem 1.5rem;
2290
- font-size: 1.5rem;
2291
- line-height: 2rem;
2292
- }
2293
-
2294
- button:where(:not(.primary,
2295
- .tertiary,
2296
- .ghost,
2297
- .danger,
2298
- .close,
2299
- .sg-table-sort,
2300
- .link,
2301
- [aria-haspopup=listbox],
2302
- [aria-haspopup=menu],
2303
- [role=switch],
2304
- .gds-filter-chip)),
2305
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)),
2306
- button.secondary,
2307
- a.button.secondary,
2308
- input:is([type=button], [type=reset]),
2309
- button[type=button]:where(:not(.primary,
2310
- .tertiary,
2311
- .ghost,
2312
- .danger,
2313
- .close,
2314
- .link,
2315
- .icon,
2316
- [aria-haspopup=listbox],
2317
- [aria-haspopup=menu])),
2318
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)) {
2319
- transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
2320
- background: transparent;
2321
- border-color: rgb(0, 122, 199);
2322
- color: rgb(0, 122, 199);
2323
- --color: rgb(0, 122, 199);
2324
- }
2325
- button:where(:not(.primary,
2326
- .tertiary,
2327
- .ghost,
2328
- .danger,
2329
- .close,
2330
- .sg-table-sort,
2331
- .link,
2332
- [aria-haspopup=listbox],
2333
- [aria-haspopup=menu],
2334
- [role=switch],
2335
- .gds-filter-chip)):focus:not(:focus-visible),
2336
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus:not(:focus-visible),
2337
- button.secondary:focus:not(:focus-visible),
2338
- a.button.secondary:focus:not(:focus-visible),
2339
- input:is([type=button], [type=reset]):focus:not(:focus-visible),
2340
- button[type=button]:where(:not(.primary,
2341
- .tertiary,
2342
- .ghost,
2343
- .danger,
2344
- .close,
2345
- .link,
2346
- .icon,
2347
- [aria-haspopup=listbox],
2348
- [aria-haspopup=menu])):focus:not(:focus-visible),
2349
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus:not(:focus-visible) {
2350
- box-shadow: none;
2351
- outline: 0;
2352
- }
2353
- button:where(:not(.primary,
2354
- .tertiary,
2355
- .ghost,
2356
- .danger,
2357
- .close,
2358
- .sg-table-sort,
2359
- .link,
2360
- [aria-haspopup=listbox],
2361
- [aria-haspopup=menu],
2362
- [role=switch],
2363
- .gds-filter-chip)):focus, button:where(:not(.primary,
2364
- .tertiary,
2365
- .ghost,
2366
- .danger,
2367
- .close,
2368
- .sg-table-sort,
2369
- .link,
2370
- [aria-haspopup=listbox],
2371
- [aria-haspopup=menu],
2372
- [role=switch],
2373
- .gds-filter-chip)):focus-visible,
2374
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
2375
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus-visible,
2376
- button.secondary:focus,
2377
- button.secondary:focus-visible,
2378
- a.button.secondary:focus,
2379
- a.button.secondary:focus-visible,
2380
- input:is([type=button], [type=reset]):focus,
2381
- input:is([type=button], [type=reset]):focus-visible,
2382
- button[type=button]:where(:not(.primary,
2383
- .tertiary,
2384
- .ghost,
2385
- .danger,
2386
- .close,
2387
- .link,
2388
- .icon,
2389
- [aria-haspopup=listbox],
2390
- [aria-haspopup=menu])):focus,
2391
- button[type=button]:where(:not(.primary,
2392
- .tertiary,
2393
- .ghost,
2394
- .danger,
2395
- .close,
2396
- .link,
2397
- .icon,
2398
- [aria-haspopup=listbox],
2399
- [aria-haspopup=menu])):focus-visible,
2400
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
2401
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus-visible {
2402
- outline-color: var(--gds-sys-color-focus-outline);
2403
- outline-style: solid;
2404
- outline-width: 0.125rem;
2405
- outline-offset: 0.125rem;
2406
- }
2407
- button:where(:not(.primary,
2408
- .tertiary,
2409
- .ghost,
2410
- .danger,
2411
- .close,
2412
- .sg-table-sort,
2413
- .link,
2414
- [aria-haspopup=listbox],
2415
- [aria-haspopup=menu],
2416
- [role=switch],
2417
- .gds-filter-chip)):not(:disabled, .disabled, [aria-disabled]):hover,
2418
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):not(:disabled, .disabled, [aria-disabled]):hover,
2419
- button.secondary:not(:disabled, .disabled, [aria-disabled]):hover,
2420
- a.button.secondary:not(:disabled, .disabled, [aria-disabled]):hover,
2421
- input:is([type=button], [type=reset]):not(:disabled, .disabled, [aria-disabled]):hover,
2422
- button[type=button]:where(:not(.primary,
2423
- .tertiary,
2424
- .ghost,
2425
- .danger,
2426
- .close,
2427
- .link,
2428
- .icon,
2429
- [aria-haspopup=listbox],
2430
- [aria-haspopup=menu])):not(:disabled, .disabled, [aria-disabled]):hover,
2431
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):not(:disabled, .disabled, [aria-disabled]):hover {
2432
- background-color: #199be3;
2433
- color: rgb(255, 255, 255);
2434
- --background: #199be3;
2435
- --color: rgb(255, 255, 255);
2436
- border-color: #199be3;
2437
- }
2438
- button:where(:not(.primary,
2439
- .tertiary,
2440
- .ghost,
2441
- .danger,
2442
- .close,
2443
- .sg-table-sort,
2444
- .link,
2445
- [aria-haspopup=listbox],
2446
- [aria-haspopup=menu],
2447
- [role=switch],
2448
- .gds-filter-chip))[aria-selected], button:where(:not(.primary,
2449
- .tertiary,
2450
- .ghost,
2451
- .danger,
2452
- .close,
2453
- .sg-table-sort,
2454
- .link,
2455
- [aria-haspopup=listbox],
2456
- [aria-haspopup=menu],
2457
- [role=switch],
2458
- .gds-filter-chip)):active, button:where(:not(.primary,
2459
- .tertiary,
2460
- .ghost,
2461
- .danger,
2462
- .close,
2463
- .sg-table-sort,
2464
- .link,
2465
- [aria-haspopup=listbox],
2466
- [aria-haspopup=menu],
2467
- [role=switch],
2468
- .gds-filter-chip)).active, button:where(:not(.primary,
2469
- .tertiary,
2470
- .ghost,
2471
- .danger,
2472
- .close,
2473
- .sg-table-sort,
2474
- .link,
2475
- [aria-haspopup=listbox],
2476
- [aria-haspopup=menu],
2477
- [role=switch],
2478
- .gds-filter-chip)).active:hover, button:where(:not(.primary,
2479
- .tertiary,
2480
- .ghost,
2481
- .danger,
2482
- .close,
2483
- .sg-table-sort,
2484
- .link,
2485
- [aria-haspopup=listbox],
2486
- [aria-haspopup=menu],
2487
- [role=switch],
2488
- .gds-filter-chip)):active:hover,
2489
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link))[aria-selected],
2490
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):active,
2491
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)).active,
2492
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)).active:hover,
2493
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):active:hover,
2494
- button.secondary[aria-selected],
2495
- button.secondary:active,
2496
- button.secondary.active,
2497
- button.secondary.active:hover,
2498
- button.secondary:active:hover,
2499
- a.button.secondary[aria-selected],
2500
- a.button.secondary:active,
2501
- a.button.secondary.active,
2502
- a.button.secondary.active:hover,
2503
- a.button.secondary:active:hover,
2504
- input:is([type=button], [type=reset])[aria-selected],
2505
- input:is([type=button], [type=reset]):active,
2506
- input:is([type=button], [type=reset]).active,
2507
- input:is([type=button], [type=reset]).active:hover,
2508
- input:is([type=button], [type=reset]):active:hover,
2509
- button[type=button]:where(:not(.primary,
2510
- .tertiary,
2511
- .ghost,
2512
- .danger,
2513
- .close,
2514
- .link,
2515
- .icon,
2516
- [aria-haspopup=listbox],
2517
- [aria-haspopup=menu]))[aria-selected],
2518
- button[type=button]:where(:not(.primary,
2519
- .tertiary,
2520
- .ghost,
2521
- .danger,
2522
- .close,
2523
- .link,
2524
- .icon,
2525
- [aria-haspopup=listbox],
2526
- [aria-haspopup=menu])):active,
2527
- button[type=button]:where(:not(.primary,
2528
- .tertiary,
2529
- .ghost,
2530
- .danger,
2531
- .close,
2532
- .link,
2533
- .icon,
2534
- [aria-haspopup=listbox],
2535
- [aria-haspopup=menu])).active,
2536
- button[type=button]:where(:not(.primary,
2537
- .tertiary,
2538
- .ghost,
2539
- .danger,
2540
- .close,
2541
- .link,
2542
- .icon,
2543
- [aria-haspopup=listbox],
2544
- [aria-haspopup=menu])).active:hover,
2545
- button[type=button]:where(:not(.primary,
2546
- .tertiary,
2547
- .ghost,
2548
- .danger,
2549
- .close,
2550
- .link,
2551
- .icon,
2552
- [aria-haspopup=listbox],
2553
- [aria-haspopup=menu])):active:hover,
2554
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link))[aria-selected],
2555
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):active,
2556
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)).active,
2557
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)).active:hover,
2558
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):active:hover {
2559
- background-color: rgb(0, 122, 199);
2560
- color: rgb(255, 255, 255);
2561
- --background: rgb(0, 122, 199);
2562
- --color: rgb(255, 255, 255);
2563
- border-color: rgb(0, 122, 199);
2564
- }
2565
- button:where(:not(.primary,
2566
- .tertiary,
2567
- .ghost,
2568
- .danger,
2569
- .close,
2570
- .sg-table-sort,
2571
- .link,
2572
- [aria-haspopup=listbox],
2573
- [aria-haspopup=menu],
2574
- [role=switch],
2575
- .gds-filter-chip)):disabled, button:where(:not(.primary,
2576
- .tertiary,
2577
- .ghost,
2578
- .danger,
2579
- .close,
2580
- .sg-table-sort,
2581
- .link,
2582
- [aria-haspopup=listbox],
2583
- [aria-haspopup=menu],
2584
- [role=switch],
2585
- .gds-filter-chip)).disabled, button:where(:not(.primary,
2586
- .tertiary,
2587
- .ghost,
2588
- .danger,
2589
- .close,
2590
- .sg-table-sort,
2591
- .link,
2592
- [aria-haspopup=listbox],
2593
- [aria-haspopup=menu],
2594
- [role=switch],
2595
- .gds-filter-chip))[aria-disabled=true],
2596
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):disabled,
2597
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)).disabled,
2598
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link))[aria-disabled=true],
2599
- button.secondary:disabled,
2600
- button.secondary.disabled,
2601
- button.secondary[aria-disabled=true],
2602
- a.button.secondary:disabled,
2603
- a.button.secondary.disabled,
2604
- a.button.secondary[aria-disabled=true],
2605
- input:is([type=button], [type=reset]):disabled,
2606
- input:is([type=button], [type=reset]).disabled,
2607
- input:is([type=button], [type=reset])[aria-disabled=true],
2608
- button[type=button]:where(:not(.primary,
2609
- .tertiary,
2610
- .ghost,
2611
- .danger,
2612
- .close,
2613
- .link,
2614
- .icon,
2615
- [aria-haspopup=listbox],
2616
- [aria-haspopup=menu])):disabled,
2617
- button[type=button]:where(:not(.primary,
2618
- .tertiary,
2619
- .ghost,
2620
- .danger,
2621
- .close,
2622
- .link,
2623
- .icon,
2624
- [aria-haspopup=listbox],
2625
- [aria-haspopup=menu])).disabled,
2626
- button[type=button]:where(:not(.primary,
2627
- .tertiary,
2628
- .ghost,
2629
- .danger,
2630
- .close,
2631
- .link,
2632
- .icon,
2633
- [aria-haspopup=listbox],
2634
- [aria-haspopup=menu]))[aria-disabled=true],
2635
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):disabled,
2636
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)).disabled,
2637
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link))[aria-disabled=true] {
2638
- background: var(--sg-form-control-bg-disabled) !important;
2639
- color: var(--text-disabled-color) !important;
2640
- border-color: var(--border-disabled-color) !important;
2641
- cursor: not-allowed;
2642
- }
2643
- button:where(:not(.primary,
2644
- .tertiary,
2645
- .ghost,
2646
- .danger,
2647
- .close,
2648
- .sg-table-sort,
2649
- .link,
2650
- [aria-haspopup=listbox],
2651
- [aria-haspopup=menu],
2652
- [role=switch],
2653
- .gds-filter-chip)):disabled::-moz-placeholder, button:where(:not(.primary,
2654
- .tertiary,
2655
- .ghost,
2656
- .danger,
2657
- .close,
2658
- .sg-table-sort,
2659
- .link,
2660
- [aria-haspopup=listbox],
2661
- [aria-haspopup=menu],
2662
- [role=switch],
2663
- .gds-filter-chip)).disabled::-moz-placeholder, button:where(:not(.primary,
2664
- .tertiary,
2665
- .ghost,
2666
- .danger,
2667
- .close,
2668
- .sg-table-sort,
2669
- .link,
2670
- [aria-haspopup=listbox],
2671
- [aria-haspopup=menu],
2672
- [role=switch],
2673
- .gds-filter-chip))[aria-disabled=true]::-moz-placeholder, a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):disabled::-moz-placeholder, a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)).disabled::-moz-placeholder, a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link))[aria-disabled=true]::-moz-placeholder, button.secondary:disabled::-moz-placeholder, button.secondary.disabled::-moz-placeholder, button.secondary[aria-disabled=true]::-moz-placeholder, a.button.secondary:disabled::-moz-placeholder, a.button.secondary.disabled::-moz-placeholder, a.button.secondary[aria-disabled=true]::-moz-placeholder, input:is([type=button], [type=reset]):disabled::-moz-placeholder, input:is([type=button], [type=reset]).disabled::-moz-placeholder, input:is([type=button], [type=reset])[aria-disabled=true]::-moz-placeholder, button[type=button]:where(:not(.primary,
2674
- .tertiary,
2675
- .ghost,
2676
- .danger,
2677
- .close,
2678
- .link,
2679
- .icon,
2680
- [aria-haspopup=listbox],
2681
- [aria-haspopup=menu])):disabled::-moz-placeholder, button[type=button]:where(:not(.primary,
2682
- .tertiary,
2683
- .ghost,
2684
- .danger,
2685
- .close,
2686
- .link,
2687
- .icon,
2688
- [aria-haspopup=listbox],
2689
- [aria-haspopup=menu])).disabled::-moz-placeholder, button[type=button]:where(:not(.primary,
2690
- .tertiary,
2691
- .ghost,
2692
- .danger,
2693
- .close,
2694
- .link,
2695
- .icon,
2696
- [aria-haspopup=listbox],
2697
- [aria-haspopup=menu]))[aria-disabled=true]::-moz-placeholder, button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):disabled::-moz-placeholder, button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)).disabled::-moz-placeholder, button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link))[aria-disabled=true]::-moz-placeholder {
2698
- color: var(--text-disabled-color);
2699
- }
2700
- button:where(:not(.primary,
2701
- .tertiary,
2702
- .ghost,
2703
- .danger,
2704
- .close,
2705
- .sg-table-sort,
2706
- .link,
2707
- [aria-haspopup=listbox],
2708
- [aria-haspopup=menu],
2709
- [role=switch],
2710
- .gds-filter-chip)):disabled::placeholder, button:where(:not(.primary,
2711
- .tertiary,
2712
- .ghost,
2713
- .danger,
2714
- .close,
2715
- .sg-table-sort,
2716
- .link,
2717
- [aria-haspopup=listbox],
2718
- [aria-haspopup=menu],
2719
- [role=switch],
2720
- .gds-filter-chip)).disabled::placeholder, button:where(:not(.primary,
2721
- .tertiary,
2722
- .ghost,
2723
- .danger,
2724
- .close,
2725
- .sg-table-sort,
2726
- .link,
2727
- [aria-haspopup=listbox],
2728
- [aria-haspopup=menu],
2729
- [role=switch],
2730
- .gds-filter-chip))[aria-disabled=true]::placeholder,
2731
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):disabled::placeholder,
2732
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)).disabled::placeholder,
2733
- a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link))[aria-disabled=true]::placeholder,
2734
- button.secondary:disabled::placeholder,
2735
- button.secondary.disabled::placeholder,
2736
- button.secondary[aria-disabled=true]::placeholder,
2737
- a.button.secondary:disabled::placeholder,
2738
- a.button.secondary.disabled::placeholder,
2739
- a.button.secondary[aria-disabled=true]::placeholder,
2740
- input:is([type=button], [type=reset]):disabled::placeholder,
2741
- input:is([type=button], [type=reset]).disabled::placeholder,
2742
- input:is([type=button], [type=reset])[aria-disabled=true]::placeholder,
2743
- button[type=button]:where(:not(.primary,
2744
- .tertiary,
2745
- .ghost,
2746
- .danger,
2747
- .close,
2748
- .link,
2749
- .icon,
2750
- [aria-haspopup=listbox],
2751
- [aria-haspopup=menu])):disabled::placeholder,
2752
- button[type=button]:where(:not(.primary,
2753
- .tertiary,
2754
- .ghost,
2755
- .danger,
2756
- .close,
2757
- .link,
2758
- .icon,
2759
- [aria-haspopup=listbox],
2760
- [aria-haspopup=menu])).disabled::placeholder,
2761
- button[type=button]:where(:not(.primary,
2762
- .tertiary,
2763
- .ghost,
2764
- .danger,
2765
- .close,
2766
- .link,
2767
- .icon,
2768
- [aria-haspopup=listbox],
2769
- [aria-haspopup=menu]))[aria-disabled=true]::placeholder,
2770
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):disabled::placeholder,
2771
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)).disabled::placeholder,
2772
- button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link))[aria-disabled=true]::placeholder {
2773
- color: var(--text-disabled-color);
2774
- }
2775
-
2776
- button:where(:not(.primary,
2777
- .secondary,
2778
- .ghost,
2779
- .danger,
2780
- .close,
2781
- .sg-table-sort,
2782
- .link,
2783
- [aria-haspopup=listbox],
2784
- [aria-haspopup=menu],
2785
- [role=switch],
2786
- .gds-filter-chip)),
2787
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link)),
2788
- button.tertiary,
2789
- a.button.tertiary {
2790
- transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
2791
- background: transparent;
2792
- border-color: transparent;
2793
- color: rgb(0, 122, 199);
2794
- --color: rgb(0, 122, 199);
2795
- }
2796
- button:where(:not(.primary,
2797
- .secondary,
2798
- .ghost,
2799
- .danger,
2800
- .close,
2801
- .sg-table-sort,
2802
- .link,
2803
- [aria-haspopup=listbox],
2804
- [aria-haspopup=menu],
2805
- [role=switch],
2806
- .gds-filter-chip)):focus:not(:focus-visible),
2807
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus:not(:focus-visible),
2808
- button.tertiary:focus:not(:focus-visible),
2809
- a.button.tertiary:focus:not(:focus-visible) {
2810
- box-shadow: none;
2811
- outline: 0;
2812
- }
2813
- button:where(:not(.primary,
2814
- .secondary,
2815
- .ghost,
2816
- .danger,
2817
- .close,
2818
- .sg-table-sort,
2819
- .link,
2820
- [aria-haspopup=listbox],
2821
- [aria-haspopup=menu],
2822
- [role=switch],
2823
- .gds-filter-chip)):focus, button:where(:not(.primary,
2824
- .secondary,
2825
- .ghost,
2826
- .danger,
2827
- .close,
2828
- .sg-table-sort,
2829
- .link,
2830
- [aria-haspopup=listbox],
2831
- [aria-haspopup=menu],
2832
- [role=switch],
2833
- .gds-filter-chip)):focus-visible,
2834
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus,
2835
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus-visible,
2836
- button.tertiary:focus,
2837
- button.tertiary:focus-visible,
2838
- a.button.tertiary:focus,
2839
- a.button.tertiary:focus-visible {
2840
- outline-color: var(--gds-sys-color-focus-outline);
2841
- outline-style: solid;
2842
- outline-width: 0.125rem;
2843
- outline-offset: 0.125rem;
2844
- }
2845
- button:where(:not(.primary,
2846
- .secondary,
2847
- .ghost,
2848
- .danger,
2849
- .close,
2850
- .sg-table-sort,
2851
- .link,
2852
- [aria-haspopup=listbox],
2853
- [aria-haspopup=menu],
2854
- [role=switch],
2855
- .gds-filter-chip)):not(:disabled, .disabled, [aria-disabled]):hover,
2856
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):not(:disabled, .disabled, [aria-disabled]):hover,
2857
- button.tertiary:not(:disabled, .disabled, [aria-disabled]):hover,
2858
- a.button.tertiary:not(:disabled, .disabled, [aria-disabled]):hover {
2859
- background-color: #199be3;
2860
- color: rgb(255, 255, 255);
2861
- --background: #199be3;
2862
- --color: rgb(255, 255, 255);
2863
- border-color: #199be3;
2864
- }
2865
- button:where(:not(.primary,
2866
- .secondary,
2867
- .ghost,
2868
- .danger,
2869
- .close,
2870
- .sg-table-sort,
2871
- .link,
2872
- [aria-haspopup=listbox],
2873
- [aria-haspopup=menu],
2874
- [role=switch],
2875
- .gds-filter-chip))[aria-selected], button:where(:not(.primary,
2876
- .secondary,
2877
- .ghost,
2878
- .danger,
2879
- .close,
2880
- .sg-table-sort,
2881
- .link,
2882
- [aria-haspopup=listbox],
2883
- [aria-haspopup=menu],
2884
- [role=switch],
2885
- .gds-filter-chip)):active, button:where(:not(.primary,
2886
- .secondary,
2887
- .ghost,
2888
- .danger,
2889
- .close,
2890
- .sg-table-sort,
2891
- .link,
2892
- [aria-haspopup=listbox],
2893
- [aria-haspopup=menu],
2894
- [role=switch],
2895
- .gds-filter-chip)).active, button:where(:not(.primary,
2896
- .secondary,
2897
- .ghost,
2898
- .danger,
2899
- .close,
2900
- .sg-table-sort,
2901
- .link,
2902
- [aria-haspopup=listbox],
2903
- [aria-haspopup=menu],
2904
- [role=switch],
2905
- .gds-filter-chip)).active:hover, button:where(:not(.primary,
2906
- .secondary,
2907
- .ghost,
2908
- .danger,
2909
- .close,
2910
- .sg-table-sort,
2911
- .link,
2912
- [aria-haspopup=listbox],
2913
- [aria-haspopup=menu],
2914
- [role=switch],
2915
- .gds-filter-chip)):active:hover,
2916
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link))[aria-selected],
2917
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):active,
2918
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link)).active,
2919
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link)).active:hover,
2920
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):active:hover,
2921
- button.tertiary[aria-selected],
2922
- button.tertiary:active,
2923
- button.tertiary.active,
2924
- button.tertiary.active:hover,
2925
- button.tertiary:active:hover,
2926
- a.button.tertiary[aria-selected],
2927
- a.button.tertiary:active,
2928
- a.button.tertiary.active,
2929
- a.button.tertiary.active:hover,
2930
- a.button.tertiary:active:hover {
2931
- background-color: rgb(0, 122, 199);
2932
- color: rgb(255, 255, 255);
2933
- --background: rgb(0, 122, 199);
2934
- --color: rgb(255, 255, 255);
2935
- border-color: rgb(0, 122, 199);
2936
- }
2937
- button:where(:not(.primary,
2938
- .secondary,
2939
- .ghost,
2940
- .danger,
2941
- .close,
2942
- .sg-table-sort,
2943
- .link,
2944
- [aria-haspopup=listbox],
2945
- [aria-haspopup=menu],
2946
- [role=switch],
2947
- .gds-filter-chip)):disabled, button:where(:not(.primary,
2948
- .secondary,
2949
- .ghost,
2950
- .danger,
2951
- .close,
2952
- .sg-table-sort,
2953
- .link,
2954
- [aria-haspopup=listbox],
2955
- [aria-haspopup=menu],
2956
- [role=switch],
2957
- .gds-filter-chip)).disabled, button:where(:not(.primary,
2958
- .secondary,
2959
- .ghost,
2960
- .danger,
2961
- .close,
2962
- .sg-table-sort,
2963
- .link,
2964
- [aria-haspopup=listbox],
2965
- [aria-haspopup=menu],
2966
- [role=switch],
2967
- .gds-filter-chip))[aria-disabled=true],
2968
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):disabled,
2969
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link)).disabled,
2970
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link))[aria-disabled=true],
2971
- button.tertiary:disabled,
2972
- button.tertiary.disabled,
2973
- button.tertiary[aria-disabled=true],
2974
- a.button.tertiary:disabled,
2975
- a.button.tertiary.disabled,
2976
- a.button.tertiary[aria-disabled=true] {
2977
- background: var(--sg-form-control-bg-disabled) !important;
2978
- color: var(--text-disabled-color) !important;
2979
- border-color: var(--border-disabled-color) !important;
2980
- cursor: not-allowed;
2981
- }
2982
- button:where(:not(.primary,
2983
- .secondary,
2984
- .ghost,
2985
- .danger,
2986
- .close,
2987
- .sg-table-sort,
2988
- .link,
2989
- [aria-haspopup=listbox],
2990
- [aria-haspopup=menu],
2991
- [role=switch],
2992
- .gds-filter-chip)):disabled::-moz-placeholder, button:where(:not(.primary,
2993
- .secondary,
2994
- .ghost,
2995
- .danger,
2996
- .close,
2997
- .sg-table-sort,
2998
- .link,
2999
- [aria-haspopup=listbox],
3000
- [aria-haspopup=menu],
3001
- [role=switch],
3002
- .gds-filter-chip)).disabled::-moz-placeholder, button:where(:not(.primary,
3003
- .secondary,
3004
- .ghost,
3005
- .danger,
3006
- .close,
3007
- .sg-table-sort,
3008
- .link,
3009
- [aria-haspopup=listbox],
3010
- [aria-haspopup=menu],
3011
- [role=switch],
3012
- .gds-filter-chip))[aria-disabled=true]::-moz-placeholder, a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):disabled::-moz-placeholder, a.button:where(:not(.primary, .secondary, .ghost, .close, .link)).disabled::-moz-placeholder, a.button:where(:not(.primary, .secondary, .ghost, .close, .link))[aria-disabled=true]::-moz-placeholder, button.tertiary:disabled::-moz-placeholder, button.tertiary.disabled::-moz-placeholder, button.tertiary[aria-disabled=true]::-moz-placeholder, a.button.tertiary:disabled::-moz-placeholder, a.button.tertiary.disabled::-moz-placeholder, a.button.tertiary[aria-disabled=true]::-moz-placeholder {
3013
- color: var(--text-disabled-color);
3014
- }
3015
- button:where(:not(.primary,
3016
- .secondary,
3017
- .ghost,
3018
- .danger,
3019
- .close,
3020
- .sg-table-sort,
3021
- .link,
3022
- [aria-haspopup=listbox],
3023
- [aria-haspopup=menu],
3024
- [role=switch],
3025
- .gds-filter-chip)):disabled::placeholder, button:where(:not(.primary,
3026
- .secondary,
3027
- .ghost,
3028
- .danger,
3029
- .close,
3030
- .sg-table-sort,
3031
- .link,
3032
- [aria-haspopup=listbox],
3033
- [aria-haspopup=menu],
3034
- [role=switch],
3035
- .gds-filter-chip)).disabled::placeholder, button:where(:not(.primary,
3036
- .secondary,
3037
- .ghost,
3038
- .danger,
3039
- .close,
3040
- .sg-table-sort,
3041
- .link,
3042
- [aria-haspopup=listbox],
3043
- [aria-haspopup=menu],
3044
- [role=switch],
3045
- .gds-filter-chip))[aria-disabled=true]::placeholder,
3046
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):disabled::placeholder,
3047
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link)).disabled::placeholder,
3048
- a.button:where(:not(.primary, .secondary, .ghost, .close, .link))[aria-disabled=true]::placeholder,
3049
- button.tertiary:disabled::placeholder,
3050
- button.tertiary.disabled::placeholder,
3051
- button.tertiary[aria-disabled=true]::placeholder,
3052
- a.button.tertiary:disabled::placeholder,
3053
- a.button.tertiary.disabled::placeholder,
3054
- a.button.tertiary[aria-disabled=true]::placeholder {
3055
- color: var(--text-disabled-color);
3056
- }
3057
-
3058
- button.primary,
3059
- input[type=submit],
3060
- button[type=submit]:not(.secondary,
3061
- .ghost,
3062
- .danger,
3063
- .close,
3064
- .link,
3065
- .gds-filter-chip),
3066
- input[type=submit]:not(.secondary, .ghost, .danger, .close, .link),
3067
- a.button.primary {
3068
- transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
3069
- background: rgb(0, 122, 199);
3070
- border-color: rgb(0, 122, 199);
3071
- color: #fff;
3072
- --color: #fff;
3073
- }
3074
- button.primary:not(:disabled, .disabled, [aria-disabled]):hover,
3075
- input[type=submit]:not(:disabled, .disabled, [aria-disabled]):hover,
3076
- button[type=submit]:not(.secondary,
3077
- .ghost,
3078
- .danger,
3079
- .close,
3080
- .link,
3081
- .gds-filter-chip):not(:disabled, .disabled, [aria-disabled]):hover,
3082
- input[type=submit]:not(.secondary, .ghost, .danger, .close, .link):not(:disabled, .disabled, [aria-disabled]):hover,
3083
- a.button.primary:not(:disabled, .disabled, [aria-disabled]):hover {
3084
- background-color: #199be3;
3085
- color: rgb(255, 255, 255);
3086
- --background: #199be3;
3087
- --color: rgb(255, 255, 255);
3088
- border-color: #199be3;
3089
- }
3090
- button.primary[aria-selected], button.primary:active, button.primary.active, button.primary.active:hover, button.primary:active:hover,
3091
- input[type=submit][aria-selected],
3092
- input[type=submit]:active,
3093
- input[type=submit].active,
3094
- input[type=submit].active:hover,
3095
- input[type=submit]:active:hover,
3096
- button[type=submit]:not(.secondary,
3097
- .ghost,
3098
- .danger,
3099
- .close,
3100
- .link,
3101
- .gds-filter-chip)[aria-selected],
3102
- button[type=submit]:not(.secondary,
3103
- .ghost,
3104
- .danger,
3105
- .close,
3106
- .link,
3107
- .gds-filter-chip):active,
3108
- button[type=submit]:not(.secondary,
3109
- .ghost,
3110
- .danger,
3111
- .close,
3112
- .link,
3113
- .gds-filter-chip).active,
3114
- button[type=submit]:not(.secondary,
3115
- .ghost,
3116
- .danger,
3117
- .close,
3118
- .link,
3119
- .gds-filter-chip).active:hover,
3120
- button[type=submit]:not(.secondary,
3121
- .ghost,
3122
- .danger,
3123
- .close,
3124
- .link,
3125
- .gds-filter-chip):active:hover,
3126
- input[type=submit]:not(.secondary, .ghost, .danger, .close, .link)[aria-selected],
3127
- input[type=submit]:not(.secondary, .ghost, .danger, .close, .link):active,
3128
- input[type=submit]:not(.secondary, .ghost, .danger, .close, .link).active,
3129
- input[type=submit]:not(.secondary, .ghost, .danger, .close, .link).active:hover,
3130
- input[type=submit]:not(.secondary, .ghost, .danger, .close, .link):active:hover,
3131
- a.button.primary[aria-selected],
3132
- a.button.primary:active,
3133
- a.button.primary.active,
3134
- a.button.primary.active:hover,
3135
- a.button.primary:active:hover {
3136
- background-color: rgb(0, 122, 199);
3137
- color: rgb(255, 255, 255);
3138
- --background: rgb(0, 122, 199);
3139
- --color: rgb(255, 255, 255);
3140
- border-color: rgb(0, 122, 199);
3141
- }
3142
- button.primary:focus-visible,
3143
- input[type=submit]:focus-visible,
3144
- button[type=submit]:not(.secondary,
3145
- .ghost,
3146
- .danger,
3147
- .close,
3148
- .link,
3149
- .gds-filter-chip):focus-visible,
3150
- input[type=submit]:not(.secondary, .ghost, .danger, .close, .link):focus-visible,
3151
- a.button.primary:focus-visible {
3152
- background-color: #199be3;
3153
- color: rgb(255, 255, 255);
3154
- --background: #199be3;
3155
- --color: rgb(255, 255, 255);
3156
- border-color: #199be3 !important;
3157
- }
3158
- button.primary:disabled, button.primary.disabled, button.primary[aria-disabled=true],
3159
- input[type=submit]:disabled,
3160
- input[type=submit].disabled,
3161
- input[type=submit][aria-disabled=true],
3162
- button[type=submit]:not(.secondary,
3163
- .ghost,
3164
- .danger,
3165
- .close,
3166
- .link,
3167
- .gds-filter-chip):disabled,
3168
- button[type=submit]:not(.secondary,
3169
- .ghost,
3170
- .danger,
3171
- .close,
3172
- .link,
3173
- .gds-filter-chip).disabled,
3174
- button[type=submit]:not(.secondary,
3175
- .ghost,
3176
- .danger,
3177
- .close,
3178
- .link,
3179
- .gds-filter-chip)[aria-disabled=true],
3180
- input[type=submit]:not(.secondary, .ghost, .danger, .close, .link):disabled,
3181
- input[type=submit]:not(.secondary, .ghost, .danger, .close, .link).disabled,
3182
- input[type=submit]:not(.secondary, .ghost, .danger, .close, .link)[aria-disabled=true],
3183
- a.button.primary:disabled,
3184
- a.button.primary.disabled,
3185
- a.button.primary[aria-disabled=true] {
3186
- background: var(--form-control-primary-bg-disabled) !important;
3187
- color: var(--text-primary-disabled-color) !important;
3188
- border-color: var(--border-primary-disabled-color) !important;
3189
- cursor: not-allowed;
3190
- }
3191
- button.primary:disabled::-moz-placeholder, button.primary.disabled::-moz-placeholder, button.primary[aria-disabled=true]::-moz-placeholder, input[type=submit]:disabled::-moz-placeholder, input[type=submit].disabled::-moz-placeholder, input[type=submit][aria-disabled=true]::-moz-placeholder, button[type=submit]:not(.secondary,
3192
- .ghost,
3193
- .danger,
3194
- .close,
3195
- .link,
3196
- .gds-filter-chip):disabled::-moz-placeholder, button[type=submit]:not(.secondary,
3197
- .ghost,
3198
- .danger,
3199
- .close,
3200
- .link,
3201
- .gds-filter-chip).disabled::-moz-placeholder, button[type=submit]:not(.secondary,
3202
- .ghost,
3203
- .danger,
3204
- .close,
3205
- .link,
3206
- .gds-filter-chip)[aria-disabled=true]::-moz-placeholder, input[type=submit]:not(.secondary, .ghost, .danger, .close, .link):disabled::-moz-placeholder, input[type=submit]:not(.secondary, .ghost, .danger, .close, .link).disabled::-moz-placeholder, input[type=submit]:not(.secondary, .ghost, .danger, .close, .link)[aria-disabled=true]::-moz-placeholder, a.button.primary:disabled::-moz-placeholder, a.button.primary.disabled::-moz-placeholder, a.button.primary[aria-disabled=true]::-moz-placeholder {
3207
- color: var(--text-disabled-color);
3208
- }
3209
- button.primary:disabled::placeholder, button.primary.disabled::placeholder, button.primary[aria-disabled=true]::placeholder,
3210
- input[type=submit]:disabled::placeholder,
3211
- input[type=submit].disabled::placeholder,
3212
- input[type=submit][aria-disabled=true]::placeholder,
3213
- button[type=submit]:not(.secondary,
3214
- .ghost,
3215
- .danger,
3216
- .close,
3217
- .link,
3218
- .gds-filter-chip):disabled::placeholder,
3219
- button[type=submit]:not(.secondary,
3220
- .ghost,
3221
- .danger,
3222
- .close,
3223
- .link,
3224
- .gds-filter-chip).disabled::placeholder,
3225
- button[type=submit]:not(.secondary,
3226
- .ghost,
3227
- .danger,
3228
- .close,
3229
- .link,
3230
- .gds-filter-chip)[aria-disabled=true]::placeholder,
3231
- input[type=submit]:not(.secondary, .ghost, .danger, .close, .link):disabled::placeholder,
3232
- input[type=submit]:not(.secondary, .ghost, .danger, .close, .link).disabled::placeholder,
3233
- input[type=submit]:not(.secondary, .ghost, .danger, .close, .link)[aria-disabled=true]::placeholder,
3234
- a.button.primary:disabled::placeholder,
3235
- a.button.primary.disabled::placeholder,
3236
- a.button.primary[aria-disabled=true]::placeholder {
3237
- color: var(--text-disabled-color);
3238
- }
3239
-
3240
- button.ghost,
3241
- .button.ghost {
3242
- transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
3243
- border-color: rgb(51, 51, 51);
3244
- color: rgb(51, 51, 51);
3245
- --color: rgb(51, 51, 51);
3246
- }
3247
- button.ghost:not(:disabled, .disabled, [aria-disabled]):hover,
3248
- .button.ghost:not(:disabled, .disabled, [aria-disabled]):hover {
3249
- background-color: rgb(51, 51, 51);
3250
- color: rgb(255, 255, 255);
3251
- --background: rgb(51, 51, 51);
3252
- --color: rgb(255, 255, 255);
3253
- border-color: rgb(51, 51, 51);
3254
- }
3255
- button.ghost[aria-selected], button.ghost:active, button.ghost.active, button.ghost.active:hover, button.ghost:active:hover,
3256
- .button.ghost[aria-selected],
3257
- .button.ghost:active,
3258
- .button.ghost.active,
3259
- .button.ghost.active:hover,
3260
- .button.ghost:active:hover {
3261
- background-color: rgb(51, 51, 51);
3262
- color: rgb(255, 255, 255);
3263
- --background: rgb(51, 51, 51);
3264
- --color: rgb(255, 255, 255);
3265
- border-color: rgb(51, 51, 51);
3266
- }
3267
- button.ghost[aria-selected]:hover, button.ghost.active:hover, button.ghost:active:hover,
3268
- .button.ghost[aria-selected]:hover,
3269
- .button.ghost.active:hover,
3270
- .button.ghost:active:hover {
3271
- opacity: 0.9;
3272
- }
3273
- button.ghost:focus-visible,
3274
- .button.ghost:focus-visible {
3275
- background-color: rgb(51, 51, 51);
3276
- color: rgb(255, 255, 255);
3277
- --background: rgb(51, 51, 51);
3278
- --color: rgb(255, 255, 255);
3279
- border-color: rgb(51, 51, 51) !important;
3280
- }
3281
- button.ghost:disabled, button.ghost.disabled, button.ghost[aria-disabled=true],
3282
- .button.ghost:disabled,
3283
- .button.ghost.disabled,
3284
- .button.ghost[aria-disabled=true] {
3285
- color: var(--text-disabled-color) !important;
3286
- border-color: var(--border-disabled-color) !important;
3287
- cursor: not-allowed;
3288
- }
3289
- button.ghost:disabled::-moz-placeholder, button.ghost.disabled::-moz-placeholder, button.ghost[aria-disabled=true]::-moz-placeholder, .button.ghost:disabled::-moz-placeholder, .button.ghost.disabled::-moz-placeholder, .button.ghost[aria-disabled=true]::-moz-placeholder {
3290
- color: var(--text-disabled-color);
3291
- }
3292
- button.ghost:disabled::placeholder, button.ghost.disabled::placeholder, button.ghost[aria-disabled=true]::placeholder,
3293
- .button.ghost:disabled::placeholder,
3294
- .button.ghost.disabled::placeholder,
3295
- .button.ghost[aria-disabled=true]::placeholder {
3296
- color: var(--text-disabled-color);
3297
- }
3298
-
3299
- button.icon,
3300
- .button.icon {
3301
- background-color: transparent;
3302
- border: 0.0625rem solid transparent;
3303
- padding: 0.625rem;
3304
- height: 2.75rem;
3305
- width: 2.75rem;
3306
- min-width: auto;
3307
- --color: var(--gds-ref-pallet-base800);
3308
- }
3309
- .form-group button.icon,
3310
- .form-group .button.icon {
3311
- margin-top: -0.625rem;
3312
- }
3313
- button.icon.small,
3314
- .button.icon.small {
3315
- height: 2rem;
3316
- width: 2rem;
3317
- padding: 0.4375rem;
3318
- line-height: 1.125rem;
3319
- }
3320
- button.icon svg,
3321
- .button.icon svg {
3322
- height: 1rem;
3323
- width: 1rem;
3324
- }
3325
- button.icon path,
3326
- button.icon line,
3327
- button.icon circle,
3328
- button.icon rect,
3329
- button.icon ellipse,
3330
- button.icon polyline,
3331
- button.icon text,
3332
- .button.icon path,
3333
- .button.icon line,
3334
- .button.icon circle,
3335
- .button.icon rect,
3336
- .button.icon ellipse,
3337
- .button.icon polyline,
3338
- .button.icon text {
3339
- fill: var(--gds-ref-pallet-base800);
3340
- stroke: var(--gds-ref-pallet-base800);
3341
- transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
3342
- }
3343
- button.icon:hover, button.icon.highlighted,
3344
- .button.icon:hover,
3345
- .button.icon.highlighted {
3346
- background-color: rgba(0, 0, 0, 0.1);
3347
- border-color: transparent;
3348
- }
3349
- button.icon:active, button.icon.highlighted:hover,
3350
- .button.icon:active,
3351
- .button.icon.highlighted:hover {
3352
- background-color: rgba(0, 0, 0, 0.2);
3353
- border-color: transparent;
3354
- }
3355
-
3356
- button.primary.danger,
3357
- .button.primary.danger,
3358
- button[type=submit].danger:not(.secondary, .ghost, .close, .link),
3359
- input[type=submit].danger:not(.secondary, .ghost, .close, .link) {
3360
- background: rgb(187, 0, 12);
3361
- border-color: rgb(187, 0, 12);
3362
- color: #fff;
3363
- --color: #fff;
3364
- transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
3365
- }
3366
- button.primary.danger:not(:disabled, .disabled, [aria-disabled]):hover,
3367
- .button.primary.danger:not(:disabled, .disabled, [aria-disabled]):hover,
3368
- button[type=submit].danger:not(.secondary, .ghost, .close, .link):not(:disabled, .disabled, [aria-disabled]):hover,
3369
- input[type=submit].danger:not(.secondary, .ghost, .close, .link):not(:disabled, .disabled, [aria-disabled]):hover {
3370
- background-color: rgb(216, 26, 26);
3371
- color: rgb(255, 255, 255);
3372
- --background: rgb(216, 26, 26);
3373
- --color: rgb(255, 255, 255);
3374
- border-color: rgb(216, 26, 26);
3375
- }
3376
- button.primary.danger[aria-selected], button.primary.danger:active, button.primary.danger.active, button.primary.danger.active:hover, button.primary.danger:active:hover,
3377
- .button.primary.danger[aria-selected],
3378
- .button.primary.danger:active,
3379
- .button.primary.danger.active,
3380
- .button.primary.danger.active:hover,
3381
- .button.primary.danger:active:hover,
3382
- button[type=submit].danger:not(.secondary, .ghost, .close, .link)[aria-selected],
3383
- button[type=submit].danger:not(.secondary, .ghost, .close, .link):active,
3384
- button[type=submit].danger:not(.secondary, .ghost, .close, .link).active,
3385
- button[type=submit].danger:not(.secondary, .ghost, .close, .link).active:hover,
3386
- button[type=submit].danger:not(.secondary, .ghost, .close, .link):active:hover,
3387
- input[type=submit].danger:not(.secondary, .ghost, .close, .link)[aria-selected],
3388
- input[type=submit].danger:not(.secondary, .ghost, .close, .link):active,
3389
- input[type=submit].danger:not(.secondary, .ghost, .close, .link).active,
3390
- input[type=submit].danger:not(.secondary, .ghost, .close, .link).active:hover,
3391
- input[type=submit].danger:not(.secondary, .ghost, .close, .link):active:hover {
3392
- background-color: rgb(187, 0, 12);
3393
- color: rgb(255, 255, 255);
3394
- --background: rgb(187, 0, 12);
3395
- --color: rgb(255, 255, 255);
3396
- border-color: rgb(187, 0, 12);
3397
- }
3398
- button.primary.danger[aria-selected]:hover, button.primary.danger.active:hover, button.primary.danger:active:hover,
3399
- .button.primary.danger[aria-selected]:hover,
3400
- .button.primary.danger.active:hover,
3401
- .button.primary.danger:active:hover,
3402
- button[type=submit].danger:not(.secondary, .ghost, .close, .link)[aria-selected]:hover,
3403
- button[type=submit].danger:not(.secondary, .ghost, .close, .link).active:hover,
3404
- button[type=submit].danger:not(.secondary, .ghost, .close, .link):active:hover,
3405
- input[type=submit].danger:not(.secondary, .ghost, .close, .link)[aria-selected]:hover,
3406
- input[type=submit].danger:not(.secondary, .ghost, .close, .link).active:hover,
3407
- input[type=submit].danger:not(.secondary, .ghost, .close, .link):active:hover {
3408
- opacity: 0.9;
3409
- }
3410
- button.primary.danger:focus:not(:focus-visible),
3411
- .button.primary.danger:focus:not(:focus-visible),
3412
- button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus:not(:focus-visible),
3413
- input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus:not(:focus-visible) {
3414
- box-shadow: none;
3415
- outline: 0;
3416
- }
3417
- button.primary.danger:focus, button.primary.danger:focus-visible,
3418
- .button.primary.danger:focus,
3419
- .button.primary.danger:focus-visible,
3420
- button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus,
3421
- button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus-visible,
3422
- input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus,
3423
- input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus-visible {
3424
- outline-color: var(--gds-sys-color-focus-outline);
3425
- outline-style: solid;
3426
- outline-width: 0.125rem;
3427
- outline-offset: 0.125rem;
3428
- }
3429
- button.primary.danger:disabled, button.primary.danger.disabled, button.primary.danger[aria-disabled=true],
3430
- .button.primary.danger:disabled,
3431
- .button.primary.danger.disabled,
3432
- .button.primary.danger[aria-disabled=true],
3433
- button[type=submit].danger:not(.secondary, .ghost, .close, .link):disabled,
3434
- button[type=submit].danger:not(.secondary, .ghost, .close, .link).disabled,
3435
- button[type=submit].danger:not(.secondary, .ghost, .close, .link)[aria-disabled=true],
3436
- input[type=submit].danger:not(.secondary, .ghost, .close, .link):disabled,
3437
- input[type=submit].danger:not(.secondary, .ghost, .close, .link).disabled,
3438
- input[type=submit].danger:not(.secondary, .ghost, .close, .link)[aria-disabled=true] {
3439
- background: var(--form-control-primary-bg-disabled) !important;
3440
- color: var(--text-primary-disabled-color) !important;
3441
- border-color: var(--border-primary-disabled-color) !important;
3442
- cursor: not-allowed;
3443
- }
3444
- button.primary.danger:disabled::-moz-placeholder, button.primary.danger.disabled::-moz-placeholder, button.primary.danger[aria-disabled=true]::-moz-placeholder, .button.primary.danger:disabled::-moz-placeholder, .button.primary.danger.disabled::-moz-placeholder, .button.primary.danger[aria-disabled=true]::-moz-placeholder, button[type=submit].danger:not(.secondary, .ghost, .close, .link):disabled::-moz-placeholder, button[type=submit].danger:not(.secondary, .ghost, .close, .link).disabled::-moz-placeholder, button[type=submit].danger:not(.secondary, .ghost, .close, .link)[aria-disabled=true]::-moz-placeholder, input[type=submit].danger:not(.secondary, .ghost, .close, .link):disabled::-moz-placeholder, input[type=submit].danger:not(.secondary, .ghost, .close, .link).disabled::-moz-placeholder, input[type=submit].danger:not(.secondary, .ghost, .close, .link)[aria-disabled=true]::-moz-placeholder {
3445
- color: var(--text-disabled-color);
3446
- }
3447
- button.primary.danger:disabled::placeholder, button.primary.danger.disabled::placeholder, button.primary.danger[aria-disabled=true]::placeholder,
3448
- .button.primary.danger:disabled::placeholder,
3449
- .button.primary.danger.disabled::placeholder,
3450
- .button.primary.danger[aria-disabled=true]::placeholder,
3451
- button[type=submit].danger:not(.secondary, .ghost, .close, .link):disabled::placeholder,
3452
- button[type=submit].danger:not(.secondary, .ghost, .close, .link).disabled::placeholder,
3453
- button[type=submit].danger:not(.secondary, .ghost, .close, .link)[aria-disabled=true]::placeholder,
3454
- input[type=submit].danger:not(.secondary, .ghost, .close, .link):disabled::placeholder,
3455
- input[type=submit].danger:not(.secondary, .ghost, .close, .link).disabled::placeholder,
3456
- input[type=submit].danger:not(.secondary, .ghost, .close, .link)[aria-disabled=true]::placeholder {
3457
- color: var(--text-disabled-color);
3458
- }
3459
-
3460
- button.danger:where(:not(.primary,
3461
- .tertiary,
3462
- .ghost,
3463
- .close,
3464
- .sg-table-sort,
3465
- .link,
3466
- [aria-haspopup=listbox],
3467
- [aria-haspopup=menu],
3468
- [role=switch])),
3469
- a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)),
3470
- button.secondary.danger,
3471
- a.button.secondary.danger,
3472
- input.danger:is([type=button], [type=reset]),
3473
- button[type=button].danger:where(:not(.primary,
3474
- .tertiary,
3475
- .ghost,
3476
- .danger,
3477
- .close,
3478
- .link,
3479
- .gds-filter-chip [aria-haspopup=listbox],
3480
- [aria-haspopup=menu])),
3481
- button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)) {
3482
- color: rgb(187, 0, 12);
3483
- --color: rgb(187, 0, 12);
3484
- border-color: transparent;
3485
- transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
3486
- }
3487
- button.danger:where(:not(.primary,
3488
- .tertiary,
3489
- .ghost,
3490
- .close,
3491
- .sg-table-sort,
3492
- .link,
3493
- [aria-haspopup=listbox],
3494
- [aria-haspopup=menu],
3495
- [role=switch])):not(:disabled, .disabled, [aria-disabled]):hover,
3496
- a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):not(:disabled, .disabled, [aria-disabled]):hover,
3497
- button.secondary.danger:not(:disabled, .disabled, [aria-disabled]):hover,
3498
- a.button.secondary.danger:not(:disabled, .disabled, [aria-disabled]):hover,
3499
- input.danger:is([type=button], [type=reset]):not(:disabled, .disabled, [aria-disabled]):hover,
3500
- button[type=button].danger:where(:not(.primary,
3501
- .tertiary,
3502
- .ghost,
3503
- .danger,
3504
- .close,
3505
- .link,
3506
- .gds-filter-chip [aria-haspopup=listbox],
3507
- [aria-haspopup=menu])):not(:disabled, .disabled, [aria-disabled]):hover,
3508
- button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):not(:disabled, .disabled, [aria-disabled]):hover {
3509
- background-color: rgb(216, 26, 26);
3510
- color: rgb(255, 255, 255);
3511
- --background: rgb(216, 26, 26);
3512
- --color: rgb(255, 255, 255);
3513
- border-color: rgb(216, 26, 26);
3514
- }
3515
- button.danger:where(:not(.primary,
3516
- .tertiary,
3517
- .ghost,
3518
- .close,
3519
- .sg-table-sort,
3520
- .link,
3521
- [aria-haspopup=listbox],
3522
- [aria-haspopup=menu],
3523
- [role=switch]))[aria-selected], button.danger:where(:not(.primary,
3524
- .tertiary,
3525
- .ghost,
3526
- .close,
3527
- .sg-table-sort,
3528
- .link,
3529
- [aria-haspopup=listbox],
3530
- [aria-haspopup=menu],
3531
- [role=switch])):active, button.danger:where(:not(.primary,
3532
- .tertiary,
3533
- .ghost,
3534
- .close,
3535
- .sg-table-sort,
3536
- .link,
3537
- [aria-haspopup=listbox],
3538
- [aria-haspopup=menu],
3539
- [role=switch])).active, button.danger:where(:not(.primary,
3540
- .tertiary,
3541
- .ghost,
3542
- .close,
3543
- .sg-table-sort,
3544
- .link,
3545
- [aria-haspopup=listbox],
3546
- [aria-haspopup=menu],
3547
- [role=switch])).active:hover, button.danger:where(:not(.primary,
3548
- .tertiary,
3549
- .ghost,
3550
- .close,
3551
- .sg-table-sort,
3552
- .link,
3553
- [aria-haspopup=listbox],
3554
- [aria-haspopup=menu],
3555
- [role=switch])):active:hover,
3556
- a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link))[aria-selected],
3557
- a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):active,
3558
- a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)).active,
3559
- a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)).active:hover,
3560
- a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):active:hover,
3561
- button.secondary.danger[aria-selected],
3562
- button.secondary.danger:active,
3563
- button.secondary.danger.active,
3564
- button.secondary.danger.active:hover,
3565
- button.secondary.danger:active:hover,
3566
- a.button.secondary.danger[aria-selected],
3567
- a.button.secondary.danger:active,
3568
- a.button.secondary.danger.active,
3569
- a.button.secondary.danger.active:hover,
3570
- a.button.secondary.danger:active:hover,
3571
- input.danger:is([type=button], [type=reset])[aria-selected],
3572
- input.danger:is([type=button], [type=reset]):active,
3573
- input.danger:is([type=button], [type=reset]).active,
3574
- input.danger:is([type=button], [type=reset]).active:hover,
3575
- input.danger:is([type=button], [type=reset]):active:hover,
3576
- button[type=button].danger:where(:not(.primary,
3577
- .tertiary,
3578
- .ghost,
3579
- .danger,
3580
- .close,
3581
- .link,
3582
- .gds-filter-chip [aria-haspopup=listbox],
3583
- [aria-haspopup=menu]))[aria-selected],
3584
- button[type=button].danger:where(:not(.primary,
3585
- .tertiary,
3586
- .ghost,
3587
- .danger,
3588
- .close,
3589
- .link,
3590
- .gds-filter-chip [aria-haspopup=listbox],
3591
- [aria-haspopup=menu])):active,
3592
- button[type=button].danger:where(:not(.primary,
3593
- .tertiary,
3594
- .ghost,
3595
- .danger,
3596
- .close,
3597
- .link,
3598
- .gds-filter-chip [aria-haspopup=listbox],
3599
- [aria-haspopup=menu])).active,
3600
- button[type=button].danger:where(:not(.primary,
3601
- .tertiary,
3602
- .ghost,
3603
- .danger,
3604
- .close,
3605
- .link,
3606
- .gds-filter-chip [aria-haspopup=listbox],
3607
- [aria-haspopup=menu])).active:hover,
3608
- button[type=button].danger:where(:not(.primary,
3609
- .tertiary,
3610
- .ghost,
3611
- .danger,
3612
- .close,
3613
- .link,
3614
- .gds-filter-chip [aria-haspopup=listbox],
3615
- [aria-haspopup=menu])):active:hover,
3616
- button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link))[aria-selected],
3617
- button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):active,
3618
- button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)).active,
3619
- button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)).active:hover,
3620
- button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):active:hover {
3621
- background-color: rgb(187, 0, 12);
3622
- color: rgb(255, 255, 255);
3623
- --background: rgb(187, 0, 12);
3624
- --color: rgb(255, 255, 255);
3625
- border-color: rgb(187, 0, 12);
3626
- }
3627
- button.danger:where(:not(.primary,
3628
- .tertiary,
3629
- .ghost,
3630
- .close,
3631
- .sg-table-sort,
3632
- .link,
3633
- [aria-haspopup=listbox],
3634
- [aria-haspopup=menu],
3635
- [role=switch]))[aria-selected]:hover, button.danger:where(:not(.primary,
3636
- .tertiary,
3637
- .ghost,
3638
- .close,
3639
- .sg-table-sort,
3640
- .link,
3641
- [aria-haspopup=listbox],
3642
- [aria-haspopup=menu],
3643
- [role=switch])).active:hover, button.danger:where(:not(.primary,
3644
- .tertiary,
3645
- .ghost,
3646
- .close,
3647
- .sg-table-sort,
3648
- .link,
3649
- [aria-haspopup=listbox],
3650
- [aria-haspopup=menu],
3651
- [role=switch])):active:hover,
3652
- a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link))[aria-selected]:hover,
3653
- a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)).active:hover,
3654
- a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):active:hover,
3655
- button.secondary.danger[aria-selected]:hover,
3656
- button.secondary.danger.active:hover,
3657
- button.secondary.danger:active:hover,
3658
- a.button.secondary.danger[aria-selected]:hover,
3659
- a.button.secondary.danger.active:hover,
3660
- a.button.secondary.danger:active:hover,
3661
- input.danger:is([type=button], [type=reset])[aria-selected]:hover,
3662
- input.danger:is([type=button], [type=reset]).active:hover,
3663
- input.danger:is([type=button], [type=reset]):active:hover,
3664
- button[type=button].danger:where(:not(.primary,
3665
- .tertiary,
3666
- .ghost,
3667
- .danger,
3668
- .close,
3669
- .link,
3670
- .gds-filter-chip [aria-haspopup=listbox],
3671
- [aria-haspopup=menu]))[aria-selected]:hover,
3672
- button[type=button].danger:where(:not(.primary,
3673
- .tertiary,
3674
- .ghost,
3675
- .danger,
3676
- .close,
3677
- .link,
3678
- .gds-filter-chip [aria-haspopup=listbox],
3679
- [aria-haspopup=menu])).active:hover,
3680
- button[type=button].danger:where(:not(.primary,
3681
- .tertiary,
3682
- .ghost,
3683
- .danger,
3684
- .close,
3685
- .link,
3686
- .gds-filter-chip [aria-haspopup=listbox],
3687
- [aria-haspopup=menu])):active:hover,
3688
- button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link))[aria-selected]:hover,
3689
- button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)).active:hover,
3690
- button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):active:hover {
3691
- opacity: 0.9;
3692
- }
3693
- button.danger:where(:not(.primary,
3694
- .tertiary,
3695
- .ghost,
3696
- .close,
3697
- .sg-table-sort,
3698
- .link,
3699
- [aria-haspopup=listbox],
3700
- [aria-haspopup=menu],
3701
- [role=switch])):focus:not(:focus-visible),
3702
- a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus:not(:focus-visible),
3703
- button.secondary.danger:focus:not(:focus-visible),
3704
- a.button.secondary.danger:focus:not(:focus-visible),
3705
- input.danger:is([type=button], [type=reset]):focus:not(:focus-visible),
3706
- button[type=button].danger:where(:not(.primary,
3707
- .tertiary,
3708
- .ghost,
3709
- .danger,
3710
- .close,
3711
- .link,
3712
- .gds-filter-chip [aria-haspopup=listbox],
3713
- [aria-haspopup=menu])):focus:not(:focus-visible),
3714
- button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus:not(:focus-visible) {
3715
- box-shadow: none;
3716
- outline: 0;
3717
- }
3718
- button.danger:where(:not(.primary,
3719
- .tertiary,
3720
- .ghost,
3721
- .close,
3722
- .sg-table-sort,
3723
- .link,
3724
- [aria-haspopup=listbox],
3725
- [aria-haspopup=menu],
3726
- [role=switch])):focus, button.danger:where(:not(.primary,
3727
- .tertiary,
3728
- .ghost,
3729
- .close,
3730
- .sg-table-sort,
3731
- .link,
3732
- [aria-haspopup=listbox],
3733
- [aria-haspopup=menu],
3734
- [role=switch])):focus-visible,
3735
- a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus,
3736
- a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus-visible,
3737
- button.secondary.danger:focus,
3738
- button.secondary.danger:focus-visible,
3739
- a.button.secondary.danger:focus,
3740
- a.button.secondary.danger:focus-visible,
3741
- input.danger:is([type=button], [type=reset]):focus,
3742
- input.danger:is([type=button], [type=reset]):focus-visible,
3743
- button[type=button].danger:where(:not(.primary,
3744
- .tertiary,
3745
- .ghost,
3746
- .danger,
3747
- .close,
3748
- .link,
3749
- .gds-filter-chip [aria-haspopup=listbox],
3750
- [aria-haspopup=menu])):focus,
3751
- button[type=button].danger:where(:not(.primary,
3752
- .tertiary,
3753
- .ghost,
3754
- .danger,
3755
- .close,
3756
- .link,
3757
- .gds-filter-chip [aria-haspopup=listbox],
3758
- [aria-haspopup=menu])):focus-visible,
3759
- button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
3760
- button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus-visible {
3761
- outline-color: var(--gds-sys-color-focus-outline);
3762
- outline-style: solid;
3763
- outline-width: 0.125rem;
3764
- outline-offset: 0.125rem;
3765
- }
3766
-
3767
- button.danger:where(:not(.primary,
3768
- .secondary,
3769
- .ghost,
3770
- .close,
3771
- .sg-table-sort,
3772
- .link,
3773
- [aria-haspopup=listbox],
3774
- [aria-haspopup=menu],
3775
- [role=switch])),
3776
- a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)),
3777
- button.tertiary.danger,
3778
- a.button.tertiary.danger {
3779
- color: rgb(187, 0, 12);
3780
- --color: rgb(187, 0, 12);
3781
- border-color: transparent;
3782
- transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
3783
- }
3784
- button.danger:where(:not(.primary,
3785
- .secondary,
3786
- .ghost,
3787
- .close,
3788
- .sg-table-sort,
3789
- .link,
3790
- [aria-haspopup=listbox],
3791
- [aria-haspopup=menu],
3792
- [role=switch])):not(:disabled, .disabled, [aria-disabled]):hover,
3793
- a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):not(:disabled, .disabled, [aria-disabled]):hover,
3794
- button.tertiary.danger:not(:disabled, .disabled, [aria-disabled]):hover,
3795
- a.button.tertiary.danger:not(:disabled, .disabled, [aria-disabled]):hover {
3796
- background-color: rgb(216, 26, 26);
3797
- color: rgb(255, 255, 255);
3798
- --background: rgb(216, 26, 26);
3799
- --color: rgb(255, 255, 255);
3800
- border-color: rgb(216, 26, 26);
3801
- }
3802
- button.danger:where(:not(.primary,
3803
- .secondary,
3804
- .ghost,
3805
- .close,
3806
- .sg-table-sort,
3807
- .link,
3808
- [aria-haspopup=listbox],
3809
- [aria-haspopup=menu],
3810
- [role=switch]))[aria-selected], button.danger:where(:not(.primary,
3811
- .secondary,
3812
- .ghost,
3813
- .close,
3814
- .sg-table-sort,
3815
- .link,
3816
- [aria-haspopup=listbox],
3817
- [aria-haspopup=menu],
3818
- [role=switch])):active, button.danger:where(:not(.primary,
3819
- .secondary,
3820
- .ghost,
3821
- .close,
3822
- .sg-table-sort,
3823
- .link,
3824
- [aria-haspopup=listbox],
3825
- [aria-haspopup=menu],
3826
- [role=switch])).active, button.danger:where(:not(.primary,
3827
- .secondary,
3828
- .ghost,
3829
- .close,
3830
- .sg-table-sort,
3831
- .link,
3832
- [aria-haspopup=listbox],
3833
- [aria-haspopup=menu],
3834
- [role=switch])).active:hover, button.danger:where(:not(.primary,
3835
- .secondary,
3836
- .ghost,
3837
- .close,
3838
- .sg-table-sort,
3839
- .link,
3840
- [aria-haspopup=listbox],
3841
- [aria-haspopup=menu],
3842
- [role=switch])):active:hover,
3843
- a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link))[aria-selected],
3844
- a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):active,
3845
- a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)).active,
3846
- a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)).active:hover,
3847
- a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):active:hover,
3848
- button.tertiary.danger[aria-selected],
3849
- button.tertiary.danger:active,
3850
- button.tertiary.danger.active,
3851
- button.tertiary.danger.active:hover,
3852
- button.tertiary.danger:active:hover,
3853
- a.button.tertiary.danger[aria-selected],
3854
- a.button.tertiary.danger:active,
3855
- a.button.tertiary.danger.active,
3856
- a.button.tertiary.danger.active:hover,
3857
- a.button.tertiary.danger:active:hover {
3858
- background-color: rgb(187, 0, 12);
3859
- color: rgb(255, 255, 255);
3860
- --background: rgb(187, 0, 12);
3861
- --color: rgb(255, 255, 255);
3862
- border-color: rgb(187, 0, 12);
3863
- }
3864
- button.danger:where(:not(.primary,
3865
- .secondary,
3866
- .ghost,
3867
- .close,
3868
- .sg-table-sort,
3869
- .link,
3870
- [aria-haspopup=listbox],
3871
- [aria-haspopup=menu],
3872
- [role=switch]))[aria-selected]:hover, button.danger:where(:not(.primary,
3873
- .secondary,
3874
- .ghost,
3875
- .close,
3876
- .sg-table-sort,
3877
- .link,
3878
- [aria-haspopup=listbox],
3879
- [aria-haspopup=menu],
3880
- [role=switch])).active:hover, button.danger:where(:not(.primary,
3881
- .secondary,
3882
- .ghost,
3883
- .close,
3884
- .sg-table-sort,
3885
- .link,
3886
- [aria-haspopup=listbox],
3887
- [aria-haspopup=menu],
3888
- [role=switch])):active:hover,
3889
- a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link))[aria-selected]:hover,
3890
- a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)).active:hover,
3891
- a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):active:hover,
3892
- button.tertiary.danger[aria-selected]:hover,
3893
- button.tertiary.danger.active:hover,
3894
- button.tertiary.danger:active:hover,
3895
- a.button.tertiary.danger[aria-selected]:hover,
3896
- a.button.tertiary.danger.active:hover,
3897
- a.button.tertiary.danger:active:hover {
3898
- opacity: 0.9;
3899
- }
3900
- button.danger:where(:not(.primary,
3901
- .secondary,
3902
- .ghost,
3903
- .close,
3904
- .sg-table-sort,
3905
- .link,
3906
- [aria-haspopup=listbox],
3907
- [aria-haspopup=menu],
3908
- [role=switch])):focus:not(:focus-visible),
3909
- a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus:not(:focus-visible),
3910
- button.tertiary.danger:focus:not(:focus-visible),
3911
- a.button.tertiary.danger:focus:not(:focus-visible) {
3912
- box-shadow: none;
3913
- outline: 0;
3914
- }
3915
- button.danger:where(:not(.primary,
3916
- .secondary,
3917
- .ghost,
3918
- .close,
3919
- .sg-table-sort,
3920
- .link,
3921
- [aria-haspopup=listbox],
3922
- [aria-haspopup=menu],
3923
- [role=switch])):focus, button.danger:where(:not(.primary,
3924
- .secondary,
3925
- .ghost,
3926
- .close,
3927
- .sg-table-sort,
3928
- .link,
3929
- [aria-haspopup=listbox],
3930
- [aria-haspopup=menu],
3931
- [role=switch])):focus-visible,
3932
- a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus,
3933
- a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus-visible,
3934
- button.tertiary.danger:focus,
3935
- button.tertiary.danger:focus-visible,
3936
- a.button.tertiary.danger:focus,
3937
- a.button.tertiary.danger:focus-visible {
3938
- outline-color: var(--gds-sys-color-focus-outline);
3939
- outline-style: solid;
3940
- outline-width: 0.125rem;
3941
- outline-offset: 0.125rem;
3942
- }
3943
-
3944
- .close {
3945
- /* smartphones, touchscreens */
3946
- font-size: 0;
3947
- background: hsla(var(--background-hsl), 0);
3948
- border: 0;
3949
- border-radius: 50%;
3950
- content: "";
3951
- cursor: pointer;
3952
- display: flex;
3953
- font-family: inherit;
3954
- height: 2rem;
3955
- position: relative;
3956
- width: 2rem;
3957
- }
3958
- @media (hover: none) and (pointer: coarse) {
3959
- .close:not(:disabled):not(.disabled) {
3960
- padding: 0.375rem;
3961
- height: 2.75rem;
3962
- width: 2.75rem;
3963
- }
3964
- .close:not(:disabled):not(.disabled) > i {
3965
- background: var(--gds-ref-pallet-base200);
3966
- height: 2rem;
3967
- width: 2rem;
3968
- border-radius: 50%;
3969
- position: relative;
3970
- --color: var(--gds-sys-color-base);
3971
- }
3972
- .close:not(:disabled):not(.disabled) > div::after, .close:not(:disabled):not(.disabled) > div::before {
3973
- height: 0.789375rem;
3974
- width: 0.130625rem;
3975
- top: 0.625rem;
3976
- }
3977
- }
3978
- .close:focus:not(:focus-visible) {
3979
- box-shadow: none;
3980
- outline: 0;
3981
- }
3982
- .close:focus, .close:focus-visible i {
3983
- outline-color: var(--gds-sys-color-focus-outline);
3984
- outline-style: solid;
3985
- outline-width: 0.125rem;
3986
- outline-offset: 0.125rem;
3987
- }
3988
- .close > i {
3989
- border-radius: var(--gds-sys-shape-corner-round);
3990
- display: block;
3991
- width: 100%;
3992
- height: 100%;
3993
- }
3994
- .close > i::after, .close > i::before {
3995
- background: var(--gds-sys-color-font);
3996
- content: "";
3997
- display: block;
3998
- height: 0.789375rem;
3999
- width: 0.130625rem;
4000
- border-radius: 0.5px;
4001
- left: calc(50% - 0.0625rem);
4002
- position: absolute;
4003
- top: 0.625rem;
4004
- }
4005
- .close > i::after {
4006
- transform: rotateZ(45deg);
4007
- }
4008
- .close > i::before {
4009
- transform: rotateZ(-45deg);
4010
- }
4011
- .close > svg path {
4012
- fill: var(--gds-sys-color-font);
4013
- }
4014
- @media (min-width: 48em) {
4015
- .close:not(:disabled, .disabled):hover > i {
4016
- background: color-mix(in srgb, var(--gds-sys-color-font) 10%, transparent);
4017
- }
4018
- .close:not(:disabled, .disabled):hover:active > i {
4019
- background: color-mix(in srgb, var(--gds-sys-color-font) 20%, transparent);
4020
- }
4021
- }
4022
-
4023
- @layer base, reset, transitional-styles;
4024
- @layer transitional-styles {
4025
- :host([open]) dialog {
4026
- box-sizing: border-box;
4027
- opacity: 1;
4028
- transform: translate3d(0, 0, 0);
4029
- visibility: visible;
4030
- }
4031
- header {
4032
- display: flex;
4033
- }
4034
- @media (min-width: 36em) {
4035
- header {
4036
- display: none;
4037
- }
4038
- }
4039
- header button.close {
4040
- margin: 0;
4041
- padding: 0;
4042
- }
4043
- header h2 {
4044
- flex-grow: 1;
4045
- font-weight: 400;
4046
- line-height: 1.5;
4047
- margin: 0.25rem 0 0 0.75rem;
4048
- }
4049
- dialog {
4050
- --z-index: var(--sg-z-index-popover);
4051
- max-height: calc(100% - 1rem);
4052
- background-color: var(--sg-popover-background);
4053
- display: flex;
4054
- flex-direction: column;
4055
- justify-content: flex-end;
4056
- opacity: 0;
4057
- position: fixed;
4058
- visibility: hidden;
4059
- z-index: var(--z-index);
4060
- color: var(--text-primary-color);
4061
- inset: 0;
4062
- overflow: hidden;
4063
- padding: 0;
4064
- right: 0;
4065
- }
4066
- @media (max-width: 35.98em) {
4067
- dialog {
4068
- border-top: solid var(--sg-border-width) var(--sg-border-color);
4069
- --border-color: var(--sg-border-color);
4070
- padding-bottom: 0.5rem;
4071
- border-radius: 1rem 1rem 0 0;
4072
- bottom: 0;
4073
- box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, 0.1);
4074
- left: 0;
4075
- transition: all 300ms ease-in-out;
4076
- width: 100%;
4077
- }
4078
- }
4079
- @media (min-width: 36em) {
4080
- dialog {
4081
- padding-bottom: 0;
4082
- border: solid var(--sg-border-width) var(--sg-border-color);
4083
- --border-color: var(--text-primary-color);
4084
- --sg-border-color: var(--text-primary-color);
4085
- border-radius: var(--sg-border-radius);
4086
- max-height: 500px;
4087
- box-shadow: var(--sg-popover-box-shadow);
4088
- min-width: 90px;
4089
- position: absolute;
4090
- }
4091
- }
4092
- dialog > [role=listbox] {
4093
- width: 100%;
4094
- overflow-y: auto;
4095
- }
4096
- dialog.active {
4097
- opacity: 1;
4098
- visibility: visible;
4099
- }
4100
- dialog .close {
4101
- margin: 0.25rem;
4102
- flex-shrink: 0;
4103
- align-self: flex-end;
4104
- }
4105
- @media (min-width: 36em) {
4106
- dialog .close {
4107
- display: none;
4108
- }
4109
- }
4110
- @media (max-width: 35.98em) {
4111
- dialog {
4112
- border: 1px solid var(--border-color);
4113
- border-radius: 0.25rem;
4114
- max-height: 80svh;
4115
- padding-bottom: 0;
4116
- }
4117
- dialog.v-kb-visible {
4118
- inset-block-end: auto;
4119
- max-height: 50svh;
4120
- top: 1rem;
4121
- }
4122
- }
4123
- @media (min-width: 36em) {
4124
- dialog {
4125
- inset: auto;
4126
- position: fixed;
4127
- }
4128
- }
4129
- dialog::backdrop {
4130
- background-color: rgba(0, 0, 0, 0.2);
4131
- display: block;
4132
- position: fixed;
4133
- }
4134
- @media (min-width: 36em) {
4135
- dialog::backdrop {
4136
- opacity: 0;
4137
- }
4138
- }
4139
- }`;
4140
-
4141
- // libs/core/src/primitives/popover/popover.trans.styles.ts
4142
- function register10() {
4143
- TransitionalStyles.instance.register("gds-popover", popover_trans_styles_default.toString());
4144
- }
4145
-
4146
- // libs/core/src/utils/helpers/custom-element-scoping.ts
4147
- import { html as litHtml } from "lit";
4148
- import { customElement } from "lit/decorators.js";
4149
- var VER_SUFFIX = "-633bb8";
4150
- var elementLookupTable = /* @__PURE__ */ new Map();
4151
- var templateCache = /* @__PURE__ */ new WeakMap();
4152
- function applyElementScoping(strings, ...values) {
4153
- let modstrings = templateCache.get(strings);
4154
- if (!modstrings) {
4155
- modstrings = replaceTags(strings);
4156
- modstrings.raw = replaceTags(strings.raw);
4157
- templateCache.set(strings, modstrings);
4158
- }
4159
- return [modstrings, ...values];
4160
- }
4161
- var replaceTags = (inStr) => inStr.map((s) => {
4162
- for (const [key, value] of elementLookupTable.entries()) {
4163
- s = s.replace(new RegExp(`${key}(?![-a-z])`, "mg"), value);
4164
- }
4165
- return s;
4166
- });
4167
- function htmlTemplateTagFactory(extendedTag) {
4168
- return (strings, ...values) => {
4169
- if (globalThis.GDS_DISABLE_VERSIONED_ELEMENTS) {
4170
- return extendedTag(strings, ...values);
4171
- }
4172
- const [modstrings, ...modvalues] = applyElementScoping(strings, ...values);
4173
- return extendedTag(modstrings, ...modvalues);
4174
- };
4175
- }
4176
- var html = htmlTemplateTagFactory(litHtml);
4177
-
4178
- // libs/core/src/utils/transitional-styles/transitional-styles.ts
4179
- var registerTransitionalStyles = () => {
4180
- register7();
4181
- register3();
4182
- register9();
4183
- register10();
4184
- register();
4185
- register8();
4186
- register2();
4187
- register4();
4188
- register6();
4189
- register5();
4190
- };
4191
- function supportsConstructedStylesheets() {
4192
- try {
4193
- new CSSStyleSheet();
4194
- return true;
4195
- } catch {
4196
- return false;
4197
- }
4198
- }
4199
- var TransitionalStyles = class _TransitionalStyles {
4200
- constructor() {
4201
- this.sheets = /* @__PURE__ */ new Map();
4202
- this.elements = /* @__PURE__ */ new Map();
4203
- this.sheetsLegacy = /* @__PURE__ */ new Map();
4204
- this.useLegacyStylesheets = !supportsConstructedStylesheets();
4205
- this.chlorophyllTokens = new CSSStyleSheet();
4206
- }
4207
- static get instance() {
4208
- if (!globalThis.__gdsTransitionalStyles?.[VER_SUFFIX])
4209
- globalThis.__gdsTransitionalStyles = {
4210
- ...globalThis.__gdsTransitionalStyles,
4211
- [VER_SUFFIX]: new _TransitionalStyles()
4212
- };
4213
- return globalThis.__gdsTransitionalStyles[VER_SUFFIX];
4214
- }
4215
- apply(element, styleKey) {
4216
- if (!element.shadowRoot)
4217
- return;
4218
- if (this.useLegacyStylesheets) {
4219
- this.elements.set(styleKey, element);
4220
- this.applyToElementLegacy(styleKey);
4221
- return;
4222
- }
4223
- const sheet = this.sheets.get(styleKey);
4224
- if (!sheet)
4225
- return;
4226
- this.elements.set(styleKey, element);
4227
- this.applyToElement(styleKey, sheet);
4228
- }
4229
- applyToElement(styleKey, sheet) {
4230
- const element = this.elements.get(styleKey);
4231
- if (!element || !element.shadowRoot)
4232
- return;
4233
- element.shadowRoot.adoptedStyleSheets = [this.chlorophyllTokens, sheet];
4234
- element._isUsingTransitionalStyles = true;
4235
- }
4236
- // This is a fallback for browsers that dosen't support constructed stylesheets.
4237
- // Primarily, this is here to support Safari/iOS 15.x
4238
- //
4239
- // To work around the lack of Constructed Stylesheets, we use a regular <style>
4240
- // element instead. The _tStyles property needs to be added to the render template
4241
- // of each component.
4242
- //
4243
- // Lit itself will also add a <style> element to the shadow root in these browsers,
4244
- // meaning that we have to override the base styles added from the static style
4245
- // property in this case. This is what the `all: revert` rule is for.
4246
- // We can use cascade layers to ensure that the revert rule overides the base styles
4247
- // but not the transitional styles.
4248
- // `@layer base, reset, transitional-styles;`
4249
- applyToElementLegacy(styleKey) {
4250
- const sheet = this.sheetsLegacy.get(styleKey);
4251
- const element = this.elements.get(styleKey);
4252
- if (!element)
4253
- return;
4254
- element._tStyles = html2`<style>
4255
- @layer reset {
4256
- *:not(style, [gds-element]) {
4257
- all: revert;
4258
- }
4259
- }
4260
- ${unsafeHTML(sheet)}
4261
- </style>`;
4262
- element._isUsingTransitionalStyles = true;
4263
- }
4264
- register(name, styles) {
4265
- if (this.useLegacyStylesheets) {
4266
- this.sheetsLegacy.set(name, styles);
4267
- this.applyToElementLegacy(name);
4268
- return;
4269
- }
4270
- const sheet = new CSSStyleSheet();
4271
- sheet.replaceSync(styles);
4272
- this.sheets.set(name, sheet);
4273
- this.applyToElement(name, sheet);
4274
- }
4275
- };
1
+ import {
2
+ TransitionalStyles,
3
+ registerTransitionalStyles
4
+ } from "./chunks/chunk.QONSFT2N.js";
5
+ import "./chunks/chunk.VOYMQ322.js";
6
+ import "./chunks/chunk.5VURDMKE.js";
4276
7
  export {
4277
8
  TransitionalStyles,
4278
9
  registerTransitionalStyles