@ulu/frontend 0.1.0-beta.6 → 0.1.0-beta.8
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 +9 -0
- package/docs-dev/demos/accordion/index.html +90 -0
- package/docs-dev/demos/button/index.html +90 -0
- package/docs-dev/demos/callout/index.html +90 -0
- package/docs-dev/demos/captioned-figure/index.html +90 -0
- package/docs-dev/demos/card/index.html +90 -0
- package/docs-dev/demos/css-icons/index.html +90 -0
- package/docs-dev/demos/data-grid/index.html +198 -188
- package/docs-dev/demos/data-table/index.html +115 -25
- package/docs-dev/demos/file-save/index.html +90 -0
- package/docs-dev/demos/flipcard/index.html +90 -0
- package/docs-dev/demos/form-theme/index.html +90 -0
- package/docs-dev/demos/index.html +90 -0
- package/docs-dev/demos/list-inline/index.html +4727 -0
- package/docs-dev/demos/list-inline.1/index.html +4727 -0
- package/docs-dev/demos/list-lines/index.html +4717 -0
- package/docs-dev/demos/menu-stack/index.html +90 -0
- package/docs-dev/demos/modals/index.html +90 -0
- package/docs-dev/demos/nav-strip/index.html +90 -0
- package/docs-dev/demos/overlay-section/index.html +90 -0
- package/docs-dev/demos/popovers/index.html +90 -0
- package/docs-dev/demos/print/index.html +90 -0
- package/docs-dev/demos/pull-quote/index.html +90 -0
- package/docs-dev/demos/rule/index.html +90 -0
- package/docs-dev/demos/scrollpoints/index.html +90 -0
- package/docs-dev/demos/spoke-spinner/index.html +90 -0
- package/docs-dev/demos/tabs/index.html +90 -0
- package/docs-dev/demos/tag/index.html +90 -0
- package/docs-dev/demos/tiles/index.html +90 -0
- package/docs-dev/demos/tooltip/index.html +90 -0
- package/docs-dev/guide/building-stylesheet/index.html +90 -0
- package/docs-dev/guide/developing-ulu-scss-module/index.html +90 -0
- package/docs-dev/guide/index.html +90 -0
- package/docs-dev/index.html +90 -0
- package/docs-dev/javascript/events/index.html +90 -0
- package/docs-dev/javascript/index.html +90 -0
- package/docs-dev/javascript/ui-breakpoints/index.html +90 -0
- package/docs-dev/javascript/ui-collapsible/index.html +90 -0
- package/docs-dev/javascript/ui-dialog/index.html +90 -0
- package/docs-dev/javascript/ui-flipcard/index.html +90 -0
- package/docs-dev/javascript/ui-grid/index.html +90 -0
- package/docs-dev/javascript/ui-modal-builder/index.html +90 -0
- package/docs-dev/javascript/ui-overflow-scroller/index.html +90 -0
- package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +90 -0
- package/docs-dev/javascript/ui-page/index.html +90 -0
- package/docs-dev/javascript/ui-popover/index.html +90 -0
- package/docs-dev/javascript/ui-print/index.html +90 -0
- package/docs-dev/javascript/ui-print-details/index.html +90 -0
- package/docs-dev/javascript/ui-programmatic-modal/index.html +90 -0
- package/docs-dev/javascript/ui-proxy-click/index.html +90 -0
- package/docs-dev/javascript/ui-resizer/index.html +90 -0
- package/docs-dev/javascript/ui-scroll-slider/index.html +90 -0
- package/docs-dev/javascript/ui-scrollpoint/index.html +90 -0
- package/docs-dev/javascript/ui-slider/index.html +90 -0
- package/docs-dev/javascript/ui-tabs/index.html +90 -0
- package/docs-dev/javascript/ui-tooltip/index.html +90 -0
- package/docs-dev/javascript/utils-class-logger/index.html +90 -0
- package/docs-dev/javascript/utils-dom/index.html +90 -0
- package/docs-dev/javascript/utils-file-save/index.html +90 -0
- package/docs-dev/javascript/utils-floating-ui/index.html +90 -0
- package/docs-dev/javascript/utils-id/index.html +90 -0
- package/docs-dev/javascript/utils-pause-youtube-video/index.html +90 -0
- package/docs-dev/sass/base/color/index.html +90 -0
- package/docs-dev/sass/base/elements/index.html +90 -0
- package/docs-dev/sass/base/index/index.html +90 -0
- package/docs-dev/sass/base/index.html +90 -0
- package/docs-dev/sass/base/keyframes/index.html +90 -0
- package/docs-dev/sass/base/layout/index.html +90 -0
- package/docs-dev/sass/base/normalize/index.html +90 -0
- package/docs-dev/sass/base/print/index.html +90 -0
- package/docs-dev/sass/base/root/index.html +90 -0
- package/docs-dev/sass/base/typography/index.html +90 -0
- package/docs-dev/sass/components/accordion/index.html +95 -5
- package/docs-dev/sass/components/adaptive-spacing/index.html +90 -0
- package/docs-dev/sass/components/badge/index.html +98 -8
- package/docs-dev/sass/components/button/index.html +90 -0
- package/docs-dev/sass/components/button-verbose/index.html +90 -0
- package/docs-dev/sass/components/callout/index.html +108 -14
- package/docs-dev/sass/components/captioned-figure/index.html +98 -8
- package/docs-dev/sass/components/card/index.html +100 -10
- package/docs-dev/sass/components/card-grid/index.html +90 -0
- package/docs-dev/sass/components/css-icon/index.html +100 -10
- package/docs-dev/sass/components/data-grid/index.html +90 -0
- package/docs-dev/sass/components/data-table/index.html +101 -9
- package/docs-dev/sass/components/fill-context/index.html +90 -0
- package/docs-dev/sass/components/flipcard/index.html +98 -8
- package/docs-dev/sass/components/flipcard-grid/index.html +90 -0
- package/docs-dev/sass/components/form-theme/index.html +90 -0
- package/docs-dev/sass/components/hero/index.html +90 -0
- package/docs-dev/sass/components/horizontal-rule/index.html +90 -0
- package/docs-dev/sass/components/image-grid/index.html +90 -0
- package/docs-dev/sass/components/index/index.html +101 -10
- package/docs-dev/sass/components/index.html +90 -0
- package/docs-dev/sass/components/links/index.html +90 -0
- package/docs-dev/sass/components/list-inline/index.html +4908 -0
- package/docs-dev/sass/components/list-lines/index.html +122 -36
- package/docs-dev/sass/components/list-ordered/index.html +92 -2
- package/docs-dev/sass/components/list-unordered/index.html +90 -0
- package/docs-dev/sass/components/menu-stack/index.html +90 -0
- package/docs-dev/sass/components/modal/index.html +105 -8
- package/docs-dev/sass/components/nav-strip/index.html +91 -1
- package/docs-dev/sass/components/overlay-section/index.html +98 -8
- package/docs-dev/sass/components/pager/index.html +90 -0
- package/docs-dev/sass/components/placeholder-block/index.html +90 -0
- package/docs-dev/sass/components/popover/index.html +90 -0
- package/docs-dev/sass/components/pull-quote/index.html +90 -0
- package/docs-dev/sass/components/ratio-box/index.html +90 -0
- package/docs-dev/sass/components/rule/index.html +98 -8
- package/docs-dev/sass/components/scroll-slider/index.html +90 -0
- package/docs-dev/sass/components/skip-link/index.html +98 -8
- package/docs-dev/sass/components/slider/index.html +95 -5
- package/docs-dev/sass/components/spoke-spinner/index.html +90 -0
- package/docs-dev/sass/components/tabs/index.html +90 -0
- package/docs-dev/sass/components/tag/index.html +90 -0
- package/docs-dev/sass/components/tile-button/index.html +90 -0
- package/docs-dev/sass/components/tile-grid/index.html +90 -0
- package/docs-dev/sass/components/tile-grid-overlay/index.html +90 -0
- package/docs-dev/sass/components/vignette/index.html +90 -0
- package/docs-dev/sass/components/wysiwyg/index.html +90 -0
- package/docs-dev/sass/core/breakpoint/index.html +90 -0
- package/docs-dev/sass/core/button/index.html +90 -0
- package/docs-dev/sass/core/color/index.html +120 -29
- package/docs-dev/sass/core/cssvar/index.html +90 -0
- package/docs-dev/sass/core/element/index.html +90 -0
- package/docs-dev/sass/core/index.html +90 -0
- package/docs-dev/sass/core/layout/index.html +90 -0
- package/docs-dev/sass/core/path/index.html +90 -0
- package/docs-dev/sass/core/selector/index.html +90 -0
- package/docs-dev/sass/core/typography/index.html +90 -0
- package/docs-dev/sass/core/units/index.html +90 -0
- package/docs-dev/sass/core/utils/index.html +90 -0
- package/docs-dev/sass/helpers/color/index.html +90 -0
- package/docs-dev/sass/helpers/display/index.html +90 -0
- package/docs-dev/sass/helpers/index/index.html +90 -0
- package/docs-dev/sass/helpers/index.html +90 -0
- package/docs-dev/sass/helpers/print/index.html +90 -0
- package/docs-dev/sass/helpers/typography/index.html +90 -0
- package/docs-dev/sass/helpers/units/index.html +90 -0
- package/docs-dev/sass/helpers/utilities/index.html +90 -0
- package/docs-dev/sass/index.html +90 -0
- package/package.json +1 -1
- package/scss/components/_data-table.scss +7 -3
- package/scss/components/_index.scss +6 -0
- package/scss/components/_list-inline.scss +80 -0
- package/scss/components/_list-lines.scss +44 -32
|
@@ -3,24 +3,40 @@
|
|
|
3
3
|
////
|
|
4
4
|
|
|
5
5
|
@use "sass:map";
|
|
6
|
+
@use "sass:meta";
|
|
6
7
|
|
|
7
8
|
@use "../element";
|
|
8
9
|
@use "../typography";
|
|
10
|
+
@use "../selector";
|
|
9
11
|
@use "../utils";
|
|
10
12
|
|
|
13
|
+
// Used for function fallback
|
|
14
|
+
$-fallbacks: (
|
|
15
|
+
"dense-line-height" : (
|
|
16
|
+
"function" : meta.get-function("get", false, "typography"),
|
|
17
|
+
"property" : "line-height-dense"
|
|
18
|
+
),
|
|
19
|
+
);
|
|
20
|
+
|
|
11
21
|
/// Module Config
|
|
12
22
|
/// @prop {Boolean} border-first [true] If enabled, adds a top border to the first item in list-lines.
|
|
13
23
|
/// @prop {Boolean} border-last [true] If enabled, adds a bottom border to the last item in list-lines.
|
|
24
|
+
/// @prop {String} rule-style ["light"] Name of element > rule style to use for divider/border
|
|
14
25
|
/// @prop {Dimension} margin-bottom [1em] Bottom margin of list.
|
|
15
26
|
/// @prop {Dimension} margin-top [0] Top margin of list.
|
|
16
27
|
/// @prop {Dimension} padding-between [1em] Padding between items in list.
|
|
28
|
+
/// @prop {Dimension} padding-between [1em] Padding between items in list when using dense modifier
|
|
29
|
+
/// @prop {Dimension} line-height-dense [true] Line height when list lines has dense modifier (defaults to typography line-height-dense)
|
|
17
30
|
|
|
18
31
|
$config: (
|
|
19
32
|
"border-first" : true,
|
|
20
33
|
"border-last" : true,
|
|
21
34
|
"margin-bottom": 1em,
|
|
22
35
|
"margin-top": 0,
|
|
23
|
-
"
|
|
36
|
+
"rule-style" : "light",
|
|
37
|
+
"padding-between" : 1em,
|
|
38
|
+
"dense-padding-between" : 0.65em,
|
|
39
|
+
"dense-line-height" : true
|
|
24
40
|
) !default;
|
|
25
41
|
|
|
26
42
|
/// Change modules $config
|
|
@@ -38,31 +54,8 @@ $config: (
|
|
|
38
54
|
/// @include ulu.component-list-lines-get("property");
|
|
39
55
|
|
|
40
56
|
@function get($name) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
/// Output component styles
|
|
45
|
-
|
|
46
|
-
@mixin inner-styles {
|
|
47
|
-
$border: element.get-rule-style("light") !default;
|
|
48
|
-
list-style: none;
|
|
49
|
-
margin: get("margin-top") 0 get("margin-bottom") 0;
|
|
50
|
-
padding: 0;
|
|
51
|
-
@if (get("border-first")) {
|
|
52
|
-
border-top: $border;
|
|
53
|
-
}
|
|
54
|
-
>li {
|
|
55
|
-
border-bottom: $border;
|
|
56
|
-
padding: get("padding-between") 0;
|
|
57
|
-
>*:last-child {
|
|
58
|
-
margin-bottom: 0;
|
|
59
|
-
}
|
|
60
|
-
@if (not get("border-last")) {
|
|
61
|
-
&:last-child {
|
|
62
|
-
border-bottom-width: 0;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
57
|
+
$value: utils.require-map-get($config, $name, "list-lines [config]");
|
|
58
|
+
@return utils.function-fallback($name, $value, $-fallbacks);
|
|
66
59
|
}
|
|
67
60
|
|
|
68
61
|
/// Output component stylesheet
|
|
@@ -70,14 +63,33 @@ $config: (
|
|
|
70
63
|
/// @include ulu.component-list-lines-styles();
|
|
71
64
|
|
|
72
65
|
@mixin styles {
|
|
73
|
-
|
|
74
|
-
.
|
|
75
|
-
|
|
66
|
+
$prefix: selector.class("list-lines");
|
|
67
|
+
$border: element.get-rule-style(get("rule-style"));
|
|
68
|
+
|
|
69
|
+
#{ $prefix } {
|
|
70
|
+
list-style: none;
|
|
71
|
+
margin: get("margin-top") 0 get("margin-bottom") 0;
|
|
72
|
+
padding: 0;
|
|
73
|
+
@if (get("border-first")) {
|
|
74
|
+
border-top: $border;
|
|
75
|
+
}
|
|
76
|
+
>li {
|
|
77
|
+
border-bottom: $border;
|
|
78
|
+
padding: get("padding-between") 0;
|
|
79
|
+
>*:last-child {
|
|
80
|
+
margin-bottom: 0;
|
|
81
|
+
}
|
|
82
|
+
@if (not get("border-last")) {
|
|
83
|
+
&:last-child {
|
|
84
|
+
border-bottom-width: 0;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
76
88
|
}
|
|
77
|
-
|
|
89
|
+
#{ $prefix }--dense {
|
|
78
90
|
>li {
|
|
79
|
-
padding:
|
|
80
|
-
line-height:
|
|
91
|
+
padding: get("dense-padding-between") 0;
|
|
92
|
+
line-height: get("dense-line-height");
|
|
81
93
|
}
|
|
82
94
|
}
|
|
83
95
|
}
|