@danske/sapphire-css 16.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -0
- package/README.md +57 -0
- package/build/themes/cjs/default-dark.d.ts +3 -0
- package/build/themes/cjs/default-dark.js +8 -0
- package/build/themes/cjs/default.d.ts +3 -0
- package/build/themes/cjs/default.js +8 -0
- package/build/themes/cjs/index.d.ts +1 -0
- package/build/themes/cjs/index.js +16 -0
- package/build/themes/cjs/june-dark.d.ts +4 -0
- package/build/themes/cjs/june-dark.js +9 -0
- package/build/themes/cjs/june.d.ts +4 -0
- package/build/themes/cjs/june.js +9 -0
- package/build/themes/esm/default-dark.d.ts +3 -0
- package/build/themes/esm/default-dark.js +3 -0
- package/build/themes/esm/default.d.ts +3 -0
- package/build/themes/esm/default.js +3 -0
- package/build/themes/esm/index.d.ts +1 -0
- package/build/themes/esm/index.js +1 -0
- package/build/themes/esm/june-dark.d.ts +4 -0
- package/build/themes/esm/june-dark.js +4 -0
- package/build/themes/esm/june.d.ts +4 -0
- package/build/themes/esm/june.js +4 -0
- package/components/accordion/accordion.module.css.d.ts +19 -0
- package/components/avatar/avatar.module.css.d.ts +27 -0
- package/components/backdrop/backdrop.module.css +8 -0
- package/components/backdrop/backdrop.module.css.d.ts +5 -0
- package/components/badge/badge.module.css +121 -0
- package/components/badge/badge.module.css.d.ts +16 -0
- package/components/button/button.module.css +278 -0
- package/components/button/button.module.css.d.ts +23 -0
- package/components/buttonGroup/buttonGroup.module.css +24 -0
- package/components/buttonGroup/buttonGroup.module.css.d.ts +10 -0
- package/components/calendar/calendar.module.css +406 -0
- package/components/calendar/calendar.module.css.d.ts +47 -0
- package/components/checkbox/checkbox.module.css +182 -0
- package/components/checkbox/checkbox.module.css.d.ts +18 -0
- package/components/contextualHelp/contextualHelp.module.css +35 -0
- package/components/contextualHelp/contextualHelp.module.css.d.ts +7 -0
- package/components/dateField/dateField.module.css +239 -0
- package/components/dateField/dateField.module.css.d.ts +22 -0
- package/components/dialog/dialog.module.css +81 -0
- package/components/dialog/dialog.module.css.d.ts +15 -0
- package/components/feedbackMessage/feedbackMessage.module.css +42 -0
- package/components/feedbackMessage/feedbackMessage.module.css.d.ts +10 -0
- package/components/field/field.module.css.d.ts +17 -0
- package/components/fieldGroup/fieldGroup.module.css +64 -0
- package/components/fieldGroup/fieldGroup.module.css.d.ts +12 -0
- package/components/heading/heading.module.css +143 -0
- package/components/heading/heading.module.css.d.ts +12 -0
- package/components/icon/icon.module.css +14 -0
- package/components/icon/icon.module.css.d.ts +8 -0
- package/components/iconButton/iconButton.module.css +225 -0
- package/components/iconButton/iconButton.module.css.d.ts +19 -0
- package/components/label/label.module.css.d.ts +9 -0
- package/components/link/link.module.css +35 -0
- package/components/link/link.module.css.d.ts +10 -0
- package/components/list/list.module.css +160 -0
- package/components/list/list.module.css.d.ts +19 -0
- package/components/listbox/listbox.module.css +211 -0
- package/components/listbox/listbox.module.css.d.ts +21 -0
- package/components/notificationBadge/notificationBadge.module.css.d.ts +16 -0
- package/components/pagination/pagination.module.css +44 -0
- package/components/pagination/pagination.module.css.d.ts +8 -0
- package/components/panel/panel.module.css +87 -0
- package/components/panel/panel.module.css.d.ts +18 -0
- package/components/paragraph/paragraph.module.css +35 -0
- package/components/paragraph/paragraph.module.css.d.ts +8 -0
- package/components/popover/popover.module.css +39 -0
- package/components/popover/popover.module.css.d.ts +8 -0
- package/components/radio/radio.module.css +117 -0
- package/components/radio/radio.module.css.d.ts +14 -0
- package/components/searchField/searchField.module.css +148 -0
- package/components/searchField/searchField.module.css.d.ts +14 -0
- package/components/segmentedControl/segmentedControl.module.css +140 -0
- package/components/segmentedControl/segmentedControl.module.css.d.ts +16 -0
- package/components/select/select.module.css +166 -0
- package/components/select/select.module.css.d.ts +19 -0
- package/components/skeleton/skeleton.module.css +52 -0
- package/components/skeleton/skeleton.module.css.d.ts +9 -0
- package/components/spinner/spinner.module.css.d.ts +14 -0
- package/components/surface/surface.module.css +19 -0
- package/components/surface/surface.module.css.d.ts +5 -0
- package/components/switch/switch.module.css +170 -0
- package/components/switch/switch.module.css.d.ts +13 -0
- package/components/table/table.module.css +303 -0
- package/components/table/table.module.css.d.ts +37 -0
- package/components/tabs/tabs.module.css +83 -0
- package/components/tabs/tabs.module.css.d.ts +17 -0
- package/components/text/text.module.css.d.ts +21 -0
- package/components/textField/textField.module.css +208 -0
- package/components/textField/textField.module.css.d.ts +22 -0
- package/components/toast/toast.module.css.d.ts +12 -0
- package/components/tooltip/tooltip.module.css +41 -0
- package/components/tooltip/tooltip.module.css.d.ts +6 -0
- package/package.json +68 -0
- package/themes/default-dark.css +2 -0
- package/themes/default-dark.d.ts +3 -0
- package/themes/default-dark.js +8 -0
- package/themes/default.css +2 -0
- package/themes/default.d.ts +3 -0
- package/themes/default.js +8 -0
- package/themes/index.d.ts +1 -0
- package/themes/index.js +16 -0
- package/themes/june-dark.css +3 -0
- package/themes/june-dark.d.ts +4 -0
- package/themes/june-dark.js +9 -0
- package/themes/june.css +3 -0
- package/themes/june.d.ts +4 -0
- package/themes/june.js +9 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
.sapphire-text-field {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
font-family: var(--sapphire-text-field-font-name);
|
|
5
|
+
width: var(--sapphire-text-field-size-width-control);
|
|
6
|
+
|
|
7
|
+
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
8
|
+
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
9
|
+
* occurs for bold fonts on dark backgrounds but depending on the font, it
|
|
10
|
+
* can happen in other contexts as well.
|
|
11
|
+
*
|
|
12
|
+
* These do not do anything except in webkit browsers & firefox on OSX.
|
|
13
|
+
*
|
|
14
|
+
* For more details see:
|
|
15
|
+
* - https://azuredevops/Main/WCCJ/_git/sapphire/pullRequest/212710?path=%2Fpackages%2Fcss%2Fcomponents%2Fbutton%2Fbutton.module.css&discussionId=1507702&_a=files
|
|
16
|
+
* - https://usabilitypost.com/2012/11/05/stop-fixing-font-smoothing/
|
|
17
|
+
*/
|
|
18
|
+
-webkit-font-smoothing: antialiased;
|
|
19
|
+
-moz-osx-font-smoothing: grayscale;
|
|
20
|
+
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.sapphire-text-field__label-container {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: var(--sapphire-text-field-size-spacing-label-horizontal);
|
|
28
|
+
min-height: var(--sapphire-text-field-size-height-label);
|
|
29
|
+
margin-bottom: var(--sapphire-text-field-size-spacing-label-vertical);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.sapphire-text-field__label-text {
|
|
33
|
+
font-size: var(--sapphire-text-field-size-font-label);
|
|
34
|
+
font-weight: var(--sapphire-text-field-size-font-weight-label);
|
|
35
|
+
line-height: var(--sapphire-text-field-size-line-height-label);
|
|
36
|
+
color: var(--sapphire-text-field-color-label);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.sapphire-text-field__input-container {
|
|
40
|
+
box-shadow: inset 0px 0px 0px var(--sapphire-text-field-size-width-border)
|
|
41
|
+
var(--sapphire-text-field-color-border-default);
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
border-radius: var(--sapphire-text-field-size-radius);
|
|
46
|
+
cursor: text;
|
|
47
|
+
color: var(--sapphire-text-field-color-content);
|
|
48
|
+
font-size: var(--sapphire-text-field-size-font-content);
|
|
49
|
+
height: var(--sapphire-text-field-size-height-field);
|
|
50
|
+
background-color: var(--sapphire-text-field-color-background);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.sapphire-text-field__input {
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 100%;
|
|
57
|
+
margin: 0;
|
|
58
|
+
padding: 0 var(--sapphire-text-field-size-spacing-control-horizontal);
|
|
59
|
+
line-height: var(--sapphire-text-field-size-line-height-content);
|
|
60
|
+
|
|
61
|
+
font-family: inherit;
|
|
62
|
+
font-size: inherit;
|
|
63
|
+
font-weight: var(--sapphire-text-field-size-font-weight-input);
|
|
64
|
+
|
|
65
|
+
caret-color: var(--sapphire-text-field-color-caret);
|
|
66
|
+
color: inherit;
|
|
67
|
+
|
|
68
|
+
background-color: transparent;
|
|
69
|
+
border: none;
|
|
70
|
+
outline: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Placeholder
|
|
75
|
+
*/
|
|
76
|
+
.sapphire-text-field__input::placeholder {
|
|
77
|
+
opacity: 1; /* some browsers set a lower than 1 opacity */
|
|
78
|
+
color: var(--sapphire-text-field-color-placeholder);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Single line
|
|
83
|
+
* (this supports a prefix/postfix)
|
|
84
|
+
*/
|
|
85
|
+
.sapphire-text-field:not(.sapphire-text-field--multiline)
|
|
86
|
+
.sapphire-text-field__input-container {
|
|
87
|
+
gap: var(--sapphire-text-field-size-spacing-control-gap);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Prefix/postfix
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
.sapphire-text-field .sapphire-text-field__affix {
|
|
95
|
+
color: var(--sapphire-text-field-color-affix);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.sapphire-text-field .sapphire-text-field__affix--icon {
|
|
99
|
+
width: var(--sapphire-text-field-size-affix-icon-width);
|
|
100
|
+
height: var(--sapphire-text-field-size-affix-icon-height);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.sapphire-text-field--with-prefix .sapphire-text-field__input-container {
|
|
104
|
+
padding-left: var(--sapphire-text-field-size-spacing-control-horizontal);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.sapphire-text-field--with-prefix .sapphire-text-field__input {
|
|
108
|
+
padding-left: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.sapphire-text-field--with-postfix .sapphire-text-field__input-container {
|
|
112
|
+
padding-right: var(--sapphire-text-field-size-spacing-control-horizontal);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.sapphire-text-field--with-postfix .sapphire-text-field__input {
|
|
116
|
+
padding-right: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Multiline
|
|
121
|
+
* (this does not support a prefix/postfix)
|
|
122
|
+
*/
|
|
123
|
+
.sapphire-text-field--multiline .sapphire-text-field__input-container {
|
|
124
|
+
display: inline-block;
|
|
125
|
+
width: 100%;
|
|
126
|
+
line-height: 0;
|
|
127
|
+
height: unset;
|
|
128
|
+
padding: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.sapphire-text-field--multiline .sapphire-text-field__input {
|
|
132
|
+
resize: none;
|
|
133
|
+
width: 100%;
|
|
134
|
+
padding: var(--sapphire-text-field-size-spacing-control-vertical)
|
|
135
|
+
var(--sapphire-text-field-size-spacing-control-horizontal);
|
|
136
|
+
scroll-padding-bottom: var(
|
|
137
|
+
--sapphire-text-field-size-spacing-control-vertical
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Resizable
|
|
143
|
+
*/
|
|
144
|
+
.sapphire-text-field--multiline.sapphire-text-field--resizable
|
|
145
|
+
.sapphire-text-field__input {
|
|
146
|
+
resize: vertical;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Note
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
.sapphire-text-field__note-row {
|
|
154
|
+
display: flex;
|
|
155
|
+
justify-content: space-between;
|
|
156
|
+
font-size: var(--sapphire-text-field-size-font-note);
|
|
157
|
+
line-height: var(--sapphire-text-field-size-line-height-note);
|
|
158
|
+
color: var(--sapphire-text-field-color-note-default);
|
|
159
|
+
margin-top: var(--sapphire-text-field-size-spacing-note-vertical);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.sapphire-text-field__counter {
|
|
163
|
+
color: var(--sapphire-text-field-color-counter-default);
|
|
164
|
+
padding-left: var(--sapphire-text-field-size-spacing-note-horizontal);
|
|
165
|
+
margin-left: auto;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.sapphire-text-field__note {
|
|
169
|
+
display: block;
|
|
170
|
+
font-size: var(--sapphire-text-field-size-font-note);
|
|
171
|
+
line-height: var(--sapphire-text-field-size-line-height-note);
|
|
172
|
+
color: var(--sapphire-text-field-color-note-default);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.sapphire-text-field--error .sapphire-text-field__note {
|
|
176
|
+
color: var(--sapphire-text-field-color-note-error);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.sapphire-text-field--error .sapphire-text-field__input-container {
|
|
180
|
+
box-shadow: inset 0px 0px 0px var(--sapphire-text-field-size-width-border)
|
|
181
|
+
var(--sapphire-text-field-color-border-error);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.sapphire-text-field--counter-error .sapphire-text-field__counter {
|
|
185
|
+
color: var(--sapphire-text-field-color-counter-error);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Focus
|
|
190
|
+
*/
|
|
191
|
+
.sapphire-text-field.is-focus .sapphire-text-field__input-container,
|
|
192
|
+
.sapphire-text-field .sapphire-text-field__input-container:focus-within,
|
|
193
|
+
.sapphire-text-field--error .sapphire-text-field__input-container:focus-within {
|
|
194
|
+
box-shadow: inset 0px 0px 0px var(--sapphire-text-field-size-focus-ring)
|
|
195
|
+
var(--sapphire-text-field-color-focus-ring);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Disabled
|
|
200
|
+
*/
|
|
201
|
+
.sapphire-text-field.is-disabled {
|
|
202
|
+
opacity: var(--sapphire-text-field-opacity-disabled);
|
|
203
|
+
cursor: not-allowed;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.sapphire-text-field.is-disabled .sapphire-text-field__input {
|
|
207
|
+
cursor: not-allowed;
|
|
208
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const styles: {
|
|
2
|
+
readonly "sapphire-text-field": string;
|
|
3
|
+
readonly "sapphire-text-field__label-container": string;
|
|
4
|
+
readonly "sapphire-text-field__label-text": string;
|
|
5
|
+
readonly "sapphire-text-field__input-container": string;
|
|
6
|
+
readonly "sapphire-text-field__input": string;
|
|
7
|
+
readonly "sapphire-text-field--multiline": string;
|
|
8
|
+
readonly "sapphire-text-field__affix": string;
|
|
9
|
+
readonly "sapphire-text-field__affix--icon": string;
|
|
10
|
+
readonly "sapphire-text-field--with-prefix": string;
|
|
11
|
+
readonly "sapphire-text-field--with-postfix": string;
|
|
12
|
+
readonly "sapphire-text-field--resizable": string;
|
|
13
|
+
readonly "sapphire-text-field__note-row": string;
|
|
14
|
+
readonly "sapphire-text-field__counter": string;
|
|
15
|
+
readonly "sapphire-text-field__note": string;
|
|
16
|
+
readonly "sapphire-text-field--error": string;
|
|
17
|
+
readonly "sapphire-text-field--counter-error": string;
|
|
18
|
+
readonly "is-focus": string;
|
|
19
|
+
readonly "is-disabled": string;
|
|
20
|
+
};
|
|
21
|
+
export = styles;
|
|
22
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const styles: {
|
|
2
|
+
readonly "sapphire-toast-container": string;
|
|
3
|
+
readonly "sapphire-toast": string;
|
|
4
|
+
readonly "sapphire-toast--entering": string;
|
|
5
|
+
readonly "fade-in-up": string;
|
|
6
|
+
readonly "sapphire-toast--queued": string;
|
|
7
|
+
readonly "sapphire-toast--exiting": string;
|
|
8
|
+
readonly "fade-out": string;
|
|
9
|
+
readonly "sapphire-toast__content": string;
|
|
10
|
+
};
|
|
11
|
+
export = styles;
|
|
12
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@keyframes fade-in {
|
|
2
|
+
from {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
opacity: 1;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sapphire-tooltip {
|
|
11
|
+
background-color: var(--sapphire-tooltip-color-background);
|
|
12
|
+
box-shadow: var(--sapphire-tooltip-shadow);
|
|
13
|
+
color: var(--sapphire-tooltip-color-content);
|
|
14
|
+
line-height: var(--sapphire-tooltip-size-line-height);
|
|
15
|
+
max-width: var(--sapphire-tooltip-size-width-max);
|
|
16
|
+
border-radius: var(--sapphire-tooltip-size-radius);
|
|
17
|
+
font-family: var(--sapphire-tooltip-font-name);
|
|
18
|
+
font-weight: var(--sapphire-tooltip-font-weight);
|
|
19
|
+
font-size: var(--sapphire-tooltip-size-font);
|
|
20
|
+
padding: var(--sapphire-tooltip-size-spacing-vertical)
|
|
21
|
+
var(--sapphire-tooltip-size-spacing-horizontal);
|
|
22
|
+
/* if implemented as focusable, we don't want the outline because this is not
|
|
23
|
+
* an an interactive element in itself */
|
|
24
|
+
outline: none;
|
|
25
|
+
|
|
26
|
+
animation: fade-in var(--sapphire-tooltip-time-transition) ease-in-out;
|
|
27
|
+
|
|
28
|
+
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
29
|
+
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
30
|
+
* occurs for bold fonts on dark backgrounds but depending on the font, it
|
|
31
|
+
* can happen in other contexts as well.
|
|
32
|
+
*
|
|
33
|
+
* These do not do anything except in webkit browsers & firefox on OSX.
|
|
34
|
+
*
|
|
35
|
+
* For more details see:
|
|
36
|
+
* - https://azuredevops/Main/WCCJ/_git/sapphire/pullRequest/212710?path=%2Fpackages%2Fcss%2Fcomponents%2Fbutton%2Fbutton.module.css&discussionId=1507702&_a=files
|
|
37
|
+
* - https://usabilitypost.com/2012/11/05/stop-fixing-font-smoothing/
|
|
38
|
+
*/
|
|
39
|
+
-webkit-font-smoothing: antialiased;
|
|
40
|
+
-moz-osx-font-smoothing: grayscale;
|
|
41
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@danske/sapphire-css",
|
|
3
|
+
"version": "16.3.0",
|
|
4
|
+
"sideEffects": false,
|
|
5
|
+
"description": "CSS implementation of the Sapphire Design System from Danske Bank A/S",
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
7
|
+
"files": [
|
|
8
|
+
"/components/**/*.css",
|
|
9
|
+
"/components/**/*.d.ts",
|
|
10
|
+
"/themes/**/*.css",
|
|
11
|
+
"/themes/**/*.js",
|
|
12
|
+
"/themes/**/*.d.ts",
|
|
13
|
+
"/build"
|
|
14
|
+
],
|
|
15
|
+
"exports": {
|
|
16
|
+
"./themes": {
|
|
17
|
+
"require": "./build/themes/cjs/index.js",
|
|
18
|
+
"import": "./build/themes/esm/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./themes/*": {
|
|
21
|
+
"style": "./themes/*",
|
|
22
|
+
"sass": "./themes/*",
|
|
23
|
+
"require": "./build/themes/cjs/*.js",
|
|
24
|
+
"import": "./build/themes/esm/*.js"
|
|
25
|
+
},
|
|
26
|
+
"./components/*": "./components/*"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "yarn run build:types && yarn run build:themes",
|
|
30
|
+
"test": "yarn run test:stylelint",
|
|
31
|
+
"test:stylelint": "stylelint components/**/*.module.css",
|
|
32
|
+
"watch:types": "yarn run types -- -w",
|
|
33
|
+
"storybook": "start-storybook -p 6007",
|
|
34
|
+
"build:storybook": "build-storybook --docs -o dist",
|
|
35
|
+
"build:types": "tcm -p /**/*.module.css",
|
|
36
|
+
"build:themes": "yarn build:themes:esm && yarn build:themes:cjs",
|
|
37
|
+
"build:themes:esm": "tsc --module ES2020 --outDir build/themes/esm && tsc --module ES2020 --outDir themes",
|
|
38
|
+
"build:themes:cjs": "tsc --module CommonJS --outDir build/themes/cjs && tsc --module CommonJS",
|
|
39
|
+
"prepare": "yarn run build"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@babel/core": "^7.20.12",
|
|
43
|
+
"@babel/preset-env": "^7.20.2",
|
|
44
|
+
"@babel/preset-react": "^7.18.6",
|
|
45
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
46
|
+
"@danske/sapphire-react": "^2.1.4",
|
|
47
|
+
"@danske/sapphire-icons": "^1.1.0",
|
|
48
|
+
"@storybook/addon-essentials": "^6.5.13",
|
|
49
|
+
"@storybook/addon-links": "^6.5.13",
|
|
50
|
+
"@storybook/addons": "^6.5.13",
|
|
51
|
+
"@storybook/html": "^6.5.13",
|
|
52
|
+
"@storybook/theming": "^6.5.13",
|
|
53
|
+
"babel-loader": "^8.2.2",
|
|
54
|
+
"css-loader": "^5.2.4",
|
|
55
|
+
"identity-obj-proxy": "^3.0.0",
|
|
56
|
+
"react": "16.14.0",
|
|
57
|
+
"storybook-addon-themes": "^6.1.0",
|
|
58
|
+
"storybook-css-modules": "^1.0.8",
|
|
59
|
+
"stylelint": "15.2.0",
|
|
60
|
+
"stylelint-value-no-unknown-custom-properties": "4.0.0",
|
|
61
|
+
"style-loader": "^2.0.0",
|
|
62
|
+
"typed-css-modules": "0.6.5",
|
|
63
|
+
"typescript": "~4.6.4"
|
|
64
|
+
},
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"@danske/sapphire-design-tokens": "^19.0.0"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
require("@danske/sapphire-design-tokens/build/themes/default-dark/assets/fonts/danske/fontFace.css");
|
|
7
|
+
var tokens_module_css_1 = __importDefault(require("@danske/sapphire-design-tokens/build/themes/default-dark/css/tokens.module.css"));
|
|
8
|
+
exports["default"] = tokens_module_css_1["default"]['sapphire-theme-default-dark'];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
require("@danske/sapphire-design-tokens/build/themes/default/assets/fonts/danske/fontFace.css");
|
|
7
|
+
var tokens_module_css_1 = __importDefault(require("@danske/sapphire-design-tokens/build/themes/default/css/tokens.module.css"));
|
|
8
|
+
exports["default"] = tokens_module_css_1["default"]['sapphire-theme-default'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as tokens } from '@danske/sapphire-design-tokens/build/themes';
|
package/themes/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
exports.__esModule = true;
|
|
14
|
+
exports.tokens = void 0;
|
|
15
|
+
var themes_1 = require("@danske/sapphire-design-tokens/build/themes");
|
|
16
|
+
__createBinding(exports, themes_1, "default", "tokens");
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
@import '~@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/fira/fontFace.css';
|
|
2
|
+
@import '~@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/playfair/fontFace.css';
|
|
3
|
+
@import '~@danske/sapphire-design-tokens/build/themes/june-dark/css/tokens.css';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
require("@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/fira/fontFace.css");
|
|
7
|
+
require("@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/playfair/fontFace.css");
|
|
8
|
+
var tokens_module_css_1 = __importDefault(require("@danske/sapphire-design-tokens/build/themes/june-dark/css/tokens.module.css"));
|
|
9
|
+
exports["default"] = tokens_module_css_1["default"]['sapphire-theme-june-dark'];
|
package/themes/june.css
ADDED
package/themes/june.d.ts
ADDED
package/themes/june.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
require("@danske/sapphire-design-tokens/build/themes/june/assets/fonts/fira/fontFace.css");
|
|
7
|
+
require("@danske/sapphire-design-tokens/build/themes/june/assets/fonts/playfair/fontFace.css");
|
|
8
|
+
var tokens_module_css_1 = __importDefault(require("@danske/sapphire-design-tokens/build/themes/june/css/tokens.module.css"));
|
|
9
|
+
exports["default"] = tokens_module_css_1["default"]['sapphire-theme-june'];
|