@nordcode/ui 1.0.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/CHANGELOG.md +157 -0
- package/LICENSE.md +661 -0
- package/README.md +90 -0
- package/index.html +1169 -0
- package/out/bundle.css +1400 -0
- package/out/bundle_configless.css +1135 -0
- package/out/colors.css +87 -0
- package/out/complete.css +2647 -0
- package/out/complete_configless.css +2382 -0
- package/package.json +73 -0
- package/src/assets/fonts/DMMono-Regular.woff +0 -0
- package/src/assets/fonts/DMMono-Regular.woff2 +0 -0
- package/src/assets/fonts/fonts.css +7 -0
- package/src/assets/icons/ArrowRightSolid.svelte +1 -0
- package/src/assets/icons/arrow-right-solid.svg +1 -0
- package/src/assets/icons/favicon.png +0 -0
- package/src/assets/icons/favicon.svg +8 -0
- package/src/assets/logos/nordcode-logo-icon.svg +3 -0
- package/src/assets/logos/nordcode-logo.svg +17 -0
- package/src/modules/copyButtons/ts/copyButtons.ts +9 -0
- package/src/modules/dialogs/svelte/dialog.svelte +27 -0
- package/src/modules/dialogs/ts/LICENCE +171 -0
- package/src/modules/dialogs/ts/dialogs.ts +111 -0
- package/src/modules/notifications/js/notifications.js +294 -0
- package/src/modules/notifications/svelte/NotificationCenter.svelte +18 -0
- package/src/modules/notifications/svelte/NotificationTemplate.svelte +16 -0
- package/src/modules/sectionObserver/ts/sectionOberserver.ts +34 -0
- package/src/styles/bundle.css +7 -0
- package/src/styles/bundle_configless.css +5 -0
- package/src/styles/complete.css +5 -0
- package/src/styles/complete_configless.css +5 -0
- package/src/styles/components/badges.css +14 -0
- package/src/styles/components/breadcrumbs.css +37 -0
- package/src/styles/components/bundle.css +12 -0
- package/src/styles/components/buttons.css +256 -0
- package/src/styles/components/card.css +55 -0
- package/src/styles/components/dialogs.css +116 -0
- package/src/styles/components/forms.css +47 -0
- package/src/styles/components/gallery.css +66 -0
- package/src/styles/components/icons.css +60 -0
- package/src/styles/components/inputs/base.css +258 -0
- package/src/styles/components/inputs/bundle.css +5 -0
- package/src/styles/components/inputs/fields.css +79 -0
- package/src/styles/components/inputs/segmented.css +123 -0
- package/src/styles/components/inputs/switch.css +42 -0
- package/src/styles/components/inputs/tag-select.css +44 -0
- package/src/styles/components/lists.css +40 -0
- package/src/styles/components/notifications.css +137 -0
- package/src/styles/components/tables.css +7 -0
- package/src/styles/config/bundle.css +2 -0
- package/src/styles/config/config.css +828 -0
- package/src/styles/config/extras.css +18 -0
- package/src/styles/exceptions/bundle.css +3 -0
- package/src/styles/exceptions/misc.css +21 -0
- package/src/styles/exceptions/spacings.css +15 -0
- package/src/styles/exceptions/typography.css +57 -0
- package/src/styles/theme/colors.css +178 -0
- package/src/styles/theme/colors_processed.css +87 -0
- package/src/styles/utils/base.css +406 -0
- package/src/styles/utils/bundle.css +6 -0
- package/src/styles/utils/easings.css +364 -0
- package/src/styles/utils/layouts.css +298 -0
- package/src/styles/utils/media.css +55 -0
- package/src/styles/utils/reset.css +128 -0
- package/src/styles/utils/theme.css +120 -0
- package/transform.js +71 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# @nordcode/ui
|
|
2
|
+
|
|
3
|
+
## 2.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ## Add default shadows to UI elements & tweaks
|
|
8
|
+
|
|
9
|
+
- apply heading font weight to headings
|
|
10
|
+
- tweak button design
|
|
11
|
+
- add slight shadow to default buttons
|
|
12
|
+
- make offset button a variant
|
|
13
|
+
- add inset shadow to inputs by default
|
|
14
|
+
- style input range thumb
|
|
15
|
+
- add shadow to switch thumb
|
|
16
|
+
|
|
17
|
+
## 2.2.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- ## Small tweaks and additions
|
|
22
|
+
|
|
23
|
+
- add all font sizes as utility classes
|
|
24
|
+
- add sr-only as screen-reader class too
|
|
25
|
+
- make details more clickable by adding the padding to the summary instead
|
|
26
|
+
- add badges variants for primary & secondary
|
|
27
|
+
- make breadcrumbs and buttons more consistent
|
|
28
|
+
|
|
29
|
+
## 2.1.0
|
|
30
|
+
|
|
31
|
+
### Minor Changes
|
|
32
|
+
|
|
33
|
+
- ## Tweaks to base styles
|
|
34
|
+
|
|
35
|
+
- Add missing style: `var`
|
|
36
|
+
- Add text-rendering: optimizeSpeed;
|
|
37
|
+
- Fix Metalist styles
|
|
38
|
+
- Increase details default padding
|
|
39
|
+
- Simplify and improve blockquote styles
|
|
40
|
+
- Make em and i serif for improved italics
|
|
41
|
+
- Add font-smoothing to base
|
|
42
|
+
- Use `ex` in nc-flow for improved vertical rhythm
|
|
43
|
+
- Update line-height calculations after switching to `ex`-based line-heights in the generator
|
|
44
|
+
|
|
45
|
+
## 2.0.0
|
|
46
|
+
|
|
47
|
+
### Major Changes
|
|
48
|
+
|
|
49
|
+
- Change most spacings to use lh,ch and ex
|
|
50
|
+
|
|
51
|
+
## What changed
|
|
52
|
+
|
|
53
|
+
- Most components now have their spacings based on lh, ch and ex instead of the spacings
|
|
54
|
+
|
|
55
|
+
## Why we did it
|
|
56
|
+
|
|
57
|
+
- We keep a consistent and flexible UI like this
|
|
58
|
+
- AND we can be more flexible in the spacing scale without creating UI issues in the components
|
|
59
|
+
|
|
60
|
+
## How to migrate
|
|
61
|
+
|
|
62
|
+
Probably just use it and make sure, your styles are not broken
|
|
63
|
+
|
|
64
|
+
## 1.2.0
|
|
65
|
+
|
|
66
|
+
### Minor Changes
|
|
67
|
+
|
|
68
|
+
- Lots of small tweaks and new layouts
|
|
69
|
+
- feat(ui): extend styles for kbd and code and at scroll-margin to :target
|
|
70
|
+
- feat(ui): remove padding on small icon buttons
|
|
71
|
+
- feat(ui): simplify .text-assistive style
|
|
72
|
+
- feat(ui): add more layout utilities
|
|
73
|
+
- .nc-region for page sections
|
|
74
|
+
- .nc-grid for common grid layouts (50:50 / thirds)
|
|
75
|
+
- .nc-switcher for items that go beneath each other automatically
|
|
76
|
+
- add -between to cluster to provide for spacing-between
|
|
77
|
+
- feat(ui): add style for <del>
|
|
78
|
+
|
|
79
|
+
## 1.1.2
|
|
80
|
+
|
|
81
|
+
### Patch Changes
|
|
82
|
+
|
|
83
|
+
- Feat: use primary contrast color in checkboxes
|
|
84
|
+
|
|
85
|
+
## 1.1.1
|
|
86
|
+
|
|
87
|
+
### Patch Changes
|
|
88
|
+
|
|
89
|
+
- Fix generated dark theme
|
|
90
|
+
|
|
91
|
+
## 1.1.0
|
|
92
|
+
|
|
93
|
+
### Minor Changes
|
|
94
|
+
|
|
95
|
+
- Fix dark theme, tweak styles, add easings
|
|
96
|
+
- ab524dd: Fix Icon Button and remove rlh support checks
|
|
97
|
+
|
|
98
|
+
## 1.0.0
|
|
99
|
+
|
|
100
|
+
### Major Changes
|
|
101
|
+
|
|
102
|
+
- First proper release
|
|
103
|
+
|
|
104
|
+
## 2023-12-17: Chroma-js & color renames
|
|
105
|
+
|
|
106
|
+
**Includes Breaking Changes**
|
|
107
|
+
|
|
108
|
+
- switched to chroma-js to generate all colors based on a scale
|
|
109
|
+
- renamed `color-brand-primary-subtle` to `color-brand-primary-surface` to better reflect its
|
|
110
|
+
purpose
|
|
111
|
+
- renamed `color-brand-surface-subtle` to `color-brand-surface-surface` to better reflect its
|
|
112
|
+
purpose
|
|
113
|
+
- renamed `color-info-subtle` to `color-info-surface` to better reflect its purpose
|
|
114
|
+
- renamed `color-warning-subtle` to `color-warning-surface` to better reflect its purpose
|
|
115
|
+
- renamed `color-success-subtle` to `color-success-surface` to better reflect its purpose
|
|
116
|
+
- renamed `color-danger-subtle` to `color-danger-surface` to better reflect its purpose
|
|
117
|
+
|
|
118
|
+
_Notes: Needs tweaking for some of the values_
|
|
119
|
+
|
|
120
|
+
## 2023-12-18: Tweak presets
|
|
121
|
+
|
|
122
|
+
Tweak preset and color generations a little bit.
|
|
123
|
+
|
|
124
|
+
## 2023-12-19: Tweak presets, design improvements
|
|
125
|
+
|
|
126
|
+
- Tweak preset values for `brutalist`
|
|
127
|
+
- Change default text-underline-offset to `0.25lh`
|
|
128
|
+
- Fix description-list style
|
|
129
|
+
|
|
130
|
+
## 2023-12-22: Fix shadow generation
|
|
131
|
+
|
|
132
|
+
## 2023-12-25: Extend color possibilities
|
|
133
|
+
|
|
134
|
+
- Split Neutral Chroma into 3 for FG, BG and Borders
|
|
135
|
+
- Allow secondary brand color to be used in generating FG and BG neutral colors
|
|
136
|
+
|
|
137
|
+
## 2023-12-27: More color tweaks
|
|
138
|
+
|
|
139
|
+
- tweak button colors and fix base button hover
|
|
140
|
+
- use base chroma and hue in generation of scales when generating colors
|
|
141
|
+
|
|
142
|
+
### Minor Changes
|
|
143
|
+
|
|
144
|
+
- d829e99: added --gallery-scroll-snap-stop css prop to gallery
|
|
145
|
+
- 6025a83: add first batch of css component styles
|
|
146
|
+
- c42d1f3: add new export /media for css @custom-media
|
|
147
|
+
|
|
148
|
+
### Patch Changes
|
|
149
|
+
|
|
150
|
+
- a59822e: fixed border-radius-round typo (1e5px)
|
|
151
|
+
- bcae962: add icons and assets exports
|
|
152
|
+
|
|
153
|
+
## 0.0.1
|
|
154
|
+
|
|
155
|
+
### Patch Changes
|
|
156
|
+
|
|
157
|
+
- 65eca97: first try of changesets
|