@exmg/exm-radio 1.2.4 → 1.2.5

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.
@@ -0,0 +1,25 @@
1
+ import type { StoryObj } from '@storybook/web-components-vite';
2
+ import { ExmRadioItem } from './exm-radio-item.js';
3
+ import './exm-radio-item.js';
4
+ declare const meta: {
5
+ title: string;
6
+ tags: string[];
7
+ render: (args: ExmRadioItem) => import("lit-html").TemplateResult<1>;
8
+ argTypes: {
9
+ checked: {
10
+ control: "boolean";
11
+ };
12
+ disabled: {
13
+ control: "boolean";
14
+ };
15
+ name: {
16
+ control: "text";
17
+ };
18
+ };
19
+ };
20
+ export default meta;
21
+ type Story = StoryObj<ExmRadioItem>;
22
+ export declare const Default: Story;
23
+ export declare const Checked: Story;
24
+ export declare const Disabled: Story;
25
+ export declare const CheckedDisabled: Story;
@@ -0,0 +1,45 @@
1
+ import './exm-radio-item.js';
2
+ import { html } from 'lit';
3
+ // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
4
+ const meta = {
5
+ title: 'Packages/RadioItem',
6
+ tags: ['autodocs'],
7
+ render: (args) => html `<exm-radio-item .checked=${args.checked} .disabled=${args.disabled} .name=${args.name}
8
+ ><div slot="title">${args.name}</div></exm-radio-item
9
+ >`,
10
+ argTypes: {
11
+ checked: { control: 'boolean' },
12
+ disabled: { control: 'boolean' },
13
+ name: { control: 'text' },
14
+ },
15
+ };
16
+ export default meta;
17
+ export const Default = {
18
+ args: {
19
+ checked: false,
20
+ disabled: false,
21
+ name: 'Radio Item',
22
+ },
23
+ };
24
+ export const Checked = {
25
+ args: {
26
+ checked: true,
27
+ disabled: false,
28
+ name: 'Radio Item',
29
+ },
30
+ };
31
+ export const Disabled = {
32
+ args: {
33
+ checked: false,
34
+ disabled: true,
35
+ name: 'Radio Item',
36
+ },
37
+ };
38
+ export const CheckedDisabled = {
39
+ args: {
40
+ checked: true,
41
+ disabled: true,
42
+ name: 'Radio Item',
43
+ },
44
+ };
45
+ //# sourceMappingURL=exm-radio.stories.js.map
@@ -78,6 +78,7 @@ export const style = css `
78
78
 
79
79
  slot[name='title'] {
80
80
  font-size: var(--exm-radio-title-font-size, 24px);
81
+ color: purple;
81
82
  }
82
83
 
83
84
  slot[name='content'] {
@@ -0,0 +1,25 @@
1
+ import type { StoryObj } from '@storybook/web-components-vite';
2
+ import { ExmRadioItem } from './exm-radio-item.js';
3
+ import './exm-radio-item.js';
4
+ declare const meta: {
5
+ title: string;
6
+ tags: string[];
7
+ render: (args: ExmRadioItem) => import("lit-html").TemplateResult<1>;
8
+ argTypes: {
9
+ checked: {
10
+ control: "boolean";
11
+ };
12
+ disabled: {
13
+ control: "boolean";
14
+ };
15
+ name: {
16
+ control: "text";
17
+ };
18
+ };
19
+ };
20
+ export default meta;
21
+ type Story = StoryObj<ExmRadioItem>;
22
+ export declare const Default: Story;
23
+ export declare const Checked: Story;
24
+ export declare const Disabled: Story;
25
+ export declare const CheckedDisabled: Story;
@@ -79,6 +79,7 @@ const style = css `
79
79
 
80
80
  slot[name='title'] {
81
81
  font-size: var(--exm-radio-title-font-size, 24px);
82
+ color: purple;
82
83
  }
83
84
 
84
85
  slot[name='content'] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exmg/exm-radio",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Material style radio element",
5
5
  "contributors": [
6
6
  "Ex Machina"
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "7d2d8b74ef0b3f65870699ed2aa8e1ff54d8809d"
47
+ "gitHead": "93055dd9ec113fc8161acb417322c4d6b44cd530"
48
48
  }