@rossigee/clarity-ui 18.2.1-fixed
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 +29 -0
- package/STYLES.md +1796 -0
- package/accordion/_accordion.clarity.scss +81 -0
- package/accordion/_properties.accordion.scss +45 -0
- package/accordion/_variables.accordion.scss +91 -0
- package/button/_buttons.clarity.scss +374 -0
- package/button/_mixins.buttons.scss +232 -0
- package/button/_properties.buttons.scss +325 -0
- package/button/_properties.toggles.scss +35 -0
- package/button/_variables.buttons.scss +843 -0
- package/button/_variables.toggles.scss +41 -0
- package/button/button-group/_button-group.clarity.scss +193 -0
- package/clr-ui.css +31728 -0
- package/clr-ui.css.map +1 -0
- package/clr-ui.min.css +52 -0
- package/clr-ui.min.css.map +1 -0
- package/collapsible-panel/_mixins.collapsible-panel.scss +189 -0
- package/collapsible-panel/_properties.collapsible-panel.scss +42 -0
- package/collapsible-panel/_variables.collapsible-panel.scss +40 -0
- package/data/_mixins.tables.scss +111 -0
- package/data/_properties.tables.scss +62 -0
- package/data/_tables.clarity.scss +120 -0
- package/data/_variables.tables.scss +42 -0
- package/data/datagrid/_datagrid.clarity.scss +1753 -0
- package/data/datagrid/_mixins.datagrid.scss +102 -0
- package/data/datagrid/_properties.datagrid.scss +90 -0
- package/data/datagrid/_variables.datagrid.scss +96 -0
- package/data/stack-view/_properties.stack-view.scss +50 -0
- package/data/stack-view/_stack-view.clarity.scss +267 -0
- package/data/stack-view/_variables.stack-view.scss +32 -0
- package/data/tree-view/_properties.tree-view.scss +41 -0
- package/data/tree-view/_tree-view.clarity.scss +281 -0
- package/data/tree-view/_variables.tree-view.scss +51 -0
- package/emphasis/alert/_alert.clarity.scss +467 -0
- package/emphasis/alert/_mixins.alert.scss +96 -0
- package/emphasis/alert/_properties.alert.scss +183 -0
- package/emphasis/alert/_variables.alert.scss +502 -0
- package/emphasis/badge/_badges.clarity.scss +61 -0
- package/emphasis/badge/_mixins.bades.scss +34 -0
- package/emphasis/badge/_properties.badges.scss +82 -0
- package/emphasis/badge/_variables.badges.scss +160 -0
- package/emphasis/label/_labels.clarity.scss +175 -0
- package/emphasis/label/_mixins.label.scss +76 -0
- package/emphasis/label/_properties.label.scss +105 -0
- package/emphasis/label/_variables.label.scss +181 -0
- package/forms/combobox/_combobox.clarity.scss +322 -0
- package/forms/combobox/_properties.combobox.scss +45 -0
- package/forms/combobox/_variables.combobox.scss +32 -0
- package/forms/datepicker/_datepicker.clarity.scss +259 -0
- package/forms/datepicker/_mixins.datepicker.scss +90 -0
- package/forms/datepicker/_properties.datepicker.scss +46 -0
- package/forms/datepicker/_variables.datepicker.scss +74 -0
- package/forms/styles/_checkbox.clarity.scss +193 -0
- package/forms/styles/_containers.clarity.scss +228 -0
- package/forms/styles/_datalist.clarity.scss +47 -0
- package/forms/styles/_file-input.clarity.scss +134 -0
- package/forms/styles/_file.clarity.scss +52 -0
- package/forms/styles/_form.clarity.scss +87 -0
- package/forms/styles/_input-group.clarity.scss +118 -0
- package/forms/styles/_input.clarity.scss +78 -0
- package/forms/styles/_mixins.forms.scss +173 -0
- package/forms/styles/_number-input.clarity.scss +58 -0
- package/forms/styles/_password.clarity.scss +26 -0
- package/forms/styles/_properties.forms.scss +121 -0
- package/forms/styles/_radio.clarity.scss +120 -0
- package/forms/styles/_range.clarity.scss +124 -0
- package/forms/styles/_select.clarity.scss +178 -0
- package/forms/styles/_textarea.clarity.scss +77 -0
- package/forms/styles/_toggles.clarity.scss +209 -0
- package/forms/styles/_variables.forms.scss +128 -0
- package/icon/icon.component.scss +242 -0
- package/image/_icons.clarity.scss +101 -0
- package/image/_images.clarity.scss +42 -0
- package/image/_mixins.images.scss +11 -0
- package/layout/_card.clarity.scss +311 -0
- package/layout/_login.clarity.scss +240 -0
- package/layout/_properties.card.scss +36 -0
- package/layout/_properties.login.scss +32 -0
- package/layout/_variables.card.scss +23 -0
- package/layout/_variables.login.scss +22 -0
- package/layout/breadcrumbs/_breadcrumbs.clarity.scss +60 -0
- package/layout/breadcrumbs/_properties.breadcrumbs.scss +18 -0
- package/layout/breadcrumbs/_variables.breadcrumbs.scss +11 -0
- package/layout/grid/_grid.scss +23 -0
- package/layout/grid/grid/_grid.scss +39 -0
- package/layout/grid/mixins/_breakpoint.scss +83 -0
- package/layout/grid/mixins/_clearfix.scss +13 -0
- package/layout/grid/mixins/_grid-framework.scss +91 -0
- package/layout/grid/mixins/_grid.scss +39 -0
- package/layout/grid/utilities/_align.scss +30 -0
- package/layout/grid/utilities/_clearfix.scss +12 -0
- package/layout/grid/utilities/_display.scss +18 -0
- package/layout/grid/utilities/_flex.scss +222 -0
- package/layout/grid/utilities/_float.scss +26 -0
- package/layout/grid/utilities/_visibility.scss +60 -0
- package/layout/main-container/_layout.clarity.scss +87 -0
- package/layout/main-container/_properties.header.scss +39 -0
- package/layout/main-container/_variables.header.scss +32 -0
- package/layout/nav/_header.clarity.scss +40 -0
- package/layout/nav/_links.clarity.scss +84 -0
- package/layout/nav/_mixins.header.scss +332 -0
- package/layout/nav/_mixins.responsive-nav.scss +75 -0
- package/layout/nav/_nav.clarity.scss +100 -0
- package/layout/nav/_properties.nav.scss +27 -0
- package/layout/nav/_properties.responsive-nav.scss +23 -0
- package/layout/nav/_properties.subnav.scss +19 -0
- package/layout/nav/_responsive-nav.clarity.scss +488 -0
- package/layout/nav/_subnav.clarity.scss +48 -0
- package/layout/nav/_variables.nav.scss +13 -0
- package/layout/nav/_variables.responsive-nav.scss +28 -0
- package/layout/nav/_variables.subnav.scss +21 -0
- package/layout/tabs/_mixins.tabs.scss +41 -0
- package/layout/tabs/_properties.tabs.scss +25 -0
- package/layout/tabs/_tabs.clarity.scss +110 -0
- package/layout/tabs/_variables.tabs.scss +17 -0
- package/layout/vertical-nav/_mixins.vertical-nav.scss +52 -0
- package/layout/vertical-nav/_properties.vertical-nav.scss +73 -0
- package/layout/vertical-nav/_variables.vertical-nav.scss +52 -0
- package/layout/vertical-nav/_vertical-nav.clarity.scss +469 -0
- package/main.scss +14 -0
- package/modal/_modal.clarity.scss +362 -0
- package/modal/_properties.modal.scss +45 -0
- package/modal/_variables.modal.scss +38 -0
- package/package.json +15 -0
- package/popover/common/_popover.clarity.scss +28 -0
- package/popover/dropdown/_dropdown.clarity.scss +326 -0
- package/popover/dropdown/_menu-mixins.clarity.scss +132 -0
- package/popover/dropdown/_properties.dropdown.scss +50 -0
- package/popover/dropdown/_variables.dropdown.scss +36 -0
- package/popover/signpost/_properties.signpost.scss +34 -0
- package/popover/signpost/_signposts.clarity.scss +414 -0
- package/popover/signpost/_variables.signpost.scss +21 -0
- package/popover/tooltip/_mixins.tooltip.scss +186 -0
- package/popover/tooltip/_properties.tooltip.scss +28 -0
- package/popover/tooltip/_tooltips.clarity.scss +122 -0
- package/popover/tooltip/_variables.tooltip.scss +20 -0
- package/progress/progress-bars/_progress-bars.clarity.scss +616 -0
- package/progress/progress-bars/_properties.progress-bars.scss +24 -0
- package/progress/progress-bars/_variables.progress-bars.scss +15 -0
- package/progress/progress-bars/utils/_mixins.clarity.scss +18 -0
- package/progress/spinner/_mixins.spinner.scss +30 -0
- package/progress/spinner/_properties.spinner.scss +37 -0
- package/progress/spinner/_spinner.clarity.scss +148 -0
- package/progress/spinner/_variables.spinner.scss +25 -0
- package/stepper/_properties.stepper.scss +29 -0
- package/stepper/_stepper.clarity.scss +184 -0
- package/stepper/_variables.stepper.scss +13 -0
- package/styles/_a11y.scss +14 -0
- package/styles/_close.clarity.scss +60 -0
- package/styles/_components.clarity.scss +183 -0
- package/styles/_mixins.scss +478 -0
- package/styles/_normalize.scss +292 -0
- package/styles/_reboot.clarity.scss +374 -0
- package/styles/_variables.clarity.scss +139 -0
- package/styles/core/base/base.element.scss +97 -0
- package/styles/core/global.scss +12 -0
- package/styles/core/layout/_alignments.scss +18 -0
- package/styles/core/layout/_container.scss +29 -0
- package/styles/core/layout/_display.scss +58 -0
- package/styles/core/layout/_optimize.scss +60 -0
- package/styles/core/layout/_shadow-dom.scss +47 -0
- package/styles/core/layout/_spacing.scss +31 -0
- package/styles/core/layout/_type-grid.scss +66 -0
- package/styles/core/layout/_type-horizontal.scss +33 -0
- package/styles/core/layout/_type-vertical.scss +26 -0
- package/styles/core/layout/mixins/_mixins.alignment.scss +35 -0
- package/styles/core/layout/mixins/_mixins.display.scss +23 -0
- package/styles/core/layout/mixins/_mixins.grid.scss +105 -0
- package/styles/core/layout/mixins/_mixins.scss +106 -0
- package/styles/core/layout/mixins/_mixins.shadow-dom.scss +106 -0
- package/styles/core/layout/mixins/_mixins.type-horizontal.scss +113 -0
- package/styles/core/layout/mixins/_mixins.type-vertical.scss +108 -0
- package/styles/core/module.layout.scss +22 -0
- package/styles/core/module.reset.scss +48 -0
- package/styles/core/module.typography.scss +9 -0
- package/styles/core/theme.dark.scss +266 -0
- package/styles/core/theme.high-contrast.scss +42 -0
- package/styles/core/theme.low-motion.scss +20 -0
- package/styles/core/tokens/_alias-interaction.scss +59 -0
- package/styles/core/tokens/_alias-object-background.scss +14 -0
- package/styles/core/tokens/_alias-object-border.scss +21 -0
- package/styles/core/tokens/_alias-object-container.scss +20 -0
- package/styles/core/tokens/_alias-object-opacity.scss +15 -0
- package/styles/core/tokens/_alias-object-shadow.scss +17 -0
- package/styles/core/tokens/_alias-status.scss +34 -0
- package/styles/core/tokens/_alias-typography.scss +101 -0
- package/styles/core/tokens/_alias-utility.scss +38 -0
- package/styles/core/tokens/_alias-viz-colors.scss +170 -0
- package/styles/core/tokens/_global-animation.scss +32 -0
- package/styles/core/tokens/_global-colors.scss +249 -0
- package/styles/core/tokens/_global-space.scss +52 -0
- package/styles/core/tokens/_internal-scale.scss +14 -0
- package/styles/core/tokens/_properties.tokens.scss +21 -0
- package/styles/core/tokens/_variables.tokens.scss +770 -0
- package/styles/core/typography/_legacy-typography.scss +328 -0
- package/styles/core/typography/_mixins.typography.scss +18 -0
- package/styles/core/typography/_typography.scss +321 -0
- package/styles/variables/_properties.density.scss +223 -0
- package/styles/variables/_properties.global.scss +51 -0
- package/styles/variables/_properties.layout.scss +21 -0
- package/styles/variables/_properties.scss +11 -0
- package/styles/variables/_properties.typography.scss +164 -0
- package/styles/variables/_variables.density.scss +114 -0
- package/styles/variables/_variables.global.scss +82 -0
- package/styles/variables/_variables.layout.scss +37 -0
- package/styles/variables/_variables.scss +11 -0
- package/styles/variables/_variables.typography.scss +156 -0
- package/timeline/_properties.timeline.scss +38 -0
- package/timeline/_timeline.clarity.scss +172 -0
- package/timeline/_variables.timeline.scss +29 -0
- package/typography/_code.scss +36 -0
- package/typography/_font-metropolis.scss +45 -0
- package/typography/_lists.scss +81 -0
- package/typography/_typography.scss +322 -0
- package/utils/animations/_animations.clarity.scss +44 -0
- package/utils/animations/_mixins.animations.scss +33 -0
- package/wizard/_properties.wizard.scss +53 -0
- package/wizard/_variables.wizard.scss +58 -0
- package/wizard/_wizard.clarity.scss +688 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
3
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
4
|
+
* This software is released under MIT license.
|
|
5
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use '../styles/mixins';
|
|
9
|
+
@use '../styles/core/tokens/variables.tokens' as tokens;
|
|
10
|
+
@use 'variables.collapsible-panel' as panel-variables;
|
|
11
|
+
@use '../styles/variables/variables.density' as density;
|
|
12
|
+
|
|
13
|
+
@mixin collapsible-panel(
|
|
14
|
+
$prefix,
|
|
15
|
+
$text-color: panel-variables.$clr-collapsible-panel-text-color,
|
|
16
|
+
$text-color-hover: panel-variables.$clr-collapsible-panel-text-color-hover,
|
|
17
|
+
$text-color-active: panel-variables.$clr-collapsible-panel-text-color-active,
|
|
18
|
+
$panel-disabled-color: panel-variables.$clr-collapsible-panel-panel-disabled-color,
|
|
19
|
+
$content-background-color: panel-variables.$clr-collapsible-panel-content-background-color,
|
|
20
|
+
$header-background-color: panel-variables.$clr-collapsible-panel-header-background-color,
|
|
21
|
+
$header-disabled-background-color: panel-variables.$clr-collapsible-panel-header-disabled-background-color,
|
|
22
|
+
$header-hover-background-color: panel-variables.$clr-collapsible-panel-header-hover-background-color,
|
|
23
|
+
$header-active-background-color: panel-variables.$clr-collapsible-panel-header-active-background-color,
|
|
24
|
+
$header-open-background-color: panel-variables.$clr-collapsible-panel-header-open-background-color,
|
|
25
|
+
$header-open-active-background-color: panel-variables.$clr-collapsible-panel-header-open-active-background-color,
|
|
26
|
+
$header-open-hover-background-color: panel-variables.$clr-collapsible-panel-header-open-hover-background-color,
|
|
27
|
+
$border-color: panel-variables.$clr-collapsible-panel-border-color,
|
|
28
|
+
$content-color: panel-variables.$clr-collapsible-panel-content-color,
|
|
29
|
+
$responsive-breakpoint: panel-variables.$clr-collapsible-panel-responsive-breakpoint
|
|
30
|
+
) {
|
|
31
|
+
.#{$prefix}-panel {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.#{$prefix}-header {
|
|
36
|
+
width: 100%;
|
|
37
|
+
border: tokens.$cds-alias-object-border-width-100 solid $border-color;
|
|
38
|
+
border-bottom-width: 0;
|
|
39
|
+
background: $header-background-color;
|
|
40
|
+
color: $text-color;
|
|
41
|
+
text-align: left;
|
|
42
|
+
transition: background-color tokens.$cds-global-animation-duration-quick tokens.$cds-global-animation-easing-in-out;
|
|
43
|
+
|
|
44
|
+
@include mixins.generate-typography-token('SECONDARY-13-RG-STD');
|
|
45
|
+
|
|
46
|
+
&:hover {
|
|
47
|
+
color: $text-color-hover;
|
|
48
|
+
background-color: $header-hover-background-color;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:active {
|
|
52
|
+
color: $text-color-active;
|
|
53
|
+
background-color: $header-active-background-color;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.#{$prefix}-panel-disabled > div > & {
|
|
57
|
+
background-color: $header-background-color;
|
|
58
|
+
|
|
59
|
+
&:hover,
|
|
60
|
+
&:active {
|
|
61
|
+
background-color: $header-background-color;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.#{$prefix}-panel-disabled > .#{$prefix}-panel-open > & {
|
|
66
|
+
background-color: $header-disabled-background-color;
|
|
67
|
+
|
|
68
|
+
&:hover,
|
|
69
|
+
&:active {
|
|
70
|
+
background-color: $header-disabled-background-color;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.#{$prefix}-panel:last-child {
|
|
76
|
+
.#{$prefix}-header,
|
|
77
|
+
.#{$prefix}-content {
|
|
78
|
+
border-bottom: tokens.$cds-global-space-1 solid $border-color;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.#{$prefix}-header-button {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-flow: row wrap;
|
|
85
|
+
flex: 1 1 0;
|
|
86
|
+
width: 100%;
|
|
87
|
+
border: 0;
|
|
88
|
+
padding: density.$clr-base-vertical-offset-m density.$clr-base-horizontal-offset-l;
|
|
89
|
+
background: transparent;
|
|
90
|
+
color: inherit;
|
|
91
|
+
text-align: left;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
gap: density.$clr-base-gap-s;
|
|
94
|
+
|
|
95
|
+
@media (min-width: $responsive-breakpoint) {
|
|
96
|
+
flex-flow: row;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:disabled {
|
|
100
|
+
cursor: not-allowed;
|
|
101
|
+
|
|
102
|
+
.#{$prefix}-status,
|
|
103
|
+
.#{$prefix}-title,
|
|
104
|
+
.#{$prefix}-description {
|
|
105
|
+
color: $panel-disabled-color;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.#{$prefix}-status {
|
|
111
|
+
display: inline-flex;
|
|
112
|
+
width: density.$clr-base-layout-space-xl;
|
|
113
|
+
vertical-align: top;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.#{$prefix}-title {
|
|
117
|
+
display: inline-block;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.#{$prefix}-header-has-description {
|
|
121
|
+
.#{$prefix}-title {
|
|
122
|
+
min-width: panel-variables.$clr-collapsible-panel-title-min-width;
|
|
123
|
+
max-width: mixins.baselinePx(264);
|
|
124
|
+
width: 100%;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.#{$prefix}-description {
|
|
129
|
+
display: inline-block;
|
|
130
|
+
max-width: mixins.baselinePx(650);
|
|
131
|
+
|
|
132
|
+
@media (min-width: $responsive-breakpoint) {
|
|
133
|
+
margin-left: density.$clr-base-horizontal-offset-l;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.#{$prefix}-content {
|
|
138
|
+
display: none;
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
border: tokens.$cds-global-space-1 solid $border-color;
|
|
141
|
+
border-bottom: 0;
|
|
142
|
+
background: $content-background-color;
|
|
143
|
+
|
|
144
|
+
.clr-form {
|
|
145
|
+
padding: 0;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.#{$prefix}-inner-content {
|
|
150
|
+
padding: density.$clr-base-vertical-offset-xl density.$clr-base-horizontal-offset-xl;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.#{$prefix}-angle {
|
|
154
|
+
transition: all tokens.$cds-global-animation-duration-quick tokens.$cds-global-animation-easing-in-out;
|
|
155
|
+
transform: rotate(90deg);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.#{$prefix}-panel-open {
|
|
159
|
+
& > .#{$prefix}-content-region .#{$prefix}-content {
|
|
160
|
+
display: block;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
& > .#{$prefix}-header {
|
|
164
|
+
border-bottom: 0 !important;
|
|
165
|
+
background: $header-open-background-color;
|
|
166
|
+
|
|
167
|
+
&:hover {
|
|
168
|
+
background-color: $header-open-hover-background-color;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&:active {
|
|
172
|
+
color: $text-color-active;
|
|
173
|
+
background-color: $header-open-active-background-color;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.#{$prefix}-angle {
|
|
177
|
+
visibility: visible;
|
|
178
|
+
transform: rotate(180deg);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.#{$prefix}-panel:not(:last-child) > div[class*='#{$prefix}-panel-'] > .#{$prefix}-header {
|
|
184
|
+
&,
|
|
185
|
+
& + .#{$prefix}-content-region > .#{$prefix}-content {
|
|
186
|
+
border-bottom: none;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
3
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
4
|
+
* This software is released under MIT license.
|
|
5
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use '../styles/mixins';
|
|
9
|
+
@use '../styles/core/tokens/variables.tokens' as tokens;
|
|
10
|
+
@use '../styles/variables/variables.density' as density;
|
|
11
|
+
|
|
12
|
+
@include mixins.exports('collapsible-panel.properties') {
|
|
13
|
+
@include mixins.root-or-host() {
|
|
14
|
+
&,
|
|
15
|
+
[clr-density] {
|
|
16
|
+
--clr-collapsible-panel-border-radius: #{density.$clr-base-border-radius-s};
|
|
17
|
+
--clr-collapsible-panel-title-min-width: #{density.$clr-base-layout-space-4xl};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&,
|
|
21
|
+
[cds-theme] {
|
|
22
|
+
--clr-collapsible-panel-text-color: #{tokens.$cds-alias-object-interaction-color};
|
|
23
|
+
--clr-collapsible-panel-text-color-hover: #{tokens.$cds-alias-object-interaction-color-hover};
|
|
24
|
+
--clr-collapsible-panel-text-color-active: #{tokens.$cds-alias-object-interaction-color-active};
|
|
25
|
+
--clr-collapsible-panel-panel-disabled-color: #{tokens.$cds-alias-object-interaction-color-disabled};
|
|
26
|
+
--clr-collapsible-panel-content-background-color: #{tokens.$cds-alias-object-container-background};
|
|
27
|
+
--clr-collapsible-panel-content-color: #{tokens.$cds-alias-typography-color-450};
|
|
28
|
+
--clr-collapsible-panel-header-background-color: #{tokens.$cds-alias-object-container-background};
|
|
29
|
+
--clr-collapsible-panel-header-disabled-background-color: #{tokens.$cds-alias-object-container-background};
|
|
30
|
+
--clr-collapsible-panel-header-hover-background-color: #{tokens.$cds-alias-object-interaction-background-hover};
|
|
31
|
+
--clr-collapsible-panel-header-active-background-color: #{tokens.$cds-alias-object-interaction-background-active};
|
|
32
|
+
--clr-collapsible-panel-header-open-background-color: #{tokens.$cds-alias-object-interaction-background-selected};
|
|
33
|
+
--clr-collapsible-panel-header-open-active-background-color: var(
|
|
34
|
+
--cds-alias-object-interaction-background-selected-active
|
|
35
|
+
);
|
|
36
|
+
--clr-collapsible-panel-header-open-hover-background-color: var(
|
|
37
|
+
--cds-alias-object-interaction-background-selected-hover
|
|
38
|
+
);
|
|
39
|
+
--clr-collapsible-panel-border-color: #{tokens.$cds-alias-object-border-color};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
3
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
4
|
+
* This software is released under MIT license.
|
|
5
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use 'sass:map';
|
|
9
|
+
@use '../styles/variables/variables';
|
|
10
|
+
|
|
11
|
+
$clr-collapsible-panel-text-color: var(--clr-collapsible-panel-text-color) !default;
|
|
12
|
+
$clr-collapsible-panel-text-color-hover: var(--clr-collapsible-panel-text-color-hover) !default;
|
|
13
|
+
$clr-collapsible-panel-text-color-active: var(--clr-collapsible-panel-text-color-active) !default;
|
|
14
|
+
$clr-collapsible-panel-panel-disabled-color: var(--clr-collapsible-panel-panel-disabled-color) !default;
|
|
15
|
+
$clr-collapsible-panel-content-background-color: var(--clr-collapsible-panel-content-background-color) !default;
|
|
16
|
+
$clr-collapsible-panel-header-background-color: var(--clr-collapsible-panel-header-background-color) !default;
|
|
17
|
+
$clr-collapsible-panel-header-disabled-background-color: var(
|
|
18
|
+
--clr-collapsible-panel-header-disabled-background-color
|
|
19
|
+
) !default;
|
|
20
|
+
$clr-collapsible-panel-header-hover-background-color: var(
|
|
21
|
+
--clr-collapsible-panel-header-hover-background-color
|
|
22
|
+
) !default;
|
|
23
|
+
$clr-collapsible-panel-header-active-background-color: var(
|
|
24
|
+
--clr-collapsible-panel-header-active-background-color
|
|
25
|
+
) !default;
|
|
26
|
+
$clr-collapsible-panel-header-open-background-color: var(--clr-collapsible-panel-header-open-background-color) !default;
|
|
27
|
+
$clr-collapsible-panel-header-open-active-background-color: var(
|
|
28
|
+
--clr-collapsible-panel-header-open-active-background-color
|
|
29
|
+
) !default;
|
|
30
|
+
$clr-collapsible-panel-header-open-hover-background-color: var(
|
|
31
|
+
--clr-collapsible-panel-header-open-hover-background-color
|
|
32
|
+
) !default;
|
|
33
|
+
|
|
34
|
+
$clr-collapsible-panel-content-color: var(--clr-collapsible-panel-content-color) !default;
|
|
35
|
+
|
|
36
|
+
$clr-collapsible-panel-responsive-breakpoint: map.get(variables.$clr-grid-breakpoints, sm) !default;
|
|
37
|
+
|
|
38
|
+
$clr-collapsible-panel-border-color: var(--clr-collapsible-panel-border-color) !default;
|
|
39
|
+
$clr-collapsible-panel-border-radius: var(--clr-collapsible-panel-border-radius) !default;
|
|
40
|
+
$clr-collapsible-panel-title-min-width: var(--clr-collapsible-panel-title-min-width) !default;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
3
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
4
|
+
* This software is released under MIT license.
|
|
5
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use 'sass:meta';
|
|
9
|
+
@use '../styles/mixins';
|
|
10
|
+
@use 'variables.tables' as table-variables;
|
|
11
|
+
@use '../styles/core/tokens/variables.tokens' as tokens;
|
|
12
|
+
|
|
13
|
+
// Mixin for basic table styles to be able to reuse them on non-table elements.
|
|
14
|
+
|
|
15
|
+
@mixin basic-table($table, $thead, $tbody, $tr, $th, $td) {
|
|
16
|
+
#{$table} {
|
|
17
|
+
border-collapse: separate;
|
|
18
|
+
border: table-variables.$clr-table-borderwidth solid table-variables.$clr-table-border-color;
|
|
19
|
+
border-radius: table-variables.$clr-table-border-radius;
|
|
20
|
+
background-color: table-variables.$clr-table-bgcolor;
|
|
21
|
+
color: table-variables.$clr-table-font-color;
|
|
22
|
+
margin: table-variables.$clr-table-margin;
|
|
23
|
+
max-width: 100%;
|
|
24
|
+
width: 100%;
|
|
25
|
+
|
|
26
|
+
#{$th},
|
|
27
|
+
#{$td} {
|
|
28
|
+
border-top: table-variables.$clr-table-borderwidth solid table-variables.$clr-tablerow-bordercolor;
|
|
29
|
+
padding: table-variables.$clr-table-cell-padding;
|
|
30
|
+
text-align: center;
|
|
31
|
+
vertical-align: top;
|
|
32
|
+
|
|
33
|
+
&.left {
|
|
34
|
+
text-align: left;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.right {
|
|
38
|
+
text-align: right;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#{$td} {
|
|
43
|
+
min-height: table-variables.$clr-table-cell-height;
|
|
44
|
+
|
|
45
|
+
@include mixins.generate-typography-token('BODY-14-RG-CPT');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
#{$th} {
|
|
49
|
+
@include mixins.generate-typography-token('ColumnHeader-11-SB-CPT');
|
|
50
|
+
|
|
51
|
+
color: table-variables.$clr-thead-color;
|
|
52
|
+
background-color: table-variables.$clr-thead-bgcolor;
|
|
53
|
+
vertical-align: middle;
|
|
54
|
+
border-bottom: table-variables.$clr-table-borderwidth solid table-variables.$clr-table-border-color;
|
|
55
|
+
border-top: 0 none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
#{$tbody} #{$tr}:first-child #{$td} {
|
|
59
|
+
border-top: 0 none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// in the rare event we have more than one tbody element.
|
|
63
|
+
#{$tbody} + #{$tbody} {
|
|
64
|
+
border-top: table-variables.$clr-table-borderwidth solid table-variables.$clr-table-border-color;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Rounded corners on tables are a pain...
|
|
68
|
+
#{$thead} #{$th} {
|
|
69
|
+
&:first-child {
|
|
70
|
+
border-radius: 0;
|
|
71
|
+
border-top-left-radius: table-variables.$clr-table-cornercellradius;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:last-child {
|
|
75
|
+
border-radius: 0;
|
|
76
|
+
border-top-right-radius: table-variables.$clr-table-cornercellradius;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
#{$tbody}:last-child {
|
|
81
|
+
#{$tr}:last-child {
|
|
82
|
+
#{$td} {
|
|
83
|
+
&:first-child {
|
|
84
|
+
border-radius: 0;
|
|
85
|
+
border-bottom-left-radius: table-variables.$clr-table-cornercellradius;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:last-child {
|
|
89
|
+
border-radius: 0;
|
|
90
|
+
border-bottom-right-radius: table-variables.$clr-table-cornercellradius;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// @deprecated CSS rule #{$table}-compact in favor of compact mode in density theme
|
|
98
|
+
#{$table}-compact {
|
|
99
|
+
--clr-table-margin: #{mixins.baselinePx(20)} 0 0 0;
|
|
100
|
+
--clr-table-cell-vertical-padding: #{table-variables.$clr-table-compact-vertical-padding};
|
|
101
|
+
#{$th},
|
|
102
|
+
#{$td} {
|
|
103
|
+
min-height: table-variables.$clr-table-compact-cell-height;
|
|
104
|
+
padding: table-variables.$clr-table-cell-compact-padding;
|
|
105
|
+
}
|
|
106
|
+
#{$td} {
|
|
107
|
+
font-size: mixins.baselinePx(13);
|
|
108
|
+
line-height: tokens.$cds-global-space-7;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
3
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
4
|
+
* This software is released under MIT license.
|
|
5
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use '../styles/mixins';
|
|
9
|
+
@use '../styles/variables/variables.density' as density;
|
|
10
|
+
@use '../styles/core/tokens/variables.tokens' as tokens;
|
|
11
|
+
|
|
12
|
+
@include mixins.exports('table.properties') {
|
|
13
|
+
@include mixins.root-or-host() {
|
|
14
|
+
--clr-table-borderwidth: #{tokens.$cds-alias-object-border-width-100};
|
|
15
|
+
--clr-table-noborder-borderwidth: #{tokens.$cds-global-space-0};
|
|
16
|
+
|
|
17
|
+
// @deprecated ALL compact properties in favor of compact mode in density theme
|
|
18
|
+
--clr-table-compact-cell-height: #{tokens.$cds-global-space-9};
|
|
19
|
+
--clr-table-compact-row-height: calc(var(--clr-table-compact-cell-height) + var(--clr-table-borderwidth));
|
|
20
|
+
--clr-table-compact-vertical-padding: #{tokens.$cds-global-space-3};
|
|
21
|
+
--clr-table-compact-horizontal-padding: #{tokens.$cds-global-space-6};
|
|
22
|
+
--clr-table-cell-compact-padding: var(--clr-table-compact-vertical-padding)
|
|
23
|
+
var(--clr-table-compact-horizontal-padding);
|
|
24
|
+
|
|
25
|
+
&,
|
|
26
|
+
[clr-density] {
|
|
27
|
+
--clr-table-border-radius: #{density.$clr-base-border-radius-s};
|
|
28
|
+
--clr-table-cornercellradius: #{density.$clr-base-border-radius-s};
|
|
29
|
+
--clr-table-cell-horizontal-padding: #{density.$clr-base-horizontal-offset-xl};
|
|
30
|
+
--clr-table-cell-vertical-padding: #{density.$clr-base-vertical-offset-multi-row-inline-m};
|
|
31
|
+
--clr-table-cell-padding: var(--clr-table-cell-vertical-padding) var(--clr-table-cell-horizontal-padding);
|
|
32
|
+
--clr-table-margin: #{density.$clr-base-vertical-offset-2xl} 0 0 0;
|
|
33
|
+
--clr-table-fontsize: #{tokens.$cds-alias-typography-secondary-font-size};
|
|
34
|
+
--clr-table-cell-height: #{density.$clr-base-dg-row-height};
|
|
35
|
+
--clr-table-row-height: calc(var(--clr-table-cell-height) + var(--clr-table-borderwidth));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&,
|
|
39
|
+
[cds-theme] {
|
|
40
|
+
// Theme variables
|
|
41
|
+
// Usage: ./data/_tables.clarity.scss
|
|
42
|
+
// Usage: ./data/datagrid/_datagrid.clarity.scss
|
|
43
|
+
--clr-table-bgcolor: #{tokens.$cds-alias-object-container-background};
|
|
44
|
+
--clr-thead-bgcolor: #{tokens.$cds-alias-object-container-background-tint};
|
|
45
|
+
|
|
46
|
+
// Usage: ./data/datagrid/_datagrid.clarity.scss
|
|
47
|
+
--clr-table-header-border-bottom-color: #{tokens.$cds-alias-object-border-color};
|
|
48
|
+
--clr-table-footer-border-top-color: #{tokens.$cds-alias-object-border-color};
|
|
49
|
+
--clr-table-border-color: #{tokens.$cds-alias-object-border-color};
|
|
50
|
+
|
|
51
|
+
// Usage: ./data/_tables.clarity.scss
|
|
52
|
+
--clr-tablerow-bordercolor: #{tokens.$cds-alias-object-border-color};
|
|
53
|
+
|
|
54
|
+
// Usage: ./data/_tables.clarity.scss
|
|
55
|
+
// Usage: ./data/datagrid/_datagrid.clarity.scss
|
|
56
|
+
--clr-table-font-color: #{tokens.$cds-alias-typography-color-400};
|
|
57
|
+
|
|
58
|
+
// Table header styles
|
|
59
|
+
--clr-thead-color: #{tokens.$cds-alias-typography-color-400};
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
3
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
4
|
+
* This software is released under MIT license.
|
|
5
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use 'sass:meta';
|
|
9
|
+
@use '../styles/mixins';
|
|
10
|
+
@use '../styles/variables/variables.global';
|
|
11
|
+
@use 'variables.tables' as table-variables;
|
|
12
|
+
@use 'mixins.tables' as table-mixins;
|
|
13
|
+
@use '../styles/variables/variables.density' as density;
|
|
14
|
+
@use '../styles/core/tokens/variables.tokens' as tokens;
|
|
15
|
+
|
|
16
|
+
@include meta.load-css('properties.tables');
|
|
17
|
+
@include mixins.exports('tables.clarity') {
|
|
18
|
+
@include table-mixins.basic-table('.table', 'thead', 'tbody', 'tr', 'th', 'td');
|
|
19
|
+
|
|
20
|
+
.table.table-vertical {
|
|
21
|
+
thead th {
|
|
22
|
+
border: 0 none;
|
|
23
|
+
border-radius: 0;
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
th {
|
|
28
|
+
border-bottom: 0;
|
|
29
|
+
border-top: table-variables.$clr-table-borderwidth solid table-variables.$clr-table-border-color;
|
|
30
|
+
vertical-align: top;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
td,
|
|
34
|
+
th {
|
|
35
|
+
text-align: left;
|
|
36
|
+
border-color: table-variables.$clr-table-border-color;
|
|
37
|
+
|
|
38
|
+
&:first-child {
|
|
39
|
+
@include mixins.generate-typography-token('ColumnHeader-11-SB-CPT');
|
|
40
|
+
|
|
41
|
+
border-right: table-variables.$clr-table-borderwidth solid table-variables.$clr-table-border-color;
|
|
42
|
+
background-color: table-variables.$clr-thead-bgcolor;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
tbody:first-of-type {
|
|
47
|
+
tr:first-child {
|
|
48
|
+
th,
|
|
49
|
+
td {
|
|
50
|
+
border-top: 0 none;
|
|
51
|
+
|
|
52
|
+
&:first-child {
|
|
53
|
+
border-radius: 0;
|
|
54
|
+
border-top-left-radius: table-variables.$clr-table-cornercellradius;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:last-child {
|
|
58
|
+
border-radius: 0;
|
|
59
|
+
border-top-right-radius: table-variables.$clr-table-cornercellradius;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
tbody:last-child {
|
|
66
|
+
tr:last-child {
|
|
67
|
+
th,
|
|
68
|
+
td {
|
|
69
|
+
&:first-child {
|
|
70
|
+
border-radius: 0;
|
|
71
|
+
border-bottom-left-radius: table-variables.$clr-table-cornercellradius;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:last-child {
|
|
75
|
+
border-radius: 0;
|
|
76
|
+
border-bottom-right-radius: table-variables.$clr-table-cornercellradius;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.table.table-noborder {
|
|
84
|
+
border-radius: 0;
|
|
85
|
+
box-shadow: none;
|
|
86
|
+
background-color: transparent;
|
|
87
|
+
border-width: 0;
|
|
88
|
+
|
|
89
|
+
th {
|
|
90
|
+
border-bottom-color: transparent;
|
|
91
|
+
border-top: 0 none;
|
|
92
|
+
|
|
93
|
+
&:first-child {
|
|
94
|
+
// need this for vertical tables...
|
|
95
|
+
border-right: 0 none;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
td {
|
|
100
|
+
border-top: 0 none;
|
|
101
|
+
|
|
102
|
+
&:first-child {
|
|
103
|
+
border-right: 0 none;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
thead th {
|
|
108
|
+
&:first-child,
|
|
109
|
+
&:last-child {
|
|
110
|
+
border-radius: 0;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
th,
|
|
115
|
+
td {
|
|
116
|
+
// Very specific use of !important to avoid specificity inflation.
|
|
117
|
+
border-radius: 0 !important;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
3
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
4
|
+
* This software is released under MIT license.
|
|
5
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use '../styles/variables/variables';
|
|
9
|
+
|
|
10
|
+
$clr-table-borderwidth: var(--clr-table-borderwidth) !default;
|
|
11
|
+
$clr-table-border-radius: var(--clr-table-border-radius) !default;
|
|
12
|
+
$clr-table-cornercellradius: var(--clr-table-cornercellradius) !default;
|
|
13
|
+
$clr-table-cell-padding: var(--clr-table-cell-padding) !default;
|
|
14
|
+
$clr-table-cell-horizontal-padding: var(--clr-table-cell-horizontal-padding) !default;
|
|
15
|
+
$clr-table-cell-vertical-padding: var(--clr-table-cell-vertical-padding) !default;
|
|
16
|
+
$clr-table-noborder-borderwidth: var(--clr-table-noborder-borderwidth) !default;
|
|
17
|
+
|
|
18
|
+
$clr-table-bgcolor: var(--clr-table-bgcolor) !default;
|
|
19
|
+
$clr-thead-bgcolor: var(--clr-thead-bgcolor) !default;
|
|
20
|
+
|
|
21
|
+
$clr-table-header-border-bottom-color: var(--clr-table-header-border-bottom-color) !default;
|
|
22
|
+
$clr-table-footer-border-top-color: var(--clr-table-footer-border-top-color) !default;
|
|
23
|
+
$clr-table-border-color: var(--clr-table-border-color) !default;
|
|
24
|
+
|
|
25
|
+
$clr-tablerow-bordercolor: var(--clr-tablerow-bordercolor) !default;
|
|
26
|
+
|
|
27
|
+
$clr-table-font-color: var(--clr-table-font-color) !default;
|
|
28
|
+
$clr-table-margin: var(--clr-table-margin) !default;
|
|
29
|
+
|
|
30
|
+
$clr-thead-color: var(--clr-thead-color) !default;
|
|
31
|
+
|
|
32
|
+
$clr-table-fontsize: var(--clr-table-fontsize) !default;
|
|
33
|
+
|
|
34
|
+
$clr-table-cell-height: var(--clr-table-cell-height) !default;
|
|
35
|
+
$clr-table-row-height: var(--clr-table-row-height) !default;
|
|
36
|
+
|
|
37
|
+
// @deprecated ALL compact properties in favor of compact mode in density theme
|
|
38
|
+
$clr-table-cell-compact-padding: var(--clr-table-cell-compact-padding) !default;
|
|
39
|
+
$clr-table-compact-cell-height: var(--clr-table-compact-cell-height) !default;
|
|
40
|
+
$clr-table-compact-row-height: var(--clr-table-compact-row-height) !default;
|
|
41
|
+
$clr-table-compact-vertical-padding: var(--clr-table-compact-vertical-padding) !default;
|
|
42
|
+
$clr-table-compact-horizontal-padding: var(--clr-table-compact-horizontal-padding);
|