@castlabs/ui 7.1.0 → 7.2.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 +5 -21
- package/dist/castlabs-ui.common.js +1 -1
- package/dist/castlabs-ui.common.js.map +1 -1
- package/dist/castlabs-ui.css +7 -7
- package/dist/castlabs-ui.umd.js +11 -11
- package/dist/castlabs-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ClAlert/style.scss +2 -0
- package/src/components/ClBadge/style.scss +2 -1
- package/src/components/ClBadge/style.variables.scss +2 -0
- package/src/components/ClBlockquote/style.scss +13 -0
- package/src/components/ClBlockquote/style.variables.scss +15 -0
- package/src/components/ClButton/style.scss +3 -1
- package/src/components/ClCard/style.scss +2 -1
- package/src/components/ClCard/style.variables.scss +2 -0
- package/src/components/ClDropdown/style.scss +2 -0
- package/src/components/ClDropzone/style.scss +2 -0
- package/src/components/ClFooter/style.scss +2 -0
- package/src/components/ClHighlight/style.scss +2 -0
- package/src/components/ClIcon/style.scss +2 -6
- package/src/components/ClIconotron/style.scss +2 -0
- package/src/components/ClList/style.scss +3 -2
- package/src/components/ClList/style.variables.scss +3 -3
- package/src/components/ClListGroup/style.scss +3 -1
- package/src/components/ClPagination/style.scss +3 -1
- package/src/components/ClProgress/style.scss +7 -1
- package/src/components/ClScrollbar/style.scss +2 -1
- package/src/components/ClSpinner/style.scss +2 -0
- package/src/components/ClTabs/style.scss +2 -0
- package/src/components/ClToggle/style.scss +2 -0
- package/src/components/ClTooltip/style.scss +3 -1
- package/src/components/ClWizard/style.scss +2 -0
- package/src/components/form/ClField/style.scss +2 -0
- package/src/components/form/ClFieldCheck/style.scss +6 -2
- package/src/components/form/ClFieldFile/style.scss +2 -0
- package/src/components/form/ClFieldGroup/style.scss +2 -0
- package/src/components/form/ClFieldInput/style.scss +2 -0
- package/src/components/form/ClFieldSelect/style.scss +7 -3
- package/src/components/form/ClFieldSet/style.scss +2 -0
- package/src/components/form/ClForm/style.scss +2 -0
- package/src/components/modal/ClModal/style.scss +3 -0
- package/src/components/navigation/ClNavSide/ClNavDrawer/style.scss +1 -0
- package/src/components/navigation/ClNavSide/ClNavSideMenu/style.scss +2 -0
- package/src/components/navigation/ClNavSide/style.scss +1 -4
- package/src/components/navigation/ClNavTop/style.scss +6 -4
- package/src/components/section/ClSectionForm/style.scss +2 -0
- package/src/components/section/ClSectionHeadline/style.scss +2 -0
- package/src/components/section/ClSectionMainSide/style.scss +2 -0
- package/src/components/table/ClTable/style.scss +2 -1
- package/src/components/table/ClTable/style.variables.scss +3 -2
- package/src/components/table/ClTableCel/Actions/style.scss +3 -1
- package/src/components/table/ClTableCel/Audit/style.scss +4 -2
- package/src/components/table/ClTableCel/Boolean/style.scss +3 -1
- package/src/components/table/ClTableCel/Checkbox/style.scss +2 -0
- package/src/components/table/ClTableCel/Code/style.scss +4 -1
- package/src/components/table/ClTableCel/Currency/style.scss +3 -1
- package/src/components/table/ClTableCel/Date/style.scss +3 -1
- package/src/components/table/ClTableCel/ID/style.scss +4 -1
- package/src/components/table/ClTableCel/Links/style.scss +4 -2
- package/src/components/table/ClTableCel/style.scss +2 -1
- package/src/components/table/ClTableCel/style.variables.scss +3 -0
- package/src/components/table/ClTableFootChecked/style.scss +2 -0
- package/src/components/table/ClTableHead/style.scss +3 -1
- package/src/components/text/ClCopy/style.scss +2 -0
- package/src/components/text/ClHashtag/style.scss +3 -0
- package/src/components/text/ClLinkExternal/style.scss +2 -0
- package/src/components/text/ClOrg/style.scss +2 -0
- package/src/components/text/ClPlan/style.scss +3 -0
- package/src/components/text/ClRole/style.scss +3 -0
- package/src/components/widget/ClBackCancelOk/style.scss +2 -0
- package/src/components/widget/ClCookieBanner/style.scss +2 -0
- package/src/components/widget/ClPage/style.scss +2 -0
- package/src/fonts/DMMono/DMMono.scss +8 -6
- package/src/fonts/FontAwesome5/FontAwesome5.scss +5 -3
- package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap.scss +5 -3
- package/src/styles/_global.scss +12 -51
- package/src/styles/abstracts/app.scss +23 -0
- package/src/styles/{components/button.variables.scss → abstracts/button.scss} +5 -9
- package/src/styles/abstracts/color.scss +11 -0
- package/src/styles/{assets/fontawesome.variables.scss → abstracts/fontawesome.scss} +3 -0
- package/src/styles/{components/form.variables.scss → abstracts/form.scss} +6 -0
- package/src/styles/{layout/grid.variables.scss → abstracts/grid.scss} +8 -1
- package/src/styles/abstracts/responsive.scss +84 -0
- package/src/styles/abstracts/spacing.scss +51 -0
- package/src/styles/abstracts/tools.scss +6 -0
- package/src/styles/{layout/typography.variables.scss → abstracts/typography.scss} +18 -11
- package/src/styles/assets/fontawesome.scss +4 -2
- package/src/styles/assets/logo.scss +6 -2
- package/src/styles/layout/animation.scss +2 -0
- package/src/styles/layout/app.scss +2 -0
- package/src/styles/layout/color.scss +2 -0
- package/src/styles/layout/grid.scss +3 -4
- package/src/styles/layout/helper.scss +3 -0
- package/src/styles/layout/scrollbar.scss +2 -0
- package/src/styles/layout/section.scss +1 -9
- package/src/styles/layout/spacing.scss +3 -4
- package/src/styles/layout/typography.scss +13 -12
- package/src/styles/ui.scss +88 -77
- package/src/styles/vendors/bootstrap.scss +19 -19
- package/src/styles/abstracts/brand.scss +0 -9
- package/src/styles/abstracts/layer.scss +0 -10
- package/src/styles/vendors/castlabs.scss +0 -17
package/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
@use '../../styles/global' as *;
|
|
7
|
+
|
|
8
|
+
// This file define our (bullet) lists. They use fontawesome icons as bullets.
|
|
9
|
+
|
|
10
|
+
%cl-blockquote {
|
|
11
|
+
@include cl-accent;
|
|
12
|
+
|
|
13
|
+
border-left: $bar-ui-width solid var(--cl-color-accent);
|
|
14
|
+
padding-left: calc($spacing-indent - $bar-ui-width);
|
|
15
|
+
}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
// A custom dropdown / drawer element based on <detail> and <summary>. No JS needed.
|
|
7
7
|
// Only to be used in the sidenav, as for main content we use collapsible cards in v7+.
|
|
8
8
|
|
|
9
|
+
@use '../../styles/global' as *;
|
|
10
|
+
|
|
9
11
|
$dropdown-border: 0.125rem; // a 2px border to add so there is space for the outline
|
|
10
12
|
$dropdown-color-chevron: rgba($color-ci-white, 0.5);
|
|
11
13
|
$dropdown-color-chevron-bright: rgba($color-ci-clay, 0.5);
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
// This file defines / tweaks our icons. They are based on FontAwesome v5.
|
|
7
7
|
|
|
8
|
+
@use '../../styles/global' as *;
|
|
9
|
+
|
|
8
10
|
// --- generic helper classes --------------------------------------------------
|
|
9
11
|
|
|
10
12
|
.fa-small,
|
|
@@ -26,12 +28,6 @@
|
|
|
26
28
|
|
|
27
29
|
// --- Castlabs (SVG) icons ----------------------------------------------------
|
|
28
30
|
|
|
29
|
-
$asset-img-huge: px(192);
|
|
30
|
-
$asset-img-large: px(128);
|
|
31
|
-
$asset-img-medium: px(96);
|
|
32
|
-
$asset-img-small: px(64);
|
|
33
|
-
$asset-img-tiny: px(32);
|
|
34
|
-
|
|
35
31
|
.cl-img-huge {
|
|
36
32
|
height: $asset-img-huge;
|
|
37
33
|
width: $asset-img-huge;
|
|
@@ -5,14 +5,15 @@
|
|
|
5
5
|
|
|
6
6
|
// This file define our (bullet) lists. They use fontawesome icons as bullets.
|
|
7
7
|
|
|
8
|
-
@
|
|
8
|
+
@use '../../styles/global' as *;
|
|
9
|
+
@use 'style.variables' as *;
|
|
9
10
|
|
|
10
11
|
// --- regular lists -----------------------------------------------------------
|
|
11
12
|
|
|
12
13
|
main {
|
|
13
14
|
// apply style to typical html elements only in <main>, so it does not interfer with header/footer
|
|
14
15
|
ul {
|
|
15
|
-
margin: $spacing-small 0 0 $
|
|
16
|
+
margin: $spacing-small 0 0 $spacing-indent;
|
|
16
17
|
padding: 0;
|
|
17
18
|
|
|
18
19
|
li {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
// This file define our (bullet) lists. They use fontawesome icons as bullets.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
@use '../../styles/global' as *;
|
|
9
9
|
|
|
10
10
|
%cl-list {
|
|
11
11
|
@include cl-accent;
|
|
@@ -20,11 +20,11 @@ $list-indent: $spacing-large;
|
|
|
20
20
|
@include cl-fontawesome('\f054'); // chevron
|
|
21
21
|
|
|
22
22
|
color: var(--cl-color-accent);
|
|
23
|
-
margin-left: -$
|
|
23
|
+
margin-left: -$spacing-indent;
|
|
24
24
|
margin-top: 0.175em;
|
|
25
25
|
position: absolute;
|
|
26
26
|
text-align: center;
|
|
27
|
-
width: $
|
|
27
|
+
width: $spacing-indent;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
> ul {
|
|
@@ -6,4 +6,6 @@
|
|
|
6
6
|
// This file adds & customizes bootstrap's list groups. They structure same-of-kind
|
|
7
7
|
// stuff in a table-like manner but without having the bulky table look.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// hint: see also vendors/bootstrap.scss for the actual Bootstrap imports
|
|
10
|
+
|
|
11
|
+
@use '../../styles/global' as *;
|
|
@@ -5,7 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
// This is our version of Bootstrap progress.
|
|
7
7
|
|
|
8
|
-
@
|
|
8
|
+
// @forward 'bootstrap/scss/functions';
|
|
9
|
+
// @forward 'bootstrap/scss/variables';
|
|
10
|
+
|
|
11
|
+
@use '../../styles/global' as *;
|
|
12
|
+
@use 'sass:math';
|
|
13
|
+
|
|
14
|
+
// hint: see also vendors/bootstrap.scss for the actual Bootstrap imports
|
|
9
15
|
|
|
10
16
|
.progress {
|
|
11
17
|
@extend %cl-color-sky;
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
// This file adds & customizes the simplebar scrollbar.
|
|
7
7
|
|
|
8
|
-
@
|
|
8
|
+
@use 'simplebar/dist/simplebar.min';
|
|
9
|
+
@use '../../styles/global' as *;
|
|
9
10
|
|
|
10
11
|
// --- scrollbar ---------------------------------------------------------------
|
|
11
12
|
.simplebar-scrollbar::before {
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
// This file adds & customizes bootstrap's tooltips.
|
|
7
7
|
|
|
8
|
-
@
|
|
8
|
+
@use '../../styles/global' as *;
|
|
9
|
+
|
|
10
|
+
// hint: see also vendors/bootstrap.scss for the actual Bootstrap imports
|
|
9
11
|
|
|
10
12
|
.cl-tooltip {
|
|
11
13
|
#{'--bs-tooltip-bg'}: var(--cl-color-background);
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
// This file defines castlabs' checkboxes and radio buttons
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
$cl-folder-prefix: '@' !default;
|
|
9
|
+
|
|
10
|
+
@use '../../../styles/global' as *;
|
|
11
|
+
|
|
12
|
+
// hint: see also vendors/bootstrap.scss for the actual Bootstrap imports
|
|
9
13
|
|
|
10
14
|
$form-check-background: $color-ci-eggshell;
|
|
11
15
|
|
|
@@ -31,7 +35,7 @@ $form-check-background: $color-ci-eggshell;
|
|
|
31
35
|
|
|
32
36
|
&:checked {
|
|
33
37
|
background-color: $color-selected;
|
|
34
|
-
background-image: url('#{$
|
|
38
|
+
background-image: url('#{$cl-folder-prefix}/assets/bs/checked.svg?no-inline');
|
|
35
39
|
border: 0;
|
|
36
40
|
}
|
|
37
41
|
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
// This file defines castlabs <select> boxes.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
$cl-folder-prefix: '@' !default;
|
|
9
|
+
|
|
10
|
+
@use '../../../styles/global' as *;
|
|
11
|
+
|
|
12
|
+
// note: bootstrap library parts are imported in vendors/bootstrap.scss
|
|
9
13
|
|
|
10
14
|
.cl-form {
|
|
11
15
|
label + select {
|
|
@@ -19,7 +23,7 @@
|
|
|
19
23
|
@include cl-form-focus;
|
|
20
24
|
|
|
21
25
|
background-image:
|
|
22
|
-
url('#{$
|
|
26
|
+
url('#{$cl-folder-prefix}/assets/bs/select.svg?no-inline'), none, none;
|
|
23
27
|
display: block;
|
|
24
28
|
|
|
25
29
|
&.cl-field-sans {
|
|
@@ -33,7 +37,7 @@
|
|
|
33
37
|
&:disabled,
|
|
34
38
|
&.disabled {
|
|
35
39
|
background-image:
|
|
36
|
-
url('#{$
|
|
40
|
+
url('#{$cl-folder-prefix}/assets/bs/select-disabled.svg?no-inline'), none, none;
|
|
37
41
|
}
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -6,10 +6,7 @@
|
|
|
6
6
|
// This file defines our sidenav. It does not define the sidenav's content inside
|
|
7
7
|
// the drawer, only how the drawer operates/opens/closes.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
$sidenav-width-closed: 0;
|
|
11
|
-
$sidenav-z-index: $layer-z-sidenav;
|
|
12
|
-
$sidenav-breakpoint: xl;
|
|
9
|
+
@use '../../../styles/global' as *;
|
|
13
10
|
|
|
14
11
|
.cl-nav-side {
|
|
15
12
|
@include spacing-before(0);
|
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
// This file defines our top-nav
|
|
7
7
|
|
|
8
|
+
@use 'sass:math';
|
|
9
|
+
@use '../../../styles/global' as *;
|
|
10
|
+
|
|
11
|
+
$sidenav-z-index: $layer-z-sidenav;
|
|
12
|
+
|
|
8
13
|
.cl-nav-top {
|
|
9
14
|
// first/top line in content area
|
|
10
15
|
@extend %section-padding;
|
|
@@ -90,10 +95,7 @@
|
|
|
90
95
|
// add & customize bootstrap navbar
|
|
91
96
|
// -----------------------------------------------------------------------------
|
|
92
97
|
|
|
93
|
-
|
|
94
|
-
@import 'bootstrap/scss/dropdown';
|
|
95
|
-
@import 'bootstrap/scss/nav';
|
|
96
|
-
@import 'bootstrap/scss/navbar';
|
|
98
|
+
// hint: see also vendors/bootstrap.scss for the actual Bootstrap imports
|
|
97
99
|
|
|
98
100
|
@mixin navbar-expand {
|
|
99
101
|
.nav-link {
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
/// @access public
|
|
4
4
|
////
|
|
5
5
|
|
|
6
|
+
@use '../../../styles/global' as *;
|
|
7
|
+
|
|
6
8
|
// This defines Castlabs data-driven tables.
|
|
7
9
|
$table-padding-vertical: 0.5rem;
|
|
8
10
|
$table-padding-horizontal: 0.5rem;
|
|
9
11
|
$table-icon-size: 2rem;
|
|
10
|
-
$table-responsive: sm;
|
|
11
12
|
$table-lineheight: 1.2em;
|
|
12
13
|
|
|
13
14
|
%cl-table-data {
|
|
@@ -80,7 +81,7 @@ $table-lineheight: 1.2em;
|
|
|
80
81
|
|
|
81
82
|
// --- responsive phone tables -----------------------------------------------
|
|
82
83
|
|
|
83
|
-
@include media-breakpoint-down($table-responsive) {
|
|
84
|
+
@include media-breakpoint-down($grid-table-responsive) {
|
|
84
85
|
&:not(.cl-table-nonresponsive) {
|
|
85
86
|
td,
|
|
86
87
|
th {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
@use '../../../../styles/global' as *;
|
|
2
|
+
|
|
1
3
|
.cl-table-data {
|
|
2
4
|
.cl-td-actions {
|
|
3
5
|
overflow-wrap: unset;
|
|
4
6
|
|
|
5
|
-
@include media-breakpoint-down($table-responsive) {
|
|
7
|
+
@include media-breakpoint-down($grid-table-responsive) {
|
|
6
8
|
table:not(.cl-table-nonresponsive) & {
|
|
7
9
|
text-align: end;
|
|
8
10
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
@use '../../../../styles/global' as *;
|
|
2
|
+
|
|
1
3
|
.cl-table-data {
|
|
2
4
|
.cl-th-audit {
|
|
3
5
|
@extend %cl-p-label;
|
|
4
6
|
|
|
5
|
-
@include media-breakpoint-down($table-responsive) {
|
|
7
|
+
@include media-breakpoint-down($grid-table-responsive) {
|
|
6
8
|
table:not(.cl-table-nonresponsive) & {
|
|
7
9
|
display: none;
|
|
8
10
|
}
|
|
@@ -15,7 +17,7 @@
|
|
|
15
17
|
text-align: center;
|
|
16
18
|
width: 0.9em;
|
|
17
19
|
|
|
18
|
-
@include media-breakpoint-down($table-responsive) {
|
|
20
|
+
@include media-breakpoint-down($grid-table-responsive) {
|
|
19
21
|
table:not(.cl-table-nonresponsive) & {
|
|
20
22
|
display: none;
|
|
21
23
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
@use '../../../../styles/global' as *;
|
|
2
|
+
|
|
1
3
|
.cl-table-data {
|
|
2
4
|
.cl-td-boolean {
|
|
3
5
|
overflow-wrap: unset;
|
|
4
6
|
text-align: center;
|
|
5
7
|
|
|
6
|
-
@include media-breakpoint-down($table-responsive) {
|
|
8
|
+
@include media-breakpoint-down($grid-table-responsive) {
|
|
7
9
|
table:not(.cl-table-nonresponsive) & {
|
|
8
10
|
text-align: left;
|
|
9
11
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use '../../../../styles/global' as *;
|
|
2
|
+
@use '../../ClTable/style.variables' as *;
|
|
3
|
+
|
|
1
4
|
.cl-table-data {
|
|
2
5
|
.cl-td-code {
|
|
3
6
|
@include typography-font(
|
|
@@ -9,7 +12,7 @@
|
|
|
9
12
|
80%
|
|
10
13
|
);
|
|
11
14
|
|
|
12
|
-
@include media-breakpoint-down($table-responsive) {
|
|
15
|
+
@include media-breakpoint-down($grid-table-responsive) {
|
|
13
16
|
table:not(.cl-table-nonresponsive) & {
|
|
14
17
|
width: 100%;
|
|
15
18
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
@use '../../../../styles/global' as *;
|
|
2
|
+
|
|
1
3
|
.cl-table-data {
|
|
2
4
|
.cl-td-date {
|
|
3
5
|
overflow-wrap: break-word;
|
|
4
6
|
width: 9.5em;
|
|
5
7
|
|
|
6
|
-
@include media-breakpoint-down($table-responsive) {
|
|
8
|
+
@include media-breakpoint-down($grid-table-responsive) {
|
|
7
9
|
table:not(.cl-table-nonresponsive) & {
|
|
8
10
|
width: 100%;
|
|
9
11
|
}
|