plugin-ui-for-kzt 0.0.27 → 0.0.28

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/example/App.vue CHANGED
@@ -2,17 +2,18 @@
2
2
  <div class="demo-page">
3
3
  <h1>Plugin UI KZT - Компоненты</h1>
4
4
  <section>
5
- <base-calendar v-model="testDate" inline />
5
+ <BaseDefaultPages
6
+ title="TUIELT"
7
+ description="DEGASG"
8
+ buttonText="Butootn"
9
+ type="tech-work"
10
+ />
6
11
  </section>
7
12
  </div>
8
13
  </template>
9
14
  <script setup lang="ts">
10
- import { ref, watch } from 'vue'
15
+ import { ref, watch, computed } from 'vue'
11
16
 
12
- const testDate = ref(new Date())
13
- watch(()=> testDate.value,
14
- ()=> console.log('test Date', testDate.value)
15
- )
16
17
  </script>
17
18
 
18
19
  <style lang="scss" scoped>
@@ -52,4 +53,11 @@ watch(()=> testDate.value,
52
53
  overflow-x: auto;
53
54
  }
54
55
  }
56
+
57
+ .table-data__cell-actions {
58
+ display: flex;
59
+ align-items: center;
60
+ gap: var(--spacing-xs);
61
+ justify-content: flex-end;
62
+ }
55
63
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plugin-ui-for-kzt",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "plugin-ui for kazaktelekom",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,6 +30,7 @@ const props = withDefaults(defineProps<ICoreButtonProps>(), {
30
30
  tag: 'button',
31
31
  color: 'primary',
32
32
  size: 'medium',
33
+ onlyIcon: false,
33
34
  });
34
35
 
35
36
  const { componentTag, interactiveClassList } = useKitInteractive(props);
@@ -64,6 +65,7 @@ const classList = computed(() => [
64
65
  colorClassList.value,
65
66
  stateClassList.value,
66
67
  styleClassList.value,
68
+ { 'base-button--only-icon': props.onlyIcon }
67
69
  ]);
68
70
  </script>
69
71
 
@@ -72,6 +74,8 @@ const classList = computed(() => [
72
74
  @import '@/styles/root';
73
75
 
74
76
  .base-button {
77
+ $button: &;
78
+
75
79
  @include reset-button;
76
80
  @include is-disabled-state;
77
81
 
@@ -83,7 +87,12 @@ const classList = computed(() => [
83
87
  appearance: none;
84
88
  cursor: pointer;
85
89
  user-select: none;
86
- transition: all var(--transition);
90
+ transition:
91
+ background-color var(--transition),
92
+ color var(--transition),
93
+ border-color var(--transition),
94
+ box-shadow var(--transition),
95
+ opacity var(--transition);
87
96
 
88
97
 
89
98
  &.--is-loading {
@@ -105,6 +114,11 @@ const classList = computed(() => [
105
114
  font: var(--typography-text-s-medium);
106
115
  border-radius: var(--corner-radius-xs);
107
116
 
117
+ #{$button}--only-icon {
118
+ padding: 0;
119
+ width: 32px;
120
+ }
121
+
108
122
  .loader__circle-icon {
109
123
  width: 20px;
110
124
  height: 20px;
@@ -118,6 +132,11 @@ const classList = computed(() => [
118
132
  font: var(--typography-text-m-medium);
119
133
  border-radius: var(--corner-radius-s);
120
134
 
135
+ #{$button}--only-icon {
136
+ padding: 0;
137
+ width: 40px;
138
+ }
139
+
121
140
  .loader__circle-icon {
122
141
  width: 20px;
123
142
  height: 20px;
@@ -131,6 +150,11 @@ const classList = computed(() => [
131
150
  font: var(--typography-text-l-medium);
132
151
  border-radius: var(--corner-radius-m);
133
152
 
153
+ #{$button}--only-icon {
154
+ padding: 0;
155
+ width: 48px;
156
+ }
157
+
134
158
  .loader__circle-icon {
135
159
  width: 24px;
136
160
  height: 24px;
@@ -144,6 +168,11 @@ const classList = computed(() => [
144
168
  font: var(--typography-text-l-medium);
145
169
  border-radius: var(--corner-radius-m);
146
170
 
171
+ #{$button}--only-icon {
172
+ padding: 0;
173
+ width: 56px;
174
+ }
175
+
147
176
  .loader__circle-icon {
148
177
  width: 32px;
149
178
  height: 32px;
@@ -33,10 +33,18 @@
33
33
  import { computed } from 'vue';
34
34
  import BaseButton from '../BaseButton/BaseButton.vue';
35
35
  import type { IDefaultPagesProps } from '../../types/default-pages';
36
+ import techWorkImage from '../../assets/tech-work.png';
37
+ import error404Image from '../../assets/404.png';
36
38
 
37
39
  const props = defineProps<IDefaultPagesProps>();
38
40
 
39
- const imagePath = computed(()=> require(`@/assets/${props.type}.png`))
41
+ const imagePath = computed(() => {
42
+ const images:Record<string, any> = {
43
+ 'tech-work': techWorkImage,
44
+ '404': error404Image
45
+ };
46
+ return images[props.type] || '';
47
+ });
40
48
  const imageContainer = computed<string[]>(()=> [
41
49
  `base-default-pages__image-container--${props.type}`
42
50
  ])
@@ -0,0 +1,24 @@
1
+ declare module '*.png' {
2
+ const value: string;
3
+ export default value;
4
+ }
5
+
6
+ declare module '*.jpg' {
7
+ const value: string;
8
+ export default value;
9
+ }
10
+
11
+ declare module '*.jpeg' {
12
+ const value: string;
13
+ export default value;
14
+ }
15
+
16
+ declare module '*.gif' {
17
+ const value: string;
18
+ export default value;
19
+ }
20
+
21
+ declare module '*.webp' {
22
+ const value: string;
23
+ export default value;
24
+ }
@@ -1,6 +1,6 @@
1
1
  import type { ICoreColor, ICoreInteractive, ICoreSize, ICoreState, ICoreStyle } from './utils';
2
2
 
3
- export type ICoreButtonProps = ICoreSize & ICoreColor & ICoreInteractive & ICoreState & ICoreStyle;
3
+ export type ICoreButtonProps = ICoreSize & ICoreColor & ICoreInteractive & ICoreState & ICoreStyle & { onlyIcon?: boolean };
4
4
 
5
5
  interface IOptionButtonSegment {
6
6
  label: string;