@citizenplane/pimp 10.8.0 → 10.9.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenplane/pimp",
3
- "version": "10.8.0",
3
+ "version": "10.9.0",
4
4
  "scripts": {
5
5
  "dev": "storybook dev -p 8080",
6
6
  "build-storybook": "storybook build --output-dir ./docs",
@@ -105,6 +105,7 @@ const handleClear = () => emit('onClear')
105
105
  display: inline-flex;
106
106
  padding: var(--cp-spacing-sm-md);
107
107
  align-items: center;
108
+ justify-content: center;
108
109
  border-radius: var(--cp-radius-full);
109
110
  background-color: var(--cp-background-tertiary);
110
111
  color: var(--cp-text-primary);
@@ -242,3 +242,27 @@ export const WithSlot: Story = {
242
242
  `,
243
243
  }),
244
244
  }
245
+
246
+ export const FullWidth: Story = {
247
+ render: (args: Args) => ({
248
+ components: { CpBadge },
249
+ setup() {
250
+ return { args }
251
+ },
252
+ template: `
253
+ <div style="width: 300px;">
254
+ <CpBadge v-bind="args" style="width: 100%;">
255
+ <template #leading-icon>
256
+ <span style="font-size: 16px; margin-right: 4px;">🌟</span>
257
+ </template>
258
+ <div>
259
+ Label
260
+ </div>
261
+ <template #trailing-icon>
262
+ <span style="font-size: 16px; margin-left: 4px;">🚀</span>
263
+ </template>
264
+ </CpBadge>
265
+ </div>
266
+ `,
267
+ }),
268
+ }