@dnanpm/ui-components 0.5.0 → 0.7.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/README.md +3 -1
- package/dist/components/Accordion/Accordion.css +4 -4
- package/dist/components/Accordion/Accordion.module.css.cjs +3 -3
- package/dist/components/Accordion/Accordion.module.css.js +3 -3
- package/dist/components/AccordionItem/AccordionItem.css +19 -19
- package/dist/components/AccordionItem/AccordionItem.module.css.cjs +11 -11
- package/dist/components/AccordionItem/AccordionItem.module.css.js +11 -11
- package/dist/components/Breadcrumb/Breadcrumb.css +11 -12
- package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +6 -6
- package/dist/components/Breadcrumb/Breadcrumb.module.css.js +6 -6
- package/dist/components/Button/Button.cjs +3 -1
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.css +33 -33
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +3 -1
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.module.css.cjs +11 -11
- package/dist/components/Button/Button.module.css.js +11 -11
- package/dist/components/Footer/Footer.cjs +272 -0
- package/dist/components/Footer/Footer.cjs.map +1 -0
- package/dist/components/Footer/Footer.css +466 -0
- package/dist/components/Footer/Footer.d.ts +3 -0
- package/dist/components/Footer/Footer.d.ts.map +1 -0
- package/dist/components/Footer/Footer.js +272 -0
- package/dist/components/Footer/Footer.js.map +1 -0
- package/dist/components/Footer/Footer.module.css.cjs +80 -0
- package/dist/components/Footer/Footer.module.css.cjs.map +1 -0
- package/dist/components/Footer/Footer.module.css.js +80 -0
- package/dist/components/Footer/Footer.module.css.js.map +1 -0
- package/dist/components/Footer/Footer.types.d.ts +128 -0
- package/dist/components/Footer/Footer.types.d.ts.map +1 -0
- package/dist/components/Footer/Footer.utils.cjs +41 -0
- package/dist/components/Footer/Footer.utils.cjs.map +1 -0
- package/dist/components/Footer/Footer.utils.d.ts +13 -0
- package/dist/components/Footer/Footer.utils.d.ts.map +1 -0
- package/dist/components/Footer/Footer.utils.js +41 -0
- package/dist/components/Footer/Footer.utils.js.map +1 -0
- package/dist/components/Footer/assets/app-store-badge.svg.cjs +4 -0
- package/dist/components/Footer/assets/app-store-badge.svg.cjs.map +1 -0
- package/dist/components/Footer/assets/app-store-badge.svg.js +5 -0
- package/dist/components/Footer/assets/app-store-badge.svg.js.map +1 -0
- package/dist/components/Footer/assets/google-play-badge.svg.cjs +4 -0
- package/dist/components/Footer/assets/google-play-badge.svg.cjs.map +1 -0
- package/dist/components/Footer/assets/google-play-badge.svg.js +5 -0
- package/dist/components/Footer/assets/google-play-badge.svg.js.map +1 -0
- package/dist/components/Footer/index.d.ts +3 -0
- package/dist/components/Footer/index.d.ts.map +1 -0
- package/dist/components/Hero/Hero.cjs +31 -26
- package/dist/components/Hero/Hero.cjs.map +1 -1
- package/dist/components/Hero/Hero.css +96 -103
- package/dist/components/Hero/Hero.d.ts +1 -1
- package/dist/components/Hero/Hero.d.ts.map +1 -1
- package/dist/components/Hero/Hero.js +32 -27
- package/dist/components/Hero/Hero.js.map +1 -1
- package/dist/components/Hero/Hero.module.css.cjs +17 -19
- package/dist/components/Hero/Hero.module.css.cjs.map +1 -1
- package/dist/components/Hero/Hero.module.css.js +17 -19
- package/dist/components/Hero/Hero.module.css.js.map +1 -1
- package/dist/components/Hero/Hero.types.d.ts +9 -8
- package/dist/components/Hero/Hero.types.d.ts.map +1 -1
- package/dist/components/Hero/Hero.utils.cjs +5 -7
- package/dist/components/Hero/Hero.utils.cjs.map +1 -1
- package/dist/components/Hero/Hero.utils.d.ts +2 -2
- package/dist/components/Hero/Hero.utils.d.ts.map +1 -1
- package/dist/components/Hero/Hero.utils.js +5 -7
- package/dist/components/Hero/Hero.utils.js.map +1 -1
- package/dist/components/IconButton/IconButton.cjs +21 -5
- package/dist/components/IconButton/IconButton.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.css +87 -83
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.js +22 -6
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/IconButton/IconButton.module.css.cjs +9 -10
- package/dist/components/IconButton/IconButton.module.css.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.module.css.js +9 -10
- package/dist/components/IconButton/IconButton.module.css.js.map +1 -1
- package/dist/components/IconButton/IconButton.types.d.ts +15 -10
- package/dist/components/IconButton/IconButton.types.d.ts.map +1 -1
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/Label/Label.css +13 -8
- package/dist/components/Label/Label.module.css.cjs +7 -7
- package/dist/components/Label/Label.module.css.js +7 -7
- package/dist/components/MainNavigation/MainNavigation.cjs +1110 -0
- package/dist/components/MainNavigation/MainNavigation.cjs.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.css +946 -0
- package/dist/components/MainNavigation/MainNavigation.d.ts +3 -0
- package/dist/components/MainNavigation/MainNavigation.d.ts.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.js +1110 -0
- package/dist/components/MainNavigation/MainNavigation.js.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.module.css.cjs +74 -0
- package/dist/components/MainNavigation/MainNavigation.module.css.cjs.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.module.css.js +75 -0
- package/dist/components/MainNavigation/MainNavigation.module.css.js.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.types.d.ts +149 -0
- package/dist/components/MainNavigation/MainNavigation.types.d.ts.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.utils.cjs +168 -0
- package/dist/components/MainNavigation/MainNavigation.utils.cjs.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.utils.d.ts +29 -0
- package/dist/components/MainNavigation/MainNavigation.utils.d.ts.map +1 -0
- package/dist/components/MainNavigation/MainNavigation.utils.js +168 -0
- package/dist/components/MainNavigation/MainNavigation.utils.js.map +1 -0
- package/dist/components/MainNavigation/index.d.ts +3 -0
- package/dist/components/MainNavigation/index.d.ts.map +1 -0
- package/dist/components/Notification/Notification.css +14 -14
- package/dist/components/Notification/Notification.module.css.cjs +9 -9
- package/dist/components/Notification/Notification.module.css.js +9 -9
- package/dist/components/Pictograph/Pictograph.css +69 -57
- package/dist/components/Pictograph/Pictograph.module.css.cjs +11 -11
- package/dist/components/Pictograph/Pictograph.module.css.js +11 -11
- package/dist/components/Pictograph/Pictograph.types.d.ts +2 -2
- package/dist/components/Pictograph/PictographItem.cjs +15 -4
- package/dist/components/Pictograph/PictographItem.cjs.map +1 -1
- package/dist/components/Pictograph/PictographItem.css +26 -23
- package/dist/components/Pictograph/PictographItem.d.ts.map +1 -1
- package/dist/components/Pictograph/PictographItem.js +15 -4
- package/dist/components/Pictograph/PictographItem.js.map +1 -1
- package/dist/components/Pictograph/PictographItem.module.css.cjs +3 -3
- package/dist/components/Pictograph/PictographItem.module.css.js +3 -3
- package/dist/components/Quote/Quote.cjs +32 -0
- package/dist/components/Quote/Quote.cjs.map +1 -0
- package/dist/components/Quote/Quote.css +95 -0
- package/dist/components/Quote/Quote.d.ts +3 -0
- package/dist/components/Quote/Quote.d.ts.map +1 -0
- package/dist/components/Quote/Quote.js +32 -0
- package/dist/components/Quote/Quote.js.map +1 -0
- package/dist/components/Quote/Quote.module.css.cjs +22 -0
- package/dist/components/Quote/Quote.module.css.cjs.map +1 -0
- package/dist/components/Quote/Quote.module.css.js +22 -0
- package/dist/components/Quote/Quote.module.css.js.map +1 -0
- package/dist/components/Quote/Quote.types.d.ts +12 -0
- package/dist/components/Quote/Quote.types.d.ts.map +1 -0
- package/dist/components/Quote/index.d.ts +3 -0
- package/dist/components/Quote/index.d.ts.map +1 -0
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/utils/elevation.css +20 -17
- package/dist/styles/utils/elevation.module.css.cjs +4 -4
- package/dist/styles/utils/elevation.module.css.js +4 -4
- package/dist/styles/utils/focus.css +23 -14
- package/dist/styles/utils/focus.module.css.cjs +6 -3
- package/dist/styles/utils/focus.module.css.cjs.map +1 -1
- package/dist/styles/utils/focus.module.css.js +7 -4
- package/dist/styles/utils/focus.module.css.js.map +1 -1
- package/dist/styles/utils/overlay.css +37 -0
- package/dist/styles/utils/overlay.module.css.cjs +13 -0
- package/dist/styles/utils/overlay.module.css.cjs.map +1 -0
- package/dist/styles/utils/overlay.module.css.js +13 -0
- package/dist/styles/utils/overlay.module.css.js.map +1 -0
- package/dist/styles/utils/text-decoration.css +8 -1
- package/dist/styles/utils/text-decoration.module.css.cjs +5 -2
- package/dist/styles/utils/text-decoration.module.css.cjs.map +1 -1
- package/dist/styles/utils/text-decoration.module.css.js +6 -3
- package/dist/styles/utils/text-decoration.module.css.js.map +1 -1
- package/dist/styles.css +141 -92
- package/package.json +2 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './overlay.css';
|
|
2
|
+
const overlayStrong = "_overlayStrong_1w2h3_1";
|
|
3
|
+
const overlayClosing = "_overlayClosing_1w2h3_19";
|
|
4
|
+
const overlayStyles = {
|
|
5
|
+
overlayStrong,
|
|
6
|
+
overlayClosing
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
overlayStyles as default,
|
|
10
|
+
overlayClosing,
|
|
11
|
+
overlayStrong
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=overlay.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
@layer dds-components {.
|
|
1
|
+
@layer dds-components {._underlineLink_o1ngy_1 {
|
|
2
|
+
text-decoration: underline;
|
|
3
|
+
text-underline-offset: 0.2em;
|
|
4
|
+
text-decoration-skip-ink: auto;
|
|
5
|
+
text-decoration-thickness: from-font;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
._underlineLinkOnHover_o1ngy_8:hover {
|
|
2
9
|
text-decoration: underline;
|
|
3
10
|
text-underline-offset: 0.2em;
|
|
4
11
|
text-decoration-skip-ink: auto;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
require('./text-decoration.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
-
const underlineLink = "
|
|
4
|
+
const underlineLink = "_underlineLink_o1ngy_1";
|
|
5
|
+
const underlineLinkOnHover = "_underlineLinkOnHover_o1ngy_8";
|
|
5
6
|
const textDecorationStyles = {
|
|
6
|
-
underlineLink
|
|
7
|
+
underlineLink,
|
|
8
|
+
underlineLinkOnHover
|
|
7
9
|
};
|
|
8
10
|
exports.default = textDecorationStyles;
|
|
9
11
|
exports.underlineLink = underlineLink;
|
|
12
|
+
exports.underlineLinkOnHover = underlineLinkOnHover;
|
|
10
13
|
//# sourceMappingURL=text-decoration.module.css.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-decoration.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-decoration.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import './text-decoration.css';
|
|
2
|
-
const underlineLink = "
|
|
2
|
+
const underlineLink = "_underlineLink_o1ngy_1";
|
|
3
|
+
const underlineLinkOnHover = "_underlineLinkOnHover_o1ngy_8";
|
|
3
4
|
const textDecorationStyles = {
|
|
4
|
-
underlineLink
|
|
5
|
+
underlineLink,
|
|
6
|
+
underlineLinkOnHover
|
|
5
7
|
};
|
|
6
8
|
export {
|
|
7
9
|
textDecorationStyles as default,
|
|
8
|
-
underlineLink
|
|
10
|
+
underlineLink,
|
|
11
|
+
underlineLinkOnHover
|
|
9
12
|
};
|
|
10
13
|
//# sourceMappingURL=text-decoration.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-decoration.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-decoration.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/styles.css
CHANGED
|
@@ -90,23 +90,6 @@
|
|
|
90
90
|
--color-semantic-interactive-auxiliary-focus: #ffb557;
|
|
91
91
|
--color-semantic-interactive-auxiliary-active: #ffdbad;
|
|
92
92
|
--color-semantic-interactive-auxiliary-disabled: rgba(255, 219, 173, 0.3);
|
|
93
|
-
--spacing-ui-md: 16px;
|
|
94
|
-
--spacing-ui-lg: 20px;
|
|
95
|
-
--spacing-ui-sm: 12px;
|
|
96
|
-
--spacing-ui-xl: 24px;
|
|
97
|
-
--spacing-ui-xs: 8px;
|
|
98
|
-
--spacing-ui-xxs: 4px;
|
|
99
|
-
--spacing-ui-xxl: 32px;
|
|
100
|
-
--spacing-ui-none: 0px;
|
|
101
|
-
--spacing-ui-xxxl: 40px;
|
|
102
|
-
--spacing-layout-none: 0px;
|
|
103
|
-
--spacing-layout-xxs: 16px;
|
|
104
|
-
--spacing-layout-xs: 32px;
|
|
105
|
-
--spacing-layout-sm: 48px;
|
|
106
|
-
--spacing-layout-md: 64px;
|
|
107
|
-
--spacing-layout-lg: 80px;
|
|
108
|
-
--spacing-layout-xl: 96px;
|
|
109
|
-
--spacing-layout-xxl: 112px;
|
|
110
93
|
--radius-semantic-none: 0px;
|
|
111
94
|
--radius-semantic-sm: 4px;
|
|
112
95
|
--radius-semantic-md: 8px;
|
|
@@ -119,6 +102,23 @@
|
|
|
119
102
|
--borderwidth-semantic-xl: 5px;
|
|
120
103
|
--borderwidth-semantic-xxl: 6px;
|
|
121
104
|
--borderwidth-semantic-sm: 2px;
|
|
105
|
+
--spacing-space-0: 0px;
|
|
106
|
+
--spacing-space-4: 4px;
|
|
107
|
+
--spacing-space-8: 8px;
|
|
108
|
+
--spacing-space-12: 12px;
|
|
109
|
+
--spacing-space-16: 16px;
|
|
110
|
+
--spacing-space-20: 20px;
|
|
111
|
+
--spacing-space-24: 24px;
|
|
112
|
+
--spacing-space-32: 32px;
|
|
113
|
+
--spacing-space-40: 40px;
|
|
114
|
+
--spacing-space-48: 48px;
|
|
115
|
+
--spacing-space-64: 64px;
|
|
116
|
+
--spacing-space-80: 80px;
|
|
117
|
+
--spacing-space-96: 96px;
|
|
118
|
+
--spacing-space-112: 112px;
|
|
119
|
+
--spacing-space-128: 128px;
|
|
120
|
+
--spacing-space-144: 144px;
|
|
121
|
+
--spacing-space-160: 160px;
|
|
122
122
|
--typography-font-size-heading-xxl: 48px;
|
|
123
123
|
--typography-font-size-heading-xl: 40px;
|
|
124
124
|
--typography-font-size-heading-lg: 34px;
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
--typography-font-weight-black: 900;
|
|
137
137
|
--typography-font-weight-demi-bold: 600;
|
|
138
138
|
--typography-line-height-xs: 1;
|
|
139
|
-
--typography-line-height-sm: 1.
|
|
139
|
+
--typography-line-height-sm: 1.15;
|
|
140
140
|
--typography-line-height-md: 1.25;
|
|
141
141
|
--typography-line-height-lg: 1.5;
|
|
142
142
|
--typography-letter-spacing-tight: -0.02em;
|
|
@@ -144,130 +144,168 @@
|
|
|
144
144
|
--typography-letter-spacing-wide: 0.02em;
|
|
145
145
|
--typography-font-family-heading: DNA Heading;
|
|
146
146
|
--typography-font-family-text: DNA Text;
|
|
147
|
+
--elevation-semantic-elevation-low-color: rgba(18, 18, 18, 0.06);
|
|
148
|
+
--elevation-semantic-elevation-low-offset-x: 0px;
|
|
149
|
+
--elevation-semantic-elevation-low-offset-y: 2px;
|
|
150
|
+
--elevation-semantic-elevation-low-blur: 16px;
|
|
151
|
+
--elevation-semantic-elevation-low-spread: 0px;
|
|
152
|
+
--elevation-semantic-elevation-medium-color: rgba(18, 18, 18, 0.08);
|
|
153
|
+
--elevation-semantic-elevation-medium-offset-x: 0px;
|
|
154
|
+
--elevation-semantic-elevation-medium-offset-y: 4px;
|
|
155
|
+
--elevation-semantic-elevation-medium-blur: 24px;
|
|
156
|
+
--elevation-semantic-elevation-medium-spread: 0px;
|
|
157
|
+
--elevation-semantic-elevation-high-color: rgba(18, 18, 18, 0.16);
|
|
158
|
+
--elevation-semantic-elevation-high-offset-x: 0px;
|
|
159
|
+
--elevation-semantic-elevation-high-offset-y: 8px;
|
|
160
|
+
--elevation-semantic-elevation-high-blur: 64px;
|
|
161
|
+
--elevation-semantic-elevation-high-spread: 0px;
|
|
147
162
|
}
|
|
148
163
|
}
|
|
149
164
|
|
|
150
165
|
@layer dds-base {
|
|
151
166
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
*::after {
|
|
155
|
-
box-sizing: border-box;
|
|
156
|
-
}
|
|
167
|
+
/* ==========================================================================
|
|
168
|
+
Extended typography tokens (hand-authored, CSS only)
|
|
157
169
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
-webkit-font-smoothing: antialiased;
|
|
162
|
-
-moz-osx-font-smoothing: grayscale;
|
|
163
|
-
-webkit-text-size-adjust: 100%;
|
|
170
|
+
Figma is the single source of truth for the generated tokens in tokens.css,
|
|
171
|
+
and that output is kept 1-1 with the Figma export. The variables below cannot
|
|
172
|
+
be expressed in Figma, so they are authored here instead:
|
|
164
173
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
margin: 0;
|
|
170
|
-
padding: 0;
|
|
171
|
-
}
|
|
174
|
+
- font shorthand presets compose values across token categories
|
|
175
|
+
(font-weight + font-size/line-height + font-family)
|
|
176
|
+
- heading presets use clamp() for fluid typography
|
|
177
|
+
- font-family tokens in Figma hold only the primary family, without fallbacks
|
|
172
178
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
display: block;
|
|
178
|
-
max-width: 100%;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
@layer dds-base {
|
|
183
|
-
|
|
184
|
-
/* ==========================================================================
|
|
185
|
-
Typography shorthand variables
|
|
179
|
+
These are additive: they never redeclare a variable emitted by tokens.css.
|
|
180
|
+
They are delivered as CSS custom properties only — the values are CSS
|
|
181
|
+
expressions with no meaningful JavaScript equivalent — so unlike the
|
|
182
|
+
generated tokens there is no JS counterpart.
|
|
186
183
|
|
|
187
|
-
|
|
188
|
-
|
|
184
|
+
Requires tokens.css, which defines the referenced font-size, font-weight,
|
|
185
|
+
line-height and font-family variables.
|
|
189
186
|
|
|
190
187
|
Usage: font: var(--typography-heading-xxl);
|
|
191
|
-
|
|
192
|
-
Figma doesn't support composing typography tokens from multiple
|
|
193
|
-
design token categories, so we need to define these shorthands in CSS.
|
|
194
|
-
This also allows us to use the clamp() function for fluid typography,
|
|
195
|
-
which isn't possible to do in Figma tokens.
|
|
196
188
|
========================================================================== */
|
|
197
189
|
|
|
198
190
|
:root {
|
|
199
|
-
/*
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
--typography-font-family-text:
|
|
191
|
+
/* Full family stacks. Primary family comes from the Figma token. */
|
|
192
|
+
--typography-font-family-heading-with-fallback:
|
|
193
|
+
var(--typography-font-family-heading), 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
194
|
+
--typography-font-family-text-with-fallback:
|
|
195
|
+
var(--typography-font-family-text), 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
203
196
|
|
|
204
197
|
/* Headings */
|
|
205
198
|
--typography-heading-xxl: var(--typography-font-weight-black)
|
|
206
199
|
clamp(2.25rem, 2rem + 1.25cqw, 3rem)/var(--typography-line-height-sm)
|
|
207
|
-
var(--typography-font-family-heading);
|
|
200
|
+
var(--typography-font-family-heading-with-fallback);
|
|
208
201
|
--typography-heading-xl: var(--typography-font-weight-black)
|
|
209
202
|
clamp(2rem, 1.833rem + 0.833cqw, 2.5rem)/var(--typography-line-height-sm)
|
|
210
|
-
var(--typography-font-family-heading);
|
|
203
|
+
var(--typography-font-family-heading-with-fallback);
|
|
211
204
|
--typography-heading-lg: var(--typography-font-weight-black)
|
|
212
205
|
clamp(1.625rem, 1.458rem + 0.833cqw, 2.125rem)/var(--typography-line-height-sm)
|
|
213
|
-
var(--typography-font-family-heading);
|
|
206
|
+
var(--typography-font-family-heading-with-fallback);
|
|
214
207
|
--typography-heading-md: var(--typography-font-weight-bold)
|
|
215
208
|
clamp(1.375rem, 1.25rem + 0.625cqw, 1.75rem)/var(--typography-line-height-md)
|
|
216
|
-
var(--typography-font-family-heading);
|
|
209
|
+
var(--typography-font-family-heading-with-fallback);
|
|
217
210
|
--typography-heading-sm: var(--typography-font-weight-bold)
|
|
218
211
|
clamp(1.25rem, 1.167rem + 0.417cqw, 1.5rem)/var(--typography-line-height-md)
|
|
219
|
-
var(--typography-font-family-text);
|
|
212
|
+
var(--typography-font-family-text-with-fallback);
|
|
220
213
|
--typography-heading-xs: var(--typography-font-weight-bold)
|
|
221
214
|
clamp(1.125rem, 1.083rem + 0.208cqw, 1.25rem)/var(--typography-line-height-md)
|
|
222
|
-
var(--typography-font-family-text);
|
|
215
|
+
var(--typography-font-family-text-with-fallback);
|
|
223
216
|
--typography-heading-xxs: var(--typography-font-weight-bold)
|
|
224
217
|
clamp(1.0625rem, 1.042rem + 0.104cqw, 1.125rem)/var(--typography-line-height-md)
|
|
225
|
-
var(--typography-font-family-text);
|
|
218
|
+
var(--typography-font-family-text-with-fallback);
|
|
226
219
|
|
|
227
220
|
/* Body */
|
|
228
221
|
--typography-body-lg: var(--typography-font-weight-regular)
|
|
229
222
|
clamp(1.125rem, 1.083rem + 0.208cqw, 1.25rem)/var(--typography-line-height-lg)
|
|
230
|
-
var(--typography-font-family-text);
|
|
223
|
+
var(--typography-font-family-text-with-fallback);
|
|
231
224
|
--typography-body-lg-medium: var(--typography-font-weight-medium)
|
|
232
225
|
clamp(1.125rem, 1.083rem + 0.208cqw, 1.25rem)/var(--typography-line-height-lg)
|
|
233
|
-
var(--typography-font-family-text);
|
|
226
|
+
var(--typography-font-family-text-with-fallback);
|
|
234
227
|
--typography-body-md: var(--typography-font-weight-regular)
|
|
235
228
|
var(--typography-font-size-text-md)/var(--typography-line-height-lg)
|
|
236
|
-
var(--typography-font-family-text);
|
|
229
|
+
var(--typography-font-family-text-with-fallback);
|
|
237
230
|
--typography-body-md-medium: var(--typography-font-weight-medium)
|
|
238
231
|
var(--typography-font-size-text-md)/var(--typography-line-height-lg)
|
|
239
|
-
var(--typography-font-family-text);
|
|
232
|
+
var(--typography-font-family-text-with-fallback);
|
|
240
233
|
--typography-body-md-bold: var(--typography-font-weight-bold)
|
|
241
234
|
var(--typography-font-size-text-md)/var(--typography-line-height-lg)
|
|
242
|
-
var(--typography-font-family-text);
|
|
235
|
+
var(--typography-font-family-text-with-fallback);
|
|
243
236
|
--typography-body-sm: var(--typography-font-weight-regular)
|
|
244
237
|
var(--typography-font-size-text-sm)/var(--typography-line-height-lg)
|
|
245
|
-
var(--typography-font-family-text);
|
|
238
|
+
var(--typography-font-family-text-with-fallback);
|
|
246
239
|
--typography-body-sm-medium: var(--typography-font-weight-medium)
|
|
247
240
|
var(--typography-font-size-text-sm)/var(--typography-line-height-lg)
|
|
248
|
-
var(--typography-font-family-text);
|
|
241
|
+
var(--typography-font-family-text-with-fallback);
|
|
249
242
|
--typography-body-xs: var(--typography-font-weight-medium)
|
|
250
243
|
var(--typography-font-size-text-xs)/var(--typography-line-height-lg)
|
|
251
|
-
var(--typography-font-family-text);
|
|
244
|
+
var(--typography-font-family-text-with-fallback);
|
|
252
245
|
|
|
253
246
|
/* Labels */
|
|
254
247
|
--typography-label-lg: var(--typography-font-weight-medium)
|
|
255
|
-
var(--typography-font-size-text-md)/var(--typography-line-height-
|
|
256
|
-
var(--typography-font-family-text);
|
|
248
|
+
var(--typography-font-size-text-md)/var(--typography-line-height-sm)
|
|
249
|
+
var(--typography-font-family-text-with-fallback);
|
|
257
250
|
--typography-label-lg-bold: var(--typography-font-weight-bold)
|
|
258
|
-
var(--typography-font-size-text-md)/var(--typography-line-height-
|
|
259
|
-
var(--typography-font-family-text);
|
|
251
|
+
var(--typography-font-size-text-md)/var(--typography-line-height-sm)
|
|
252
|
+
var(--typography-font-family-text-with-fallback);
|
|
260
253
|
--typography-label-md: var(--typography-font-weight-medium)
|
|
261
|
-
var(--typography-font-size-text-sm)/var(--typography-line-height-
|
|
262
|
-
var(--typography-font-family-text);
|
|
254
|
+
var(--typography-font-size-text-sm)/var(--typography-line-height-sm)
|
|
255
|
+
var(--typography-font-family-text-with-fallback);
|
|
263
256
|
--typography-label-md-bold: var(--typography-font-weight-bold)
|
|
264
|
-
var(--typography-font-size-text-sm)/var(--typography-line-height-
|
|
265
|
-
var(--typography-font-family-text);
|
|
257
|
+
var(--typography-font-size-text-sm)/var(--typography-line-height-sm)
|
|
258
|
+
var(--typography-font-family-text-with-fallback);
|
|
266
259
|
--typography-label-sm: var(--typography-font-weight-medium)
|
|
267
|
-
var(--typography-font-size-text-xs)/var(--typography-line-height-
|
|
268
|
-
var(--typography-font-family-text);
|
|
260
|
+
var(--typography-font-size-text-xs)/var(--typography-line-height-sm)
|
|
261
|
+
var(--typography-font-family-text-with-fallback);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
@layer dds-base {
|
|
266
|
+
|
|
267
|
+
*,
|
|
268
|
+
*::before,
|
|
269
|
+
*::after {
|
|
270
|
+
box-sizing: border-box;
|
|
269
271
|
}
|
|
270
272
|
|
|
273
|
+
html {
|
|
274
|
+
font-synthesis: none;
|
|
275
|
+
text-rendering: optimizeLegibility;
|
|
276
|
+
-webkit-font-smoothing: antialiased;
|
|
277
|
+
-moz-osx-font-smoothing: grayscale;
|
|
278
|
+
-webkit-text-size-adjust: 100%;
|
|
279
|
+
|
|
280
|
+
scroll-behavior: smooth;
|
|
281
|
+
}
|
|
282
|
+
html,
|
|
283
|
+
body {
|
|
284
|
+
margin: 0;
|
|
285
|
+
padding: 0;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
body.dds-un-scrollable {
|
|
289
|
+
overflow: hidden;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
@media screen and (min-width: 1024px) {
|
|
293
|
+
body.dds-un-scrollable {
|
|
294
|
+
overflow: initial;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
img,
|
|
299
|
+
picture,
|
|
300
|
+
svg,
|
|
301
|
+
video {
|
|
302
|
+
display: block;
|
|
303
|
+
max-width: 100%;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
@layer dds-base {
|
|
308
|
+
|
|
271
309
|
/* ==========================================================================
|
|
272
310
|
Base typography styles
|
|
273
311
|
|
|
@@ -276,12 +314,21 @@ video {
|
|
|
276
314
|
properties are set consistently, and they can be overridden by utility
|
|
277
315
|
classes for specific use cases.
|
|
278
316
|
|
|
317
|
+
The font shorthand presets used here (--typography-heading-*,
|
|
318
|
+
--typography-body-*, --typography-label-*) ship from
|
|
319
|
+
'@dnanpm/design-tokens/css/typography'.
|
|
320
|
+
|
|
279
321
|
========================================================================== */
|
|
280
322
|
|
|
281
323
|
html {
|
|
282
324
|
font: var(--typography-body-md);
|
|
283
325
|
}
|
|
284
326
|
|
|
327
|
+
body {
|
|
328
|
+
background-color: var(--color-semantic-surface-neutral-soft);
|
|
329
|
+
color: var(--color-semantic-foreground-default);
|
|
330
|
+
}
|
|
331
|
+
|
|
285
332
|
h1,
|
|
286
333
|
h2,
|
|
287
334
|
h3,
|
|
@@ -420,14 +467,16 @@ ol {
|
|
|
420
467
|
/* ─── Dark color scheme ─── */
|
|
421
468
|
|
|
422
469
|
@scope ([data-color-scheme='dark']) to ([data-color-scheme='light']) {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
470
|
+
:scope {
|
|
471
|
+
color: var(--color-semantic-foreground-inverse);
|
|
472
|
+
}
|
|
426
473
|
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
474
|
+
:where(a) {
|
|
475
|
+
color: var(--color-semantic-foreground-link-inverse);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
:where(a:hover) {
|
|
479
|
+
color: var(--color-semantic-foreground-link-inverse-hover);
|
|
431
480
|
}
|
|
432
481
|
}
|
|
433
482
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnanpm/ui-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "DNA Design System - React UI Components",
|
|
5
5
|
"author": "DNA Oy",
|
|
6
6
|
"license": "ISC",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"build": "tsc --project tsconfig.build.json && vite build",
|
|
28
28
|
"dev": "vite build --watch",
|
|
29
29
|
"gen:component": "plop --plopfile ./scripts/template-generators/plopfile.mjs component",
|
|
30
|
+
"tokens:check-css-vars": "bash scripts/check-token-css-vars.sh",
|
|
30
31
|
"test": "vitest run --coverage",
|
|
31
32
|
"test:watch": "vitest",
|
|
32
33
|
"format": "prettier --write .",
|