@ulu/frontend 0.1.0-beta.67 → 0.1.0-beta.69
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 +13 -0
- package/README.dev.md +1 -1
- package/README.md +13 -9
- package/dist/ulu-frontend.min.css +1 -1
- package/docs-dev/assets/main.js +7747 -503
- package/docs-dev/assets/style.css +221 -166
- package/docs-dev/changelog/index.html +58 -4
- package/docs-dev/demos/accordion/index.html +30 -1
- package/docs-dev/demos/{card-new → badge}/index.html +232 -55
- package/docs-dev/demos/breakpoints-manager/index.html +30 -0
- package/docs-dev/demos/button/index.html +30 -0
- package/docs-dev/demos/button-verbose/index.html +30 -0
- package/docs-dev/demos/callout/index.html +30 -0
- package/docs-dev/demos/captioned-figure/index.html +30 -0
- package/docs-dev/demos/card/index.html +46 -16
- package/docs-dev/demos/card-grid/index.html +30 -0
- package/docs-dev/demos/counter-list/index.html +30 -0
- package/docs-dev/demos/css-icons/index.html +30 -0
- package/docs-dev/demos/data-grid/index.html +30 -0
- package/docs-dev/demos/data-table/index.html +130 -100
- package/docs-dev/demos/details-group/index.html +30 -0
- package/docs-dev/demos/file-save/index.html +30 -0
- package/docs-dev/demos/flipcard/index.html +30 -0
- package/docs-dev/demos/form-theme/index.html +30 -0
- package/docs-dev/demos/index.html +30 -0
- package/docs-dev/demos/list-inline/index.html +30 -0
- package/docs-dev/demos/list-lines/index.html +30 -0
- package/docs-dev/demos/menu-stack/index.html +30 -0
- package/docs-dev/demos/modals/index.html +30 -0
- package/docs-dev/demos/nav-strip/index.html +30 -0
- package/docs-dev/demos/overlay-section/index.html +30 -0
- package/docs-dev/demos/popovers/index.html +30 -0
- package/docs-dev/demos/print/index.html +30 -0
- package/docs-dev/demos/pull-quote/index.html +30 -0
- package/docs-dev/demos/rule/index.html +30 -0
- package/docs-dev/demos/scrollpoints/index.html +30 -0
- package/docs-dev/demos/spoke-spinner/index.html +30 -0
- package/docs-dev/demos/sticky-list/index.html +30 -0
- package/docs-dev/demos/tabs/index.html +30 -0
- package/docs-dev/demos/tag/index.html +30 -0
- package/docs-dev/demos/theme-toggle/index.html +30 -0
- package/docs-dev/demos/tiles/index.html +30 -0
- package/docs-dev/demos/tooltip/index.html +30 -0
- package/docs-dev/guide/building-stylesheet/index.html +30 -0
- package/docs-dev/guide/developing-ulu-scss-module/index.html +30 -0
- package/docs-dev/guide/index.html +30 -0
- package/docs-dev/index.html +30 -0
- package/docs-dev/javascript/events/index.html +30 -0
- package/docs-dev/javascript/index.html +30 -0
- package/docs-dev/javascript/settings/index.html +30 -0
- package/docs-dev/javascript/ui-breakpoints/index.html +30 -0
- package/docs-dev/javascript/ui-collapsible/index.html +30 -0
- package/docs-dev/javascript/ui-details-group/index.html +30 -0
- package/docs-dev/javascript/ui-dialog/index.html +30 -0
- package/docs-dev/javascript/ui-flipcard/index.html +30 -0
- package/docs-dev/javascript/ui-grid/index.html +30 -0
- package/docs-dev/javascript/ui-modal-builder/index.html +30 -0
- package/docs-dev/javascript/ui-overflow-scroller/index.html +30 -0
- package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +30 -0
- package/docs-dev/javascript/ui-page/index.html +30 -0
- package/docs-dev/javascript/ui-popover/index.html +30 -0
- package/docs-dev/javascript/ui-print/index.html +30 -0
- package/docs-dev/javascript/ui-print-details/index.html +30 -0
- package/docs-dev/javascript/ui-programmatic-modal/index.html +30 -0
- package/docs-dev/javascript/ui-proxy-click/index.html +30 -0
- package/docs-dev/javascript/ui-resizer/index.html +30 -0
- package/docs-dev/javascript/ui-scroll-slider/index.html +30 -0
- package/docs-dev/javascript/ui-scrollpoint/index.html +30 -0
- package/docs-dev/javascript/ui-slider/index.html +30 -0
- package/docs-dev/javascript/ui-tabs/index.html +30 -0
- package/docs-dev/javascript/ui-theme-toggle/index.html +30 -0
- package/docs-dev/javascript/ui-tooltip/index.html +30 -0
- package/docs-dev/javascript/utils-class-logger/index.html +30 -0
- package/docs-dev/javascript/utils-css/index.html +30 -0
- package/docs-dev/javascript/utils-dom/index.html +30 -0
- package/docs-dev/javascript/utils-file-save/index.html +30 -0
- package/docs-dev/javascript/utils-floating-ui/index.html +30 -0
- package/docs-dev/javascript/utils-id/index.html +30 -0
- package/docs-dev/javascript/utils-pause-youtube-video/index.html +30 -0
- package/docs-dev/javascript/utils-system/index.html +30 -0
- package/docs-dev/sass/base/color/index.html +30 -0
- package/docs-dev/sass/base/elements/index.html +30 -0
- package/docs-dev/sass/base/index/index.html +30 -0
- package/docs-dev/sass/base/index.html +30 -0
- package/docs-dev/sass/base/keyframes/index.html +30 -0
- package/docs-dev/sass/base/layout/index.html +30 -0
- package/docs-dev/sass/base/normalize/index.html +30 -0
- package/docs-dev/sass/base/print/index.html +30 -0
- package/docs-dev/sass/base/root/index.html +30 -0
- package/docs-dev/sass/base/typography/index.html +30 -0
- package/docs-dev/sass/components/accordion/index.html +38 -8
- package/docs-dev/sass/components/adaptive-spacing/index.html +30 -0
- package/docs-dev/sass/components/badge/index.html +52 -11
- package/docs-dev/sass/components/basic-hero/index.html +30 -0
- package/docs-dev/sass/components/button/index.html +30 -0
- package/docs-dev/sass/components/button-verbose/index.html +30 -0
- package/docs-dev/sass/components/callout/index.html +30 -0
- package/docs-dev/sass/components/captioned-figure/index.html +30 -0
- package/docs-dev/sass/components/card/index.html +30 -0
- package/docs-dev/sass/components/card-grid/index.html +30 -0
- package/docs-dev/sass/components/counter-list/index.html +44 -8
- package/docs-dev/sass/components/css-icon/index.html +30 -0
- package/docs-dev/sass/components/data-grid/index.html +30 -0
- package/docs-dev/sass/components/data-table/index.html +30 -0
- package/docs-dev/sass/components/fill-context/index.html +30 -0
- package/docs-dev/sass/components/flipcard/index.html +30 -0
- package/docs-dev/sass/components/flipcard-grid/index.html +30 -0
- package/docs-dev/sass/components/form-theme/index.html +30 -0
- package/docs-dev/sass/components/hero/index.html +30 -0
- package/docs-dev/sass/components/horizontal-rule/index.html +30 -0
- package/docs-dev/sass/components/image-grid/index.html +30 -0
- package/docs-dev/sass/components/index/index.html +30 -0
- package/docs-dev/sass/components/index.html +30 -0
- package/docs-dev/sass/components/links/index.html +30 -0
- package/docs-dev/sass/components/list-inline/index.html +30 -0
- package/docs-dev/sass/components/list-lines/index.html +30 -0
- package/docs-dev/sass/components/list-ordered/index.html +30 -0
- package/docs-dev/sass/components/list-unordered/index.html +30 -0
- package/docs-dev/sass/components/menu-stack/index.html +30 -0
- package/docs-dev/sass/components/modal/index.html +30 -0
- package/docs-dev/sass/components/nav-strip/index.html +30 -0
- package/docs-dev/sass/components/overlay-section/index.html +30 -0
- package/docs-dev/sass/components/pager/index.html +30 -0
- package/docs-dev/sass/components/placeholder-block/index.html +30 -0
- package/docs-dev/sass/components/popover/index.html +30 -0
- package/docs-dev/sass/components/pull-quote/index.html +30 -0
- package/docs-dev/sass/components/ratio-box/index.html +30 -0
- package/docs-dev/sass/components/rule/index.html +30 -0
- package/docs-dev/sass/components/scroll-slider/index.html +30 -0
- package/docs-dev/sass/components/skip-link/index.html +30 -0
- package/docs-dev/sass/components/slider/index.html +30 -0
- package/docs-dev/sass/components/spoke-spinner/index.html +30 -0
- package/docs-dev/sass/components/sticky-list/index.html +30 -0
- package/docs-dev/sass/components/tabs/index.html +30 -0
- package/docs-dev/sass/components/tag/index.html +30 -0
- package/docs-dev/sass/components/tile-button/index.html +30 -0
- package/docs-dev/sass/components/tile-grid/index.html +30 -0
- package/docs-dev/sass/components/tile-grid-overlay/index.html +30 -0
- package/docs-dev/sass/components/vignette/index.html +30 -0
- package/docs-dev/sass/components/wysiwyg/index.html +30 -0
- package/docs-dev/sass/core/breakpoint/index.html +30 -0
- package/docs-dev/sass/core/button/index.html +30 -0
- package/docs-dev/sass/core/color/index.html +30 -0
- package/docs-dev/sass/core/cssvar/index.html +30 -0
- package/docs-dev/sass/core/element/index.html +30 -0
- package/docs-dev/sass/core/index.html +30 -0
- package/docs-dev/sass/core/layout/index.html +30 -0
- package/docs-dev/sass/core/path/index.html +30 -0
- package/docs-dev/sass/core/selector/index.html +30 -0
- package/docs-dev/sass/core/typography/index.html +30 -0
- package/docs-dev/sass/core/units/index.html +30 -0
- package/docs-dev/sass/core/utils/index.html +30 -0
- package/docs-dev/sass/helpers/color/index.html +30 -0
- package/docs-dev/sass/helpers/display/index.html +30 -0
- package/docs-dev/sass/helpers/index/index.html +30 -0
- package/docs-dev/sass/helpers/index.html +30 -0
- package/docs-dev/sass/helpers/typography/index.html +30 -0
- package/docs-dev/sass/helpers/units/index.html +30 -0
- package/docs-dev/sass/helpers/utilities/index.html +30 -0
- package/docs-dev/sass/index.html +30 -0
- package/package.json +11 -3
- package/scss/README.md +4 -0
- package/scss/components/_accordion.scss +18 -9
- package/scss/components/_badge.scss +23 -4
- package/types/ui/index.d.ts +1 -1
- package/types/utils/index.d.ts +1 -1
- package/docs-dev/changelog/updates-and-changes/index.html +0 -5109
- package/docs-dev/demos/card-old/index.html +0 -5223
- package/docs-dev/demos/card.1/index.html +0 -5223
- package/docs-dev/demos/card.TRASH/index.html +0 -5541
- package/docs-dev/demos/list-inline.1/index.html +0 -4727
- package/docs-dev/guide/updates-and-changes/index.html +0 -5033
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ulu/frontend",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.0-beta.69",
|
|
4
|
+
"description": "A versatile SCSS and JavaScript component library offering configurable, accessible components and flexible integration into any project, with SCSS modules suitable for modern JS frameworks.",
|
|
5
5
|
"browser": "js/index.js",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"exports": {
|
|
@@ -49,7 +49,15 @@
|
|
|
49
49
|
"mixin",
|
|
50
50
|
"components",
|
|
51
51
|
"HTML",
|
|
52
|
-
"frontend framework"
|
|
52
|
+
"frontend framework",
|
|
53
|
+
"css",
|
|
54
|
+
"utilities",
|
|
55
|
+
"design system",
|
|
56
|
+
"toolkit",
|
|
57
|
+
"accessibility",
|
|
58
|
+
"ui",
|
|
59
|
+
"user interface",
|
|
60
|
+
"responsive design"
|
|
53
61
|
],
|
|
54
62
|
"authors": {
|
|
55
63
|
"name": "Joe Scherben, Informatics Studio",
|
package/scss/README.md
CHANGED
|
@@ -41,6 +41,10 @@
|
|
|
41
41
|
- Should be written from the user's point of view
|
|
42
42
|
- Use prefixes @see "Module Prefixes" in member names. This will avoid confusion about normal use case. For advanced user importing specific parts would already be familiar with this pattern.
|
|
43
43
|
|
|
44
|
+
#### Workaround for syntax highlighting bug
|
|
45
|
+
|
|
46
|
+
If the syntax highlighting isn't working properly after an example, add an empty line with `///` to workaround that bug
|
|
47
|
+
|
|
44
48
|
### Ideas
|
|
45
49
|
|
|
46
50
|
- How to solve the inability to use standard vars (avoid with)
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
/// Outputs accordion component stylesheet, which can be used with <details> or custom disclosure components
|
|
4
4
|
////
|
|
5
5
|
|
|
6
|
+
// Internal note: We don't require the content to be wrapped, this is so that this can be used on details elements outside of our control. So we use negative margins
|
|
7
|
+
|
|
6
8
|
@use "sass:map";
|
|
7
9
|
@use "sass:math";
|
|
8
10
|
|
|
@@ -95,15 +97,16 @@ $config: (
|
|
|
95
97
|
|
|
96
98
|
@mixin styles {
|
|
97
99
|
$prefix: selector.class("accordion");
|
|
98
|
-
|
|
100
|
+
$padding-x: get("padding-x");
|
|
101
|
+
$padding-x-double: get("padding-x") * 2;
|
|
99
102
|
$border: get("border-width") solid color.get(get("border-color"));
|
|
100
103
|
|
|
101
104
|
// When not one of our custom classed details components
|
|
102
105
|
#{ $prefix } {
|
|
103
106
|
position: relative; // For active border
|
|
104
107
|
border-radius: 0;
|
|
105
|
-
padding-left:
|
|
106
|
-
padding-right:
|
|
108
|
+
padding-left: $padding-x;
|
|
109
|
+
padding-right: $padding-x;
|
|
107
110
|
margin-top: get("margin");
|
|
108
111
|
margin-bottom: get("margin");
|
|
109
112
|
border: $border;
|
|
@@ -138,16 +141,18 @@ $config: (
|
|
|
138
141
|
#{ $prefix }__summary {
|
|
139
142
|
background-color: color.get(get("summary-background-color"));
|
|
140
143
|
color: color.get(get("summary-color"));
|
|
141
|
-
margin-left: -(
|
|
142
|
-
margin-right: -(
|
|
144
|
+
margin-left: -($padding-x);
|
|
145
|
+
margin-right: -($padding-x);
|
|
143
146
|
line-height: get("summary-line-height");
|
|
144
|
-
padding: get("summary-padding-y")
|
|
147
|
+
padding: get("summary-padding-y") $padding-x;
|
|
145
148
|
vertical-align: top;
|
|
146
149
|
font-weight: bold;
|
|
147
150
|
cursor: pointer;
|
|
148
|
-
display: flex; // For icon
|
|
149
151
|
align-items: center;
|
|
152
|
+
width: calc(100% + $padding-x-double); // To fix if using <button>
|
|
153
|
+
|
|
150
154
|
&:has(#{ $prefix }__icon) {
|
|
155
|
+
display: flex;
|
|
151
156
|
list-style: none; // Remove the default arrow (old safari?)
|
|
152
157
|
&::-webkit-details-marker,
|
|
153
158
|
&::marker {
|
|
@@ -193,6 +198,7 @@ $config: (
|
|
|
193
198
|
> #{ $prefix }__summary {
|
|
194
199
|
margin-left: -(get("transparent-padding-x"));
|
|
195
200
|
margin-right: -(get("transparent-padding-x"));
|
|
201
|
+
width: 100%;
|
|
196
202
|
padding: get("transparent-padding-y") get("transparent-padding-x");
|
|
197
203
|
background-color: transparent;
|
|
198
204
|
border: none;
|
|
@@ -208,8 +214,11 @@ $config: (
|
|
|
208
214
|
}
|
|
209
215
|
#{ $prefix }--no-borders {
|
|
210
216
|
border: none;
|
|
211
|
-
&[open]
|
|
212
|
-
|
|
217
|
+
&[open],
|
|
218
|
+
&.is-active {
|
|
219
|
+
& > .accordion__summary {
|
|
220
|
+
border-bottom: none;
|
|
221
|
+
}
|
|
213
222
|
}
|
|
214
223
|
}
|
|
215
224
|
}
|
|
@@ -3,11 +3,21 @@
|
|
|
3
3
|
/// Outputs badge component stylesheet
|
|
4
4
|
////
|
|
5
5
|
|
|
6
|
+
@use "sass:meta";
|
|
6
7
|
@use "sass:map";
|
|
7
8
|
@use "../utils";
|
|
8
9
|
@use "../selector";
|
|
10
|
+
@use "../typography";
|
|
9
11
|
@use "../color";
|
|
10
12
|
|
|
13
|
+
// Used for function fallback
|
|
14
|
+
$-fallbacks: (
|
|
15
|
+
"font-family" : (
|
|
16
|
+
"function" : meta.get-function("get", false, "typography"),
|
|
17
|
+
"property" : "font-family-sans"
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
|
|
11
21
|
/// Module Settings
|
|
12
22
|
/// @type Map
|
|
13
23
|
/// @prop {Number} background-color [gray] Background color (if no image)
|
|
@@ -15,6 +25,7 @@
|
|
|
15
25
|
/// @prop {Number} color [black] Type color
|
|
16
26
|
/// @prop {Number} font-size [1.3rem] Font size (basic ie. 1.3rem) for badge
|
|
17
27
|
/// @prop {Number} font-weight [bold] Font weight
|
|
28
|
+
/// @prop {Number} font-family [true] Specify font family, defaults to typography font-family-sans
|
|
18
29
|
/// @prop {List} sizes [Object] List of other sizes (large by default), each size is a map of (width, font-size)
|
|
19
30
|
/// @prop {Number} width [10rem] Width of badge (default size)
|
|
20
31
|
|
|
@@ -22,13 +33,18 @@ $config: (
|
|
|
22
33
|
"background-color": gray,
|
|
23
34
|
"border-radius": 50%,
|
|
24
35
|
"color": black,
|
|
25
|
-
"font-size": 1.
|
|
36
|
+
"font-size": 1.5rem,
|
|
26
37
|
"font-weight": bold,
|
|
27
|
-
"
|
|
38
|
+
"font-family": true,
|
|
39
|
+
"width": 7rem,
|
|
28
40
|
"sizes" : (
|
|
41
|
+
"small" : (
|
|
42
|
+
"font-size" : 1.2rem,
|
|
43
|
+
"width" : 5rem
|
|
44
|
+
),
|
|
29
45
|
"large" : (
|
|
30
46
|
"font-size" : 2.75rem,
|
|
31
|
-
"width" :
|
|
47
|
+
"width" : 9rem
|
|
32
48
|
)
|
|
33
49
|
)
|
|
34
50
|
) !default;
|
|
@@ -48,7 +64,8 @@ $config: (
|
|
|
48
64
|
/// @include ulu.component-badge-get("property");
|
|
49
65
|
|
|
50
66
|
@function get($name) {
|
|
51
|
-
|
|
67
|
+
$value: utils.require-map-get($config, $name, "badge [config]");
|
|
68
|
+
@return utils.function-fallback($name, $value, $-fallbacks);
|
|
52
69
|
}
|
|
53
70
|
|
|
54
71
|
/// Output badge component styles
|
|
@@ -77,6 +94,7 @@ $config: (
|
|
|
77
94
|
flex: 0 0 get("width");
|
|
78
95
|
font-size: get("font-size");
|
|
79
96
|
font-weight: get("font-weight");
|
|
97
|
+
font-family: get("font-family");
|
|
80
98
|
}
|
|
81
99
|
#{ $prefix }__inner {
|
|
82
100
|
display: block;
|
|
@@ -118,6 +136,7 @@ $config: (
|
|
|
118
136
|
width: 100%;
|
|
119
137
|
height: 100%;
|
|
120
138
|
object-fit: cover;
|
|
139
|
+
margin: 0 !important;
|
|
121
140
|
}
|
|
122
141
|
|
|
123
142
|
@each $name, $props in get("sizes") {
|
package/types/ui/index.d.ts
CHANGED
|
@@ -20,5 +20,5 @@ export * as printDetails from "./print-details.js";
|
|
|
20
20
|
export * as scrollSlider from "./scroll-slider.js";
|
|
21
21
|
export * as themeToggle from "./theme-toggle.js";
|
|
22
22
|
export * as detailsGroup from "./details-group.js";
|
|
23
|
-
declare namespace
|
|
23
|
+
declare namespace ___Users_joe_Projects_Personal_Github_frontend_js_ui_index_ { }
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
package/types/utils/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export * as index from "./index.js";
|
|
|
6
6
|
export * as pauseYoutubeVideo from "./pause-youtube-video.js";
|
|
7
7
|
export * as fileSave from "./file-save.js";
|
|
8
8
|
export * as fontAwesome from "./font-awesome.js";
|
|
9
|
-
declare namespace
|
|
9
|
+
declare namespace ___Users_joe_Projects_Personal_Github_frontend_js_utils_index_ { }
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|