@citizenplane/pimp 10.7.0 → 10.8.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.7.0",
3
+ "version": "10.8.0",
4
4
  "scripts": {
5
5
  "dev": "storybook dev -p 8080",
6
6
  "build-storybook": "storybook build --output-dir ./docs",
@@ -110,6 +110,7 @@ const dynamicClasses = computed(() => {
110
110
  &__body {
111
111
  display: inline-flex;
112
112
  align-items: center;
113
+ justify-content: center;
113
114
  padding: var(--cp-selectable-body-padding);
114
115
  gap: var(--cp-selectable-body-gap);
115
116
  background-color: var(--cp-selectable-body-background-color);
@@ -118,6 +119,7 @@ const dynamicClasses = computed(() => {
118
119
  background-color 0.1s ease-out,
119
120
  box-shadow 0.1s ease-out,
120
121
  color 0.1s ease-out;
122
+ width: 100%;
121
123
  }
122
124
 
123
125
  &__icon i,
@@ -97,6 +97,38 @@ export const WithIcons: Story = {
97
97
  }),
98
98
  }
99
99
 
100
+ export const FullWidth: Story = {
101
+ args: {
102
+ appearance: 'secondary',
103
+ size: Sizes.MD,
104
+ disabled: false,
105
+ label: 'Label',
106
+ isSelected: true,
107
+ isExpanded: false,
108
+ },
109
+ render: (args) => ({
110
+ components: { CpSelectableButton },
111
+ setup() {
112
+ return { args }
113
+ },
114
+ template: `
115
+ <div style="display: flex; justify-content: center; align-items: center; min-height: 240px; width:500px;">
116
+ <CpSelectableButton
117
+ style="width: 100%;"
118
+ v-bind="args"
119
+ >
120
+ <template #leading-icon>
121
+ <CpIcon type="circle" />
122
+ </template>
123
+ <template #trailing-icon>
124
+ <CpIcon type="circle" />
125
+ </template>
126
+ </CpSelectableButton>
127
+ </div>
128
+ `,
129
+ }),
130
+ }
131
+
100
132
  export const Sizing: Story = {
101
133
  args: {
102
134
  disabled: false,