@ulu/frontend 0.1.0-beta.115 → 0.1.0-beta.117

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.
Files changed (180) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/dist/ulu-frontend.min.css +1 -1
  3. package/docs-dev/changelog/index.html +74 -0
  4. package/docs-dev/demos/accordion/index.html +60 -0
  5. package/docs-dev/demos/badge/index.html +60 -0
  6. package/docs-dev/demos/badge-stack/index.html +60 -0
  7. package/docs-dev/demos/breadcrumb/index.html +60 -0
  8. package/docs-dev/demos/breakpoints-manager/index.html +60 -0
  9. package/docs-dev/demos/button/index.html +60 -0
  10. package/docs-dev/demos/button-group/index.html +60 -0
  11. package/docs-dev/demos/button-verbose/index.html +60 -0
  12. package/docs-dev/demos/callout/index.html +60 -0
  13. package/docs-dev/demos/captioned-figure/index.html +60 -0
  14. package/docs-dev/demos/card/index.html +60 -0
  15. package/docs-dev/demos/card-grid/index.html +60 -0
  16. package/docs-dev/demos/counter-list/index.html +60 -0
  17. package/docs-dev/demos/css-icons/index.html +60 -0
  18. package/docs-dev/demos/data-grid/index.html +60 -0
  19. package/docs-dev/demos/data-table/index.html +60 -0
  20. package/docs-dev/demos/definition-list/index.html +6011 -0
  21. package/docs-dev/demos/details-group/index.html +60 -0
  22. package/docs-dev/demos/file-save/index.html +60 -0
  23. package/docs-dev/demos/flipcard/index.html +60 -0
  24. package/docs-dev/demos/form-theme/index.html +60 -0
  25. package/docs-dev/demos/headline-label/index.html +60 -0
  26. package/docs-dev/demos/index.html +60 -0
  27. package/docs-dev/demos/list-inline/index.html +60 -0
  28. package/docs-dev/demos/list-lines/index.html +60 -0
  29. package/docs-dev/demos/menu-stack/index.html +60 -0
  30. package/docs-dev/demos/modals/index.html +60 -0
  31. package/docs-dev/demos/nav-strip/index.html +60 -0
  32. package/docs-dev/demos/overlay-section/index.html +60 -0
  33. package/docs-dev/demos/panel/index.html +60 -0
  34. package/docs-dev/demos/popovers/index.html +60 -0
  35. package/docs-dev/demos/print/index.html +60 -0
  36. package/docs-dev/demos/progress-bar/index.html +60 -0
  37. package/docs-dev/demos/progress-circle/index.html +60 -0
  38. package/docs-dev/demos/pull-quote/index.html +60 -0
  39. package/docs-dev/demos/rail/index.html +60 -0
  40. package/docs-dev/demos/rule/index.html +60 -0
  41. package/docs-dev/demos/scrollpoints/index.html +60 -0
  42. package/docs-dev/demos/skeleton/index.html +60 -0
  43. package/docs-dev/demos/spoke-spinner/index.html +60 -0
  44. package/docs-dev/demos/sticky-list/index.html +60 -0
  45. package/docs-dev/demos/tabs/index.html +60 -0
  46. package/docs-dev/demos/tag/index.html +60 -0
  47. package/docs-dev/demos/theme-toggle/index.html +60 -0
  48. package/docs-dev/demos/tiles/index.html +60 -0
  49. package/docs-dev/demos/tooltip/index.html +60 -0
  50. package/docs-dev/demos/wysiwyg/index.html +60 -0
  51. package/docs-dev/guide/building-stylesheet/index.html +60 -0
  52. package/docs-dev/guide/developing-ulu-scss-module/index.html +60 -0
  53. package/docs-dev/guide/index.html +60 -0
  54. package/docs-dev/index.html +60 -0
  55. package/docs-dev/javascript/events/index.html +511 -1291
  56. package/docs-dev/javascript/index.html +60 -0
  57. package/docs-dev/javascript/settings/index.html +64 -380
  58. package/docs-dev/javascript/ui-breakpoints/index.html +545 -1115
  59. package/docs-dev/javascript/ui-collapsible/index.html +545 -1115
  60. package/docs-dev/javascript/ui-details-group/index.html +60 -390
  61. package/docs-dev/javascript/ui-dialog/index.html +60 -240
  62. package/docs-dev/javascript/ui-flipcard/index.html +64 -380
  63. package/docs-dev/javascript/ui-grid/index.html +341 -2503
  64. package/docs-dev/javascript/ui-modal-builder/index.html +341 -2503
  65. package/docs-dev/javascript/ui-overflow-scroller/index.html +335 -2467
  66. package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +335 -2467
  67. package/docs-dev/javascript/ui-page/index.html +64 -380
  68. package/docs-dev/javascript/ui-popover/index.html +64 -380
  69. package/docs-dev/javascript/ui-print/index.html +64 -380
  70. package/docs-dev/javascript/ui-print-details/index.html +64 -380
  71. package/docs-dev/javascript/ui-programmatic-modal/index.html +64 -380
  72. package/docs-dev/javascript/ui-proxy-click/index.html +64 -380
  73. package/docs-dev/javascript/ui-resizer/index.html +64 -380
  74. package/docs-dev/javascript/ui-scroll-slider/index.html +64 -380
  75. package/docs-dev/javascript/ui-scrollpoint/index.html +64 -380
  76. package/docs-dev/javascript/ui-slider/index.html +64 -380
  77. package/docs-dev/javascript/ui-tabs/index.html +64 -380
  78. package/docs-dev/javascript/ui-theme-toggle/index.html +64 -380
  79. package/docs-dev/javascript/ui-tooltip/index.html +64 -380
  80. package/docs-dev/javascript/utils-class-logger/index.html +64 -380
  81. package/docs-dev/javascript/utils-css/index.html +64 -380
  82. package/docs-dev/javascript/utils-dom/index.html +64 -380
  83. package/docs-dev/javascript/utils-file-save/index.html +64 -380
  84. package/docs-dev/javascript/utils-floating-ui/index.html +64 -380
  85. package/docs-dev/javascript/utils-id/index.html +64 -380
  86. package/docs-dev/javascript/utils-pause-youtube-video/index.html +64 -380
  87. package/docs-dev/javascript/utils-system/index.html +64 -380
  88. package/docs-dev/sass/base/color/index.html +64 -380
  89. package/docs-dev/sass/base/elements/index.html +64 -380
  90. package/docs-dev/sass/base/index/index.html +64 -380
  91. package/docs-dev/sass/base/index.html +60 -0
  92. package/docs-dev/sass/base/keyframes/index.html +64 -380
  93. package/docs-dev/sass/base/layout/index.html +64 -380
  94. package/docs-dev/sass/base/normalize/index.html +64 -380
  95. package/docs-dev/sass/base/print/index.html +64 -380
  96. package/docs-dev/sass/base/root/index.html +60 -0
  97. package/docs-dev/sass/base/typography/index.html +60 -0
  98. package/docs-dev/sass/components/accordion/index.html +61 -1
  99. package/docs-dev/sass/components/adaptive-spacing/index.html +60 -0
  100. package/docs-dev/sass/components/badge/index.html +60 -0
  101. package/docs-dev/sass/components/badge-stack/index.html +60 -0
  102. package/docs-dev/sass/components/basic-hero/index.html +60 -0
  103. package/docs-dev/sass/components/breadcrumb/index.html +60 -0
  104. package/docs-dev/sass/components/button/index.html +60 -0
  105. package/docs-dev/sass/components/button-group/index.html +60 -0
  106. package/docs-dev/sass/components/button-verbose/index.html +60 -0
  107. package/docs-dev/sass/components/callout/index.html +60 -0
  108. package/docs-dev/sass/components/captioned-figure/index.html +60 -0
  109. package/docs-dev/sass/components/card/index.html +60 -0
  110. package/docs-dev/sass/components/card-grid/index.html +60 -0
  111. package/docs-dev/sass/components/counter-list/index.html +60 -0
  112. package/docs-dev/sass/components/css-icon/index.html +60 -0
  113. package/docs-dev/sass/components/data-grid/index.html +60 -0
  114. package/docs-dev/sass/components/data-table/index.html +60 -0
  115. package/docs-dev/sass/components/definition-list/index.html +6107 -0
  116. package/docs-dev/sass/components/fill-context/index.html +60 -0
  117. package/docs-dev/sass/components/flipcard/index.html +60 -0
  118. package/docs-dev/sass/components/flipcard-grid/index.html +60 -0
  119. package/docs-dev/sass/components/form-theme/index.html +60 -0
  120. package/docs-dev/sass/components/headline-label/index.html +60 -0
  121. package/docs-dev/sass/components/hero/index.html +60 -0
  122. package/docs-dev/sass/components/horizontal-rule/index.html +60 -0
  123. package/docs-dev/sass/components/image-grid/index.html +60 -0
  124. package/docs-dev/sass/components/index/index.html +71 -10
  125. package/docs-dev/sass/components/index.html +60 -0
  126. package/docs-dev/sass/components/links/index.html +60 -0
  127. package/docs-dev/sass/components/list-inline/index.html +60 -0
  128. package/docs-dev/sass/components/list-lines/index.html +60 -0
  129. package/docs-dev/sass/components/list-ordered/index.html +60 -0
  130. package/docs-dev/sass/components/list-unordered/index.html +60 -0
  131. package/docs-dev/sass/components/menu-stack/index.html +60 -0
  132. package/docs-dev/sass/components/modal/index.html +60 -0
  133. package/docs-dev/sass/components/nav-strip/index.html +60 -0
  134. package/docs-dev/sass/components/overlay-section/index.html +60 -0
  135. package/docs-dev/sass/components/pager/index.html +60 -0
  136. package/docs-dev/sass/components/panel/index.html +60 -0
  137. package/docs-dev/sass/components/placeholder-block/index.html +60 -0
  138. package/docs-dev/sass/components/popover/index.html +60 -0
  139. package/docs-dev/sass/components/progress-bar/index.html +60 -0
  140. package/docs-dev/sass/components/progress-circle/index.html +60 -0
  141. package/docs-dev/sass/components/pull-quote/index.html +60 -0
  142. package/docs-dev/sass/components/rail/index.html +60 -0
  143. package/docs-dev/sass/components/ratio-box/index.html +60 -0
  144. package/docs-dev/sass/components/rule/index.html +60 -0
  145. package/docs-dev/sass/components/scroll-slider/index.html +60 -0
  146. package/docs-dev/sass/components/skeleton/index.html +60 -0
  147. package/docs-dev/sass/components/skip-link/index.html +60 -0
  148. package/docs-dev/sass/components/slider/index.html +60 -0
  149. package/docs-dev/sass/components/spoke-spinner/index.html +60 -0
  150. package/docs-dev/sass/components/sticky-list/index.html +60 -0
  151. package/docs-dev/sass/components/tabs/index.html +60 -0
  152. package/docs-dev/sass/components/tag/index.html +60 -0
  153. package/docs-dev/sass/components/tile-button/index.html +60 -0
  154. package/docs-dev/sass/components/tile-grid/index.html +60 -0
  155. package/docs-dev/sass/components/tile-grid-overlay/index.html +60 -0
  156. package/docs-dev/sass/components/vignette/index.html +60 -0
  157. package/docs-dev/sass/components/wysiwyg/index.html +60 -0
  158. package/docs-dev/sass/core/breakpoint/index.html +60 -0
  159. package/docs-dev/sass/core/button/index.html +60 -0
  160. package/docs-dev/sass/core/color/index.html +60 -0
  161. package/docs-dev/sass/core/cssvar/index.html +60 -0
  162. package/docs-dev/sass/core/element/index.html +60 -0
  163. package/docs-dev/sass/core/index.html +60 -0
  164. package/docs-dev/sass/core/layout/index.html +60 -0
  165. package/docs-dev/sass/core/path/index.html +60 -0
  166. package/docs-dev/sass/core/selector/index.html +60 -0
  167. package/docs-dev/sass/core/typography/index.html +60 -0
  168. package/docs-dev/sass/core/units/index.html +60 -0
  169. package/docs-dev/sass/core/utils/index.html +60 -0
  170. package/docs-dev/sass/helpers/color/index.html +60 -0
  171. package/docs-dev/sass/helpers/display/index.html +60 -0
  172. package/docs-dev/sass/helpers/index/index.html +60 -0
  173. package/docs-dev/sass/helpers/index.html +60 -0
  174. package/docs-dev/sass/helpers/typography/index.html +60 -0
  175. package/docs-dev/sass/helpers/units/index.html +60 -0
  176. package/docs-dev/sass/helpers/utilities/index.html +60 -0
  177. package/docs-dev/sass/index.html +60 -0
  178. package/package.json +2 -2
  179. package/scss/components/_definition-list.scss +170 -0
  180. package/scss/components/_index.scss +6 -0
