@triptease/tt-navbar 0.0.56 → 0.0.58

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,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.56
2
+ * @triptease/tt-navbar v0.0.58
3
3
  */
4
4
 
5
5
  // src/urlMappings.ts
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent tt-navbar following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "tt-navbar",
6
- "version": "0.0.56",
6
+ "version": "0.0.58",
7
7
  "type": "module",
8
8
  "main": "dist/src/index.js",
9
9
  "module": "dist/src/index.js",
@@ -37,16 +37,14 @@
37
37
  "@custom-elements-manifest/analyzer": "^0.10.3",
38
38
  "@open-wc/eslint-config": "^12.0.3",
39
39
  "@open-wc/testing": "^4.0.0",
40
- "@storybook/addon-a11y": "^7.6.20",
41
- "@storybook/addon-essentials": "^7.6.20",
42
- "@storybook/addon-links": "^7.6.20",
43
- "@storybook/web-components": "^7.6.20",
40
+ "@storybook/addon-a11y": "^10.0.5",
41
+ "@storybook/addon-links": "^10.0.5",
42
+ "@storybook/web-components-vite": "^10.0.6",
44
43
  "@types/mocha": "^10.0.7",
45
44
  "@typescript-eslint/eslint-plugin": "^7.16.0",
46
45
  "@typescript-eslint/parser": "^7.16.0",
47
46
  "@web/dev-server": "^0.4.6",
48
47
  "@web/storybook-builder": "^0.1.16",
49
- "@web/storybook-framework-web-components": "^0.1.2",
50
48
  "@web/test-runner": "^0.18.2",
51
49
  "concurrently": "^8.2.2",
52
50
  "eslint": "^8.57.0",
@@ -54,7 +52,7 @@
54
52
  "husky": "^9.0.11",
55
53
  "lint-staged": "^15.2.7",
56
54
  "prettier": "^3.3.2",
57
- "storybook": "^7.6.20",
55
+ "storybook": "^10.0.5",
58
56
  "tslib": "^2.6.3",
59
57
  "typescript": "^5.5.3"
60
58
  },
package/src/styles.ts CHANGED
@@ -163,7 +163,11 @@ export const styles = css`
163
163
  align-items: baseline;
164
164
 
165
165
  &::marker {
166
- content: '';
166
+ display: none;
167
+ }
168
+
169
+ &::-webkit-details-marker {
170
+ display: none;
167
171
  }
168
172
  }
169
173
 
@@ -286,7 +290,7 @@ export const styles = css`
286
290
  opacity: 0;
287
291
  }
288
292
 
289
- .nav-toggle-button:is(:hover,:focus-within) .nav-toggle-tooltip {
293
+ .nav-toggle-button:is(:hover, :focus-within) .nav-toggle-tooltip {
290
294
  visibility: visible;
291
295
  opacity: 1;
292
296
  }
@@ -320,5 +324,8 @@ export const styles = css`
320
324
  padding: var(--space-scale-1); /* match tt-combobox height */
321
325
  font-size: var(--font-size-200);
322
326
  color: var(--color-text-inverted-200);
327
+ text-wrap: nowrap;
328
+ overflow: hidden;
329
+ text-overflow: ellipsis;
323
330
  }
324
331
  `;
@@ -8,8 +8,8 @@ const meta = {
8
8
  clientKey: { control: 'text' },
9
9
  clients: { control: 'object' },
10
10
  campaignManagerUrl: { control: 'text' },
11
- onClientChange: { action: 'clientChanged' }
12
- }
11
+ onClientChange: { action: 'clientChanged' },
12
+ },
13
13
  };
14
14
 
15
15
  export default meta;
@@ -34,11 +34,11 @@ interface ArgTypes {
34
34
  }
35
35
 
36
36
  const Template: Story<ArgTypes> = ({
37
- clientKey = 'zxd47KQGAP',
38
- clients = [],
39
- campaignManagerUrl = 'https://app.campaign-manager.triptease.io',
40
- onClientChange
41
- }: ArgTypes) => html`
37
+ clientKey = 'zxd47KQGAP',
38
+ clients = [],
39
+ campaignManagerUrl = 'https://app.campaign-manager.triptease.io',
40
+ onClientChange,
41
+ }: ArgTypes) => html`
42
42
  <div>
43
43
  <tt-navbar
44
44
  client-key=${clientKey}
@@ -52,22 +52,35 @@ const Template: Story<ArgTypes> = ({
52
52
 
53
53
  const clientChangeHandler = (clientKey: string) => {
54
54
  console.log('Client changed to:', clientKey);
55
- }
55
+ };
56
56
 
57
57
  export const MultipleClients = Template.bind({});
58
58
  MultipleClients.args = {
59
59
  clientKey: 'zxd47KQGAP',
60
60
  clients: [
61
61
  { clientKey: 'zxd47KQGAP', displayName: 'Demo Client' },
62
- { clientKey: 'a1b2c3d4e5', displayName: 'Another Client' }
62
+ { clientKey: 'a1b2c3d4e5', displayName: 'Another Client' },
63
+ {
64
+ clientKey: 'f6g7h8i9j0',
65
+ displayName: 'Demo Client with an Exceptionally Long Name for Testing',
66
+ },
63
67
  ],
64
- onClientChange: clientChangeHandler
68
+ onClientChange: clientChangeHandler,
65
69
  };
66
70
 
67
71
  export const SingleClient = Template.bind({});
68
72
  SingleClient.args = {
73
+ clientKey: 'zxd47KQGAP',
74
+ clients: [{ clientKey: 'zxd47KQGAP', displayName: 'Demo Client' }],
75
+ };
76
+
77
+ export const SingleClientLongName = Template.bind({});
78
+ SingleClientLongName.args = {
69
79
  clientKey: 'zxd47KQGAP',
70
80
  clients: [
71
- { clientKey: 'zxd47KQGAP', displayName: 'Demo Client' }
72
- ]
81
+ {
82
+ clientKey: 'zxd47KQGAP',
83
+ displayName: 'Demo Client with an Exceptionally Long Name for Testing',
84
+ },
85
+ ],
73
86
  };