Skip to content

Commit

Permalink
Fix style-Tag and Theming-Order (#7057)
Browse files Browse the repository at this point in the history
  • Loading branch information
laske185 authored Nov 14, 2024
2 parents 1fc556f + d68695e commit 2a5064b
Show file tree
Hide file tree
Showing 48 changed files with 64 additions and 61 deletions.
4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
},
"dependencies": {
"@floating-ui/dom": "1.6.11",
"adopted-style-sheets": "1.1.5-rc.4",
"adopted-style-sheets": "1.1.6-rc.6",
"clsx": "2.1.1",
"color-convert": "2.0.1",
"color-rgba": "2.4.0",
Expand Down Expand Up @@ -126,7 +126,7 @@
"typescript": "5.6.3"
},
"peerDependencies": {
"adopted-style-sheets": "1.1.5-rc.4"
"adopted-style-sheets": "1.1.6-rc.6"
},
"files": [
"assets",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../host-display-block';
@import '../tooltip/style.scss';

@mixin kol-alert-styles {
@layer kol-component {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../host-display-block';
@import '../tooltip/style.scss';

@mixin kol-table-stateless-styles {
@layer kol-component {
Expand Down
6 changes: 0 additions & 6 deletions packages/components/src/components/abbr/style.css

This file was deleted.

1 change: 1 addition & 0 deletions packages/components/src/components/abbr/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../tooltip/style.scss';

@layer kol-component {
:host {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/alert/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../@shared/mixins';
@import '../@shared/kol-alert-mixin';
@import '../style';
@import '../@shared/kol-alert-mixin';

@layer kol-component {
:host {
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/badge/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../tooltip/style.scss';

@layer kol-component {
/* :host implicitly inherits font-size, e.g. for usage in headlines */
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/components/button-link/style.scss
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
@import '../@shared/mixins';
@import '../style';
@import '../link';
2 changes: 1 addition & 1 deletion packages/components/src/components/button.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import './@shared/mixins';
@import './style';
@import './tooltip/style.scss';

@layer kol-component {
:host {
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/components/button/style.scss
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
@import '../@shared/mixins';
@import '../style';
@import '../button';
1 change: 1 addition & 0 deletions packages/components/src/components/card/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../tooltip/style.scss';

@layer kol-component {
:host {
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/components/combobox/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../input-line';

@layer kol-component {
Expand All @@ -13,10 +14,12 @@
&--disabled * {
cursor: not-allowed !important;
}

&--disabled {
opacity: 0.5;
outline: none;
}

&__group {
display: inline-flex;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/form/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../input-line';
@import '../@shared/kol-alert-mixin';
@import '../link';

@include kol-alert-styles;
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/components/image/style.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
@import '../@shared/mixins';
@import '../style';

@layer kol-component {
:host {
display: inline-block;
font-size: rem(16);
}

img {
max-height: 100%;
max-width: 100%;
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/components/input-checkbox/style.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@import '../@shared/mixins';
@import '../style';
@import '../input';
@import './common';
@import './button';
@import './checkbox';
@import './switch';
@import '../@shared/kol-alert-mixin';

@include kol-alert-styles;
2 changes: 1 addition & 1 deletion packages/components/src/components/input-color/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../input-line';
@import '../@shared/kol-alert-mixin';

@include kol-alert-styles;

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/input-date/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../input-line';
@import '../@shared/kol-alert-mixin';

@include kol-alert-styles;

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/input-email/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../input-line';
@import '../@shared/kol-alert-mixin';

@include kol-alert-styles;

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/input-file/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../input-line';
@import '../@shared/kol-alert-mixin';

@include kol-alert-styles;

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/input-number/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../input-line';
@import '../@shared/kol-alert-mixin';

@include kol-alert-styles;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../input-line';
@import '../@shared/kol-alert-mixin';

@include kol-alert-styles;

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/input-radio/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../input';
@import '../@shared/kol-alert-mixin';

@include kol-alert-styles;

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/input-range/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../@shared/mixins';
@import '../@shared/kol-alert-mixin';
@import '../style';
@import '../input-line';

@include kol-alert-styles;
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/input-text/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../input-line';
@import '../@shared/kol-alert-mixin';

@include kol-alert-styles;

Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/input.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import './@shared/mixins';
@import './@shared/kol-alert-mixin';
@import './label';
@import './host-display-block';

Expand Down
2 changes: 0 additions & 2 deletions packages/components/src/components/label.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import './style';

@layer kol-component {
.required label > span::after,
.required legend > span::after {
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/components/link-button/style.scss
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
@import '../@shared/mixins';
@import '../style';
@import '../button';
2 changes: 1 addition & 1 deletion packages/components/src/components/link.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import './@shared/mixins';
@import './style';
@import '../tooltip/style.scss';

@layer kol-component {
:host {
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/components/link/style.scss
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
@import '../@shared/mixins';
@import '../style';
@import '../link';
1 change: 1 addition & 0 deletions packages/components/src/components/nav/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../tooltip/style.scss';

@layer kol-component {
:host {
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/pagination/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../tooltip/style.scss';

@layer kol-component {
:host {
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/components/popover/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import type { JSX } from '@stencil/core';
*/
@Component({
tag: 'kol-popover-wc',
styleUrl: './style.scss',
shadow: false,
})
export class KolPopover implements PopoverAPI {
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/components/popover/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import '../@shared/mixins';
@import '../style';

@layer kol-component {
:host {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/select/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../@shared/mixins';
@import '../style';
@import '../input-line';
@import '../@shared/kol-alert-mixin';

@include kol-alert-styles;

Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/components/single-select/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../input-line';

@layer kol-component {
Expand Down Expand Up @@ -45,6 +46,7 @@
&.highlighted {
background-color: #f0f0f0;
}

.single-select__listbox--cursor-hidden & {
cursor: none !important;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/span/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../style';
@import '../@shared/mixins';
@import '../style';

@layer kol-component {
:host {
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/components/split-button/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@import '../@shared/mixins';
@import '../style';
@import '../popover/style.scss';
@import '../tooltip/style.scss';

@layer kol-component {
:host {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../@shared/kol-table-stateless-mixin';

@layer kol-component {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../@shared/mixins';
@import '../@shared/kol-table-stateless-mixin';
@import '../style';
@import '../@shared/kol-table-stateless-mixin';
@import '../host-display-block';

@include kol-table-stateless-styles;
1 change: 1 addition & 0 deletions packages/components/src/components/tabs/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import '../@shared/mixins';
@import '../style';
@import '../host-display-block';
@import '../tooltip/style.scss';

@layer kol-component {
:host {
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/textarea/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../input-line';

@layer kol-component {
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/toaster/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../@shared/mixins';
@import '../style';
@import '../@shared/kol-alert-mixin';

@include kol-alert-styles;
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/components/tooltip/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { KolSpanWcTag } from '../../core/component-names';
*/
@Component({
tag: 'kol-tooltip-wc',
styleUrl: './style.scss',
shadow: false,
})
export class KolTooltipWc implements TooltipAPI {
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/components/tooltip/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import '../@shared/mixins';
@import '../style';

@layer kol-component {
:host {
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/tree-item/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../@shared/mixins';
@import '../style';

@layer kol-component {
:host {
Expand Down
2 changes: 1 addition & 1 deletion packages/designer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@types/prettier": "2.7.3",
"@unocss/preset-mini": "0.58.9",
"@unocss/webpack": "0.58.9",
"adopted-style-sheets": "1.1.5-rc.4",
"adopted-style-sheets": "1.1.6-rc.6",
"ajv": "8.17.1",
"chromedriver": "130.0.1",
"cpy-cli": "5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/samples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@types/react-dom": "18.3.1",
"@unocss/preset-uno": "0.58.9",
"@unocss/webpack": "0.58.9",
"adopted-style-sheets": "1.1.5-rc.4",
"adopted-style-sheets": "1.1.6-rc.6",
"ajv": "8.17.1",
"chromedriver": "130.0.1",
"cpy-cli": "5.0.0",
Expand Down
Loading

0 comments on commit 2a5064b

Please sign in to comment.