@@ -0,0 +1,170 @@
1
+ ////
2
+ /// @group definition-list
3
+ /// Definition list styles
4
+ ////
5
+
6
+ @use "sass:map";
7
+ @use "sass:meta";
8
+ @use "sass:math";
9
+
10
+ @use "../selector";
11
+ @use "../utils";
12
+ @use "../color";
13
+ @use "../typography";
14
+ @use "../breakpoint";
15
+ @use "../element";
16
+
17
+ // Used for function fallback
18
+ $-fallbacks: (
19
+ "term-font-weight": (
20
+ "function": meta.get-function("get", false, "typography"),
21
+ "property": "font-weight-bold"
22
+ ),
23
+ "line-height": (
24
+ "function": meta.get-function("get", false, "typography"),
25
+ "property": "line-height-dense"
26
+ ),
27
+ "separator-border": (
28
+ "function": meta.get-function("get-rule-style", false, "element"),
29
+ "arguments": ("light",)
30
+ )
31
+ );
32
+
33
+ /// Module Settings
34
+ /// @type Map
35
+ /// @prop {String} term-font-weight [true] The font-weight of the dt element.
36
+ /// @prop {Dimension} line-height [true] The line-height of the definition list.
37
+ /// @prop {CssUnit} item-margin [0.75em] The spacing for each item.
38
+ /// @prop {Boolean} separator [true] Whether to show a separator between items.
39
+ /// @prop {Border} separator-border [true] The border style for the separator.
40
+ /// @prop {Dimension} separator-padding [0.75em] The padding for the separator.
41
+ /// @prop {String} table-breakpoint [medium] The breakpoint for the table layout.
42
+ /// @prop {String} table-template-columns [(25% 75%)] The grid-template-columns for the table layout.
43
+ /// @prop {Dimension} table-gap [1rem] The gap for the table layout.
44
+ /// @prop {String} inline-description-separator [","] The separator for multiple dd elements in inline layout.
45
+ /// @prop {String} inline-term-separator [":"] The separator for dt elements in inline layout.
46
+
47
+ $config: (
48
+ "margin" : (0 0 1.5em 0),
49
+ "term-font-weight": true,
50
+ "line-height": true,
51
+ "item-margin" : 1em,
52
+ "separator": true,
53
+ "separator-border": true,
54
+ "table-breakpoint": "medium",
55
+ "table-template-columns": (25% 75%),
56
+ "table-gap": 1rem,
57
+ "inline-description-separator": ",",
58
+ "inline-term-separator": ":",
59
+ "compact-item-margin" : 0.5em
60
+ ) !default;
61
+
62
+ /// Change modules $config
63
+ /// @param {Map} $changes Map of changes
64
+ /// @example scss
65
+ /// @include ulu.component-definition-list-set(( "property" : value ));
66
+
67
+ @mixin set($changes) {
68
+ $config: map.merge($config, $changes) !global;
69
+ }
70
+
71
+ /// Get a config option
72
+ /// @param {Map} $name Name of property
73
+ /// @example scss
74
+ /// @include ulu.component-definition-list-get("property");
75
+
76
+ @function get($name) {
77
+ $value: utils.require-map-get($config, $name, "definition-list [config]");
78
+ @return utils.function-fallback($name, $value, $-fallbacks);
79
+ }
80
+
81
+ /// Prints component styles
82
+ /// @demo definition-list
83
+ /// @example scss
84
+ /// @include ulu.component-definition-list-styles();
85
+
86
+ @mixin styles {
87
+ $prefix: selector.class("definition-list");
88
+ $item-margin-half: math.div(get("item-margin"), 2);
89
+ $compact-item-margin-half: math.div(get("compact-item-margin"), 2);
90
+
91
+ #{ $prefix } {
92
+ line-height: get("line-height");
93
+ margin: get("margin");
94
+
95
+ > div {
96
+ margin-top: $item-margin-half;
97
+ padding-top: $item-margin-half;
98
+ }
99
+ dt,
100
+ dd {
101
+ display: block;
102
+ margin: 0;
103
+ font-weight: normal;
104
+ }
105
+ dt {
106
+ font-weight: get("term-font-weight");
107
+ }
108
+ }
109
+
110
+ // Modifiers
111
+ #{ $prefix }--table {
112
+ @include breakpoint.min(get("table-breakpoint")) {
113
+ > div {
114
+ display: grid;
115
+ grid-template-columns: get("table-template-columns");
116
+ gap: get("table-gap");
117
+ }
118
+ }
119
+ }
120
+
121
+ #{ $prefix }--inline,
122
+ #{ $prefix }--inline-all {
123
+ > div {
124
+ display: flex;
125
+ flex-wrap: wrap;
126
+ align-items: baseline;
127
+ }
128
+
129
+ dd + dd {
130
+ &::before {
131
+ content: get("inline-description-separator");
132
+ margin-right: 0.2em;
133
+ }
134
+ }
135
+ }
136
+
137
+ #{ $prefix }--inline {
138
+ dt {
139
+ flex-basis: 100%;
140
+ }
141
+ }
142
+
143
+ #{ $prefix }--inline-all {
144
+ dt {
145
+ &::after {
146
+ content: get("inline-term-separator");
147
+ margin-right: 0.2em;
148
+ }
149
+ }
150
+ }
151
+
152
+ #{ $prefix }--separated > div:not(:first-child),
153
+ #{ $prefix }--separated-first > div:first-child {
154
+ border-top: get("separator-border");
155
+ }
156
+ #{ $prefix }--separated-last > div:last-child {
157
+ border-bottom: get("separator-border");
158
+ padding-bottom: $item-margin-half;
159
+ }
160
+
161
+ #{ $prefix }--compact {
162
+ > div {
163
+ margin-top: $compact-item-margin-half;
164
+ padding-top: $compact-item-margin-half;
165
+ }
166
+ }
167
+ #{ $prefix }--compact#{ $prefix }--separated-last > div:last-child {
168
+ padding-bottom: $compact-item-margin-half;
169
+ }
170
+ }
@@ -19,6 +19,7 @@
19
19
  @forward "css-icon" as css-icon-*;
