@warp-ds/elements 2.8.0-next.4 → 2.8.0-next.6

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.
@@ -1,6 +1,7 @@
1
1
  import type { Meta, StoryObj } from '@storybook/web-components-vite';
2
2
  import type { WarpTextField } from './textfield.js';
3
3
  import './textfield.js';
4
+ import '../affix/affix.js';
4
5
  declare const args: Partial<WarpTextField> & {
5
6
  [key: string]: any;
6
7
  };
@@ -14,6 +15,7 @@ export declare const Invalid: Story;
14
15
  export declare const Disabled: Story;
15
16
  export declare const ReadOnly: Story;
16
17
  export declare const Required: Story;
17
- export declare const WithAffix: Story;
18
+ export declare const WithSuffix: Story;
19
+ export declare const WithPrefix: Story;
18
20
  export declare const Masking: Story;
19
21
  export declare const FormParticipation: Story;
@@ -3,6 +3,7 @@ import { getStorybookHelpers } from '@wc-toolkit/storybook-helpers';
3
3
  import { html } from 'lit';
4
4
  import { prespread } from '../../.storybook/utilities.js';
5
5
  import './textfield.js';
6
+ import '../affix/affix.js';
6
7
  const { events, args, argTypes } = getStorybookHelpers('w-textfield');
7
8
  const meta = {
8
9
  title: 'Forms/Textfield',
@@ -70,7 +71,7 @@ export const Required = {
70
71
  type: 'email',
71
72
  },
72
73
  };
73
- export const WithAffix = {
74
+ export const WithSuffix = {
74
75
  args: {
75
76
  label: 'Price',
76
77
  placeholder: '1 000 000',
@@ -84,6 +85,20 @@ export const WithAffix = {
84
85
  `;
85
86
  },
86
87
  };
88
+ export const WithPrefix = {
89
+ args: {
90
+ label: 'Price',
91
+ placeholder: '1 000 000',
92
+ type: 'text',
93
+ },
94
+ render(args) {
95
+ return html `
96
+ <w-textfield ${spread(prespread(args))}>
97
+ <w-affix slot="prefix" label="kr"></w-affix>
98
+ </w-textfield>
99
+ `;
100
+ },
101
+ };
87
102
  export const Masking = {
88
103
  args: {
89
104
  label: 'Price',
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@warp-ds/elements",
4
- "version": "2.8.0-next.3",
4
+ "version": "2.8.0-next.5",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1672,11 +1672,14 @@
1672
1672
  "description": "Individual tab component used within w-tabs container.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)\n---\n",
1673
1673
  "doc-url": "",
1674
1674
  "attributes": [
1675
+ { "name": "id", "value": { "type": "string", "default": "''" } },
1675
1676
  { "name": "for", "value": { "type": "string", "default": "''" } },
1676
1677
  {
1677
- "name": "active",
1678
- "value": { "type": "boolean", "default": "false" }
1678
+ "name": "aria-selected",
1679
+ "value": { "type": "'true' | 'false'" }
1679
1680
  },
1681
+ { "name": "tabindex", "value": { "type": "number" } },
1682
+ { "name": "active", "value": { "type": "boolean" } },
1680
1683
  {
1681
1684
  "name": "over",
1682
1685
  "value": { "type": "boolean", "default": "false" }
@@ -1685,7 +1688,10 @@
1685
1688
  "events": [],
1686
1689
  "js": {
1687
1690
  "properties": [
1691
+ { "name": "id", "type": "string" },
1688
1692
  { "name": "for", "type": "string" },
1693
+ { "name": "ariaSelected", "type": "'true' | 'false'" },
1694
+ { "name": "tabIndex", "type": "number" },
1689
1695
  { "name": "active", "type": "boolean" },
1690
1696
  { "name": "over", "type": "boolean" }
1691
1697
  ],
@@ -1712,9 +1718,7 @@
1712
1718
  "name": "w-tabs",
1713
1719
  "description": "Tabs are used to organize content by grouping similar information on the same page.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)\n---\n\n\n### **Events:**\n - **change**",
1714
1720
  "doc-url": "",
1715
- "attributes": [
1716
- { "name": "active", "value": { "type": "string", "default": "''" } }
1717
- ],
1721
+ "attributes": [{ "name": "active", "value": { "type": "string" } }],
1718
1722
  "events": [{ "name": "change", "type": "CustomEvent" }],
1719
1723
  "js": {
1720
1724
  "properties": [
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@warp-ds/elements",
3
3
  "type": "module",
4
- "version": "2.8.0-next.4",
5
- "packageManager": "pnpm@10.20.0",
4
+ "version": "2.8.0-next.6",
5
+ "packageManager": "pnpm@10.30.2",
6
6
  "description": "Custom elements for Warp",
7
7
  "exports": {
8
8
  ".": {