Skip to content

Commit 8c85c59

Browse files
fix: remove static property
1 parent c785f25 commit 8c85c59

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

second-gen/packages/core/components/divider/Divider.base.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ import { property } from 'lit/decorators.js';
1515

1616
import { SizedMixin, SpectrumElement } from '@swc/core/shared/base';
1717

18-
import {
19-
DIVIDER_STATIC_COLORS,
20-
DIVIDER_VALID_SIZES,
21-
DividerStaticColor,
22-
} from './Divider.types';
18+
import { DIVIDER_VALID_SIZES, DividerStaticColor } from './Divider.types';
2319

2420
/**
2521
* @element swc-divider
@@ -28,7 +24,6 @@ export abstract class DividerBase extends SizedMixin(SpectrumElement, {
2824
validSizes: DIVIDER_VALID_SIZES,
2925
noDefaultSize: true,
3026
}) {
31-
static readonly STATIC_COLORS = DIVIDER_STATIC_COLORS;
3227
/**
3328
* Whether the divider is vertical. If false, the divider is horizontal. The default is false.
3429
*/

second-gen/packages/swc/components/divider/stories/divider.stories.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ import type { Meta, StoryObj as Story } from '@storybook/web-components';
1515
import { getStorybookHelpers } from '@wc-toolkit/storybook-helpers';
1616

1717
import { Divider } from '@swc/components/divider';
18-
import { DIVIDER_VALID_SIZES } from '@swc/core/components/divider';
18+
import {
19+
DIVIDER_STATIC_COLORS,
20+
DIVIDER_VALID_SIZES,
21+
} from '@swc/core/components/divider';
1922

2023
import '@swc/components/divider';
2124

@@ -39,7 +42,7 @@ const { events, args, argTypes, template } = getStorybookHelpers('swc-divider');
3942
argTypes['static-color'] = {
4043
...argTypes['static-color'],
4144
control: { type: 'select' },
42-
options: [undefined, ...Divider.STATIC_COLORS],
45+
options: [undefined, ...DIVIDER_STATIC_COLORS],
4346
};
4447

4548
/**

0 commit comments

Comments
 (0)