bonkers-ui 1.0.20 → 1.0.21

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": "bonkers-ui",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "storybook": "start-storybook -p 6006",
@@ -1,5 +1,4 @@
1
1
  export enum EListItemTypes {
2
2
  DEFAULT = "DEFAULT",
3
- COMPACT = "COMPACT",
4
3
  PROGRESS = "PROGRESS"
5
4
  }
@@ -27,7 +27,7 @@ const Template: Story<TComponentProps> = (args) => ({
27
27
  },
28
28
  template:/*html*/`
29
29
  <ul>
30
- <ui-list-item v-for= "item in 5" :key="item" :icon="['far', 'face-smile']" :title="args.title" :kind="args.kind">
30
+ <ui-list-item v-for= "item in 5" :key="item" :icon="['far', 'face-smile']" :title="args.title" :kind="args.kind" class="pb-md">
31
31
  {{ args.title }}
32
32
  </ui-list-item>
33
33
  </ul>
@@ -5,23 +5,16 @@
5
5
  v-if="kind===EListItemTypes.PROGRESS"
6
6
  class="ui-list-item__line bg-primary-300 h-full absolute w-xxs left-xs -translate-x-2/4 top-sm group-last:hidden"
7
7
  />
8
- <div
9
- class="z-0"
10
- :class="[kind === EListItemTypes.DEFAULT && 'pb-sm',
11
- kind === EListItemTypes.COMPACT && 'pb-xs',
12
- kind === EListItemTypes.PROGRESS &&'pb-md']"
13
- >
14
- <ui-icon
15
- v-if="icon"
16
- :kind="pickKind"
17
- class="bg-white text-primary"
18
- :icon-name="icon"
19
- :size="ESize.SM"
20
- />
21
- </div>
8
+ <ui-icon
9
+ v-if="icon"
10
+ :kind="pickKind"
11
+ class="bg-white text-primary"
12
+ :icon-name="icon"
13
+ :size="ESize.SM"
14
+ />
22
15
 
23
16
  <slot>
24
- <ui-typography
17
+ <ui-typography
25
18
  :weight="ETextWeight.SEMI_BOLD"
26
19
  >
27
20
  {{ title }}
@@ -36,7 +29,7 @@
36
29
  import UiTypography, { ETextWeight } from "../ui-typography";
37
30
  import { ESize } from "../../_types/sizing";
38
31
  import { EListItemTypes } from "./_types";
39
-
32
+
40
33
  const props = withDefaults(defineProps<{
41
34
  icon: TIconName;
42
35
  title: string;
@@ -47,7 +40,7 @@
47
40
 
48
41
  const pickKind = computed(()=>{
49
42
  switch(props.kind){
50
- case EListItemTypes.COMPACT: return EListItemTypes.COMPACT;
43
+ case EListItemTypes.DEFAULT: return EListItemTypes.DEFAULT;
51
44
  case EListItemTypes.PROGRESS: return EListItemTypes.PROGRESS;
52
45
  default: return EListItemTypes.DEFAULT;
53
46
  }