20
20
  @forward "data-grid" as data-grid-*;
21
21
  @forward "data-table" as data-table-*;
22
+ @forward "definition-list" as definition-list-*;
22
23
  @forward "fill-context" as fill-context-*;
23
24
  @forward "flipcard" as flipcard-*;
24
25
  @forward "flipcard-grid" as flipcard-grid-*;
@@ -80,6 +81,7 @@
80
81
  @use "css-icon";
81
82
  @use "data-grid";
82
83
  @use "data-table";
84
+ @use "definition-list";
83
85
  @use "fill-context";
84
86
  @use "flipcard";
85
87
  @use "flipcard-grid";
@@ -142,6 +144,7 @@ $all-includes: (
142
144
  "css-icon",
143
145
  "data-grid",
144
146
  "data-table",
147
+ "definition-list",
145
148
  "fill-context",
146
149
  "flipcard",
147
150
  "flipcard-grid",
@@ -272,6 +275,9 @@ $current-includes: $all-includes;
272
275
  @if (list.index($includes, "data-table")) {
273
276
  @include data-table.styles;
274
277
  }
278
+ @if (list.index($includes, "definition-list")) {
279
+ @include definition-list.styles;
280
+ }
275
281
  @if (list.index($includes, "fill-context")) {
276
282
  @include fill-context.styles;
277
283
  }