Skip to content

Commit

Permalink
feat(sbb-mini-button-group): move to sbb-button module
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMenga committed Jul 24, 2024
1 parent e0e5355 commit a0af8d3
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 21 deletions.
1 change: 1 addition & 0 deletions src/elements/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export * from './button/secondary-button.js';
export * from './button/tertiary-button.js';
export * from './button/transparent-button.js';
export * from './button/mini-button.js';
export * from './button/mini-button-group.js';
export * from './button/button-link.js';
export * from './button/secondary-button-link.js';
export * from './button/tertiary-button-link.js';
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use '../core/styles' as sbb;
@use '../../core/styles/index' as sbb;

// Box-sizing rules contained in typography are not traversing Shadow DOM boundaries. We need to include box-sizing mixin in every component.
@include sbb.box-sizing;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { expect } from '@open-wc/testing';
import { html } from 'lit/static-html.js';

import { fixture, testA11yTreeSnapshot } from '../core/testing/private.js';
import { fixture, testA11yTreeSnapshot } from '../../core/testing/private.js';

import type { SbbMiniButtonGroupElement } from './mini-button-group.js';
import './mini-button-group.js';
import '../button/mini-button.js';
import '../divider/divider.js';
import '../mini-button.js';
import '../../divider/divider.js';

describe(`sbb-mini-button-group`, () => {
describe('renders', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { assert, expect } from '@open-wc/testing';
import { html } from 'lit/static-html.js';

import { fixture } from '../core/testing/private.js';
import { waitForLitRender } from '../core/testing/wait-for-render.js';
import { fixture } from '../../core/testing/private.js';
import { waitForLitRender } from '../../core/testing/wait-for-render.js';

import { SbbMiniButtonGroupElement } from './mini-button-group.js';
import '../button/mini-button.js';
import '../divider/divider.js';
import '../mini-button.js';
import '../../divider/divider.js';

describe('sbb-mini-button-group', () => {
let element: SbbMiniButtonGroupElement;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { assert } from '@open-wc/testing';
import { html } from 'lit/static-html.js';

import { ssrHydratedFixture } from '../core/testing/private.js';
import { ssrHydratedFixture } from '../../core/testing/private.js';

import { SbbMiniButtonGroupElement } from './mini-button-group.js';
import '../button/mini-button.js';
import '../divider/divider.js';
import '../mini-button.js';
import '../../divider/divider.js';

describe(`sbb-mini-button-group ssr`, () => {
let root: SbbMiniButtonGroupElement;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import type {
import type { TemplateResult } from 'lit';
import { html } from 'lit';

import { sbbSpread } from '../../storybook/helpers/spread.js';
import { sbbSpread } from '../../../storybook/helpers/spread.js';

import readme from './readme.md?raw';
import './mini-button-group.js';
import '../button/mini-button.js';
import '../divider/divider.js';
import '../mini-button.js';
import '../../divider/divider.js';

const size: InputType = {
control: {
Expand Down Expand Up @@ -84,7 +84,7 @@ const meta: Meta = {
extractComponentDescription: () => readme,
},
},
title: 'elements/sbb-mini-button-group',
title: 'elements/sbb-button/sbb-mini-button-group',
};

export default meta;
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
import { html, LitElement } from 'lit';
import { customElement, property } from 'lit/decorators.js';

import type { SbbMiniButtonElement } from '../button/mini-button/mini-button.js';
import { SbbNamedSlotListMixin, SbbNegativeMixin } from '../core/mixins.js';
import type { SbbDividerElement } from '../divider/divider.js';
import { SbbNamedSlotListMixin, SbbNegativeMixin } from '../../core/mixins.js';
import type { SbbDividerElement } from '../../divider/divider.js';
import type { SbbMiniButtonElement } from '../mini-button/mini-button.js';

import style from './mini-button-group.scss?lit&inline';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { html, nothing, type TemplateResult } from 'lit';

import { describeViewports, visualDiffDefault, visualDiffFocus } from '../core/testing/private.js';
import {
describeViewports,
visualDiffDefault,
visualDiffFocus,
} from '../../core/testing/private.js';

import './mini-button-group.js';
import '../button/mini-button.js';
import '../divider/divider.js';
import '../mini-button.js';
import '../../divider/divider.js';

describe('sbb-mini-button-group', () => {
const sizeCases = ['s', 'm', 'l', 'xl'];
Expand Down
File renamed without changes.

0 comments on commit a0af8d3

Please sign in to comment.