@fiscozen/card 1.0.0-beta.1 → 1.0.0-beta.2

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/FzCard.vue +7 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiscozen/card",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.2",
4
4
  "description": "Design System Card component",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -33,9 +33,9 @@
33
33
  "@awesome.me/kit-8137893ad3": "^1.0.65",
34
34
  "@fortawesome/fontawesome-svg-core": "^6.5.1",
35
35
  "@fortawesome/vue-fontawesome": "^3.0.6",
36
- "@fiscozen/tsconfig": "^0.1.0",
37
36
  "@fiscozen/prettier-config": "^0.1.0",
38
- "@fiscozen/eslint-config": "^0.1.0"
37
+ "@fiscozen/eslint-config": "^0.1.0",
38
+ "@fiscozen/tsconfig": "^0.1.0"
39
39
  },
40
40
  "license": "MIT",
41
41
  "scripts": {
package/src/FzCard.vue CHANGED
@@ -87,6 +87,10 @@ const headerContainerComputedClass = computed(() => [
87
87
  props.collapsible ? "cursor-pointer" : "",
88
88
  ]);
89
89
 
90
+ const headerTitleClass = computed(() => {
91
+ return props.environment === 'backoffice' ? 'py-2' : 'py-8';
92
+ });
93
+
90
94
  const backgroundColor = computed(() => {
91
95
  switch (normalizedColor.value) {
92
96
  case "blue":
@@ -174,17 +178,17 @@ defineExpose({
174
178
  @click="toggleOpen"
175
179
  >
176
180
  <div :class="headerStaticClass">
177
- <div class="flex flex-row gap-12 items-center">
181
+ <div :class="['flex flex-row gap-12 items-start', headerTitleClass]">
178
182
  <h2
179
183
  v-if="title"
180
- class="text-core-black font-medium text-xl m-0 p-0 break-words"
184
+ class="text-core-black font-medium text-xl m-0 p-0 break-words overflow-wrap-anywhere min-w-0 flex-shrink"
181
185
  :title="title"
182
186
  >
183
187
  {{ title }}
184
188
  </h2>
185
189
  <slot name="header"></slot>
186
190
  </div>
187
- <div class="flex flex-row gap-8 items-center">
191
+ <div class="flex flex-row gap-8 items-start">
188
192
  <FzIconButton
189
193
  v-if="hasInfoIcon"
190
194
  iconName="circle-question"