@mekari/pixel3-theme 0.0.6-dev.0 → 0.0.6-dev.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.
@@ -9,27 +9,21 @@ declare const fonts: {
9
9
  declare const fontSizes: {
10
10
  xs: {
11
11
  value: string;
12
- description: string;
13
12
  };
14
13
  sm: {
15
14
  value: string;
16
- description: string;
17
15
  };
18
16
  md: {
19
17
  value: string;
20
- description: string;
21
18
  };
22
19
  lg: {
23
20
  value: string;
24
- description: string;
25
21
  };
26
22
  xl: {
27
23
  value: string;
28
- description: string;
29
24
  };
30
25
  '2xl': {
31
26
  value: string;
32
- description: string;
33
27
  };
34
28
  };
35
29
  declare const fontWeights: {
@@ -46,31 +40,24 @@ declare const fontWeights: {
46
40
  declare const lineHeights: {
47
41
  xs: {
48
42
  value: number;
49
- description: string;
50
43
  };
51
44
  sm: {
52
45
  value: number;
53
- description: string;
54
46
  };
55
47
  md: {
56
48
  value: number;
57
- description: string;
58
49
  };
59
50
  lg: {
60
51
  value: number;
61
- description: string;
62
52
  };
63
53
  xl: {
64
54
  value: number;
65
- description: string;
66
55
  };
67
56
  '2xl': {
68
57
  value: number;
69
- description: string;
70
58
  };
71
59
  '3xl': {
72
60
  value: number;
73
- description: string;
74
61
  };
75
62
  };
76
63
  declare const letterSpacings: {
@@ -9,27 +9,21 @@ declare const fonts: {
9
9
  declare const fontSizes: {
10
10
  xs: {
11
11
  value: string;
12
- description: string;
13
12
  };
14
13
  sm: {
15
14
  value: string;
16
- description: string;
17
15
  };
18
16
  md: {
19
17
  value: string;
20
- description: string;
21
18
  };
22
19
  lg: {
23
20
  value: string;
24
- description: string;
25
21
  };
26
22
  xl: {
27
23
  value: string;
28
- description: string;
29
24
  };
30
25
  '2xl': {
31
26
  value: string;
32
- description: string;
33
27
  };
34
28
  };
35
29
  declare const fontWeights: {
@@ -46,31 +40,24 @@ declare const fontWeights: {
46
40
  declare const lineHeights: {
47
41
  xs: {
48
42
  value: number;
49
- description: string;
50
43
  };
51
44
  sm: {
52
45
  value: number;
53
- description: string;
54
46
  };
55
47
  md: {
56
48
  value: number;
57
- description: string;
58
49
  };
59
50
  lg: {
60
51
  value: number;
61
- description: string;
62
52
  };
63
53
  xl: {
64
54
  value: number;
65
- description: string;
66
55
  };
67
56
  '2xl': {
68
57
  value: number;
69
- description: string;
70
58
  };
71
59
  '3xl': {
72
60
  value: number;
73
- description: string;
74
61
  };
75
62
  };
76
63
  declare const letterSpacings: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mekari/pixel3-theme",
3
3
  "description": "Theme for mekari pixel 3",
4
- "version": "0.0.6-dev.0",
4
+ "version": "0.0.6-dev.2",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
7
7
  "files": [
@@ -9,13 +9,13 @@
9
9
  "src"
10
10
  ],
11
11
  "dependencies": {
12
- "@pandacss/dev": "^0.24.1"
12
+ "@pandacss/dev": "^0.29.1"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "vue": "^3.4.9"
16
16
  },
17
17
  "devDependencies": {
18
- "@pandacss/types": "^0.24.1",
18
+ "@pandacss/types": "^0.29.1",
19
19
  "vue": "^3.4.9"
20
20
  },
21
21
  "publishConfig": {
package/src/conditions.ts CHANGED
@@ -11,6 +11,7 @@ export const conditions = {
11
11
  collapsed: '&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',
12
12
  loading: '& > [data-loading=true], &:is([data-loading], [aria-busy=true])',
13
13
  hasIcon: '&[data-has-icon=true]',
14
+ hasLabel: '&[data-has-label=true]',
14
15
  active: '&[data-active=true], [data-active]',
15
16
  highlight: '&[data-highlight=true], [data-highlight]',
16
17
  hasBorder: '&[data-has-border=true]',
@@ -10,6 +10,7 @@ const buttonRecipe = defineRecipe({
10
10
  alignItems: 'center',
11
11
  gap: '2',
12
12
  height: 'fit-content',
13
+ width: 'fit-content',
13
14
  borderWidth: '1px',
14
15
  whiteSpace: 'nowrap',
15
16
  userSelect: 'none',
@@ -125,8 +126,6 @@ const buttonRecipe = defineRecipe({
125
126
  },
126
127
  size: {
127
128
  sm: {
128
- paddingX: '2',
129
- paddingY: '1',
130
129
  borderRadius: 'sm',
131
130
  textStyle: 'label.md',
132
131
  fontWeight: 'regular',
@@ -134,12 +133,15 @@ const buttonRecipe = defineRecipe({
134
133
  borderRadius: 'sm'
135
134
  },
136
135
  _hasIcon: {
137
- padding: '1 !important'
136
+ paddingX: '1',
137
+ paddingY: '1 !important'
138
+ },
139
+ _hasLabel: {
140
+ paddingX: '2 !important',
141
+ paddingY: '1',
138
142
  }
139
143
  },
140
144
  md: {
141
- paddingX: '4',
142
- paddingY: '2',
143
145
  borderRadius: 'md',
144
146
  textStyle: 'label.md',
145
147
  fontWeight: 'semiBold',
@@ -147,7 +149,12 @@ const buttonRecipe = defineRecipe({
147
149
  borderRadius: 'md'
148
150
  },
149
151
  _hasIcon: {
150
- padding: '2 !important'
152
+ paddingX: '1.5',
153
+ paddingY: '1.5 !important'
154
+ },
155
+ _hasLabel: {
156
+ paddingX: '4 !important',
157
+ paddingY: '2',
151
158
  }
152
159
  }
153
160
  }
@@ -156,8 +163,6 @@ const buttonRecipe = defineRecipe({
156
163
  {
157
164
  variant: ['textLink'],
158
165
  css: {
159
- paddingX: '0',
160
- paddingY: '0',
161
166
  borderRadius: 'sm',
162
167
  _focusVisible: {
163
168
  borderColor: 'white',
@@ -3,29 +3,27 @@ import { defineTokens } from '@pandacss/dev'
3
3
  export const colors = defineTokens.colors({
4
4
  currentcolor: {
5
5
  value: 'currentcolor',
6
- description: 'Need to add this for Icon usage'
7
6
  },
8
- dark: { value: '#232933', description: 'Default or primary text color' },
7
+ dark: { value: '#232933'},
9
8
  white: {
10
9
  value: '#FFFFFF',
11
- description: 'Background color in components such as Card, Modal, and Popover'
10
+
12
11
  },
13
- background: { value: '#F1F5F9', description: 'For use as background page' },
12
+ background: { value: '#F1F5F9' },
14
13
  overlay: {
15
14
  value: 'rgba(22, 26, 32, 0.8)',
16
- description: 'For use as overlay'
17
15
  },
18
16
  brand: {
19
- capital: { value: '#2F5573', description: 'Mekari Capital' },
20
- esign: { value: '#00C853', description: 'Mekari e-Sign' },
21
- expense: { value: '#183883', description: 'Mekari Expense' },
22
- flex: { value: '#7C4DFF', description: 'Mekari Flex' },
23
- jurnal: { value: '#40C3FF', description: 'Mekari Jurnal' },
24
- klikpajak: { value: '#FF9100', description: 'Mekari Klikpajak' },
25
- mekari: { value: '#651FFF', description: 'Mekari' },
26
- qontak: { value: '#2979FF', description: 'Mekari Qontak' },
27
- talenta: { value: '#F22929', description: 'Mekari Talenta' },
28
- university: { value: '#448AFF', description: 'Mekari University' }
17
+ capital: { value: '#2F5573', },
18
+ esign: { value: '#00C853', },
19
+ expense: { value: '#183883', },
20
+ flex: { value: '#7C4DFF', },
21
+ jurnal: { value: '#40C3FF', },
22
+ klikpajak: { value: '#FF9100', },
23
+ mekari: { value: '#651FFF', },
24
+ qontak: { value: '#2979FF', },
25
+ talenta: { value: '#F22929', },
26
+ university: { value: '#448AFF', }
29
27
  },
30
28
  whiteAlpha: {
31
29
  50: { value: 'rgba(255, 255, 255, 0.04)' },
@@ -54,21 +52,17 @@ export const colors = defineTokens.colors({
54
52
  gray: {
55
53
  25: {
56
54
  value: '#F8F9FB',
57
- description: 'Background color in table header component'
58
55
  },
59
56
  50: {
60
57
  value: '#EDF0F2',
61
- description: 'Disabled background color in components such as Input and Select backgrounds'
62
58
  },
63
- 100: { value: '#D0D6DD', description: 'Default stroke color or divider' },
59
+ 100: { value: '#D0D6DD', },
64
60
  400: {
65
61
  value: '#8B95A5',
66
- description:
67
- 'Disabled and placeholder text color, icon or in components such as hover state Input, Select and stroke in Popover'
62
+
68
63
  },
69
64
  600: {
70
65
  value: '#626B79',
71
- description: 'Description text color and default color for outline icon'
72
66
  }
73
67
  },
74
68
  blue: {
@@ -2,10 +2,10 @@ import { defineTokens } from '@pandacss/dev'
2
2
 
3
3
  export const radii = defineTokens.radii({
4
4
  none: { value: '0' },
5
- xs: { value: '0.125rem', description: '2px' },
6
- sm: { value: '0.25rem', description: '4px' },
7
- md: { value: '0.375rem', description: '6px' },
8
- lg: { value: '0.5rem', description: '8px' },
9
- xl: { value: '0.75rem', description: '12px' },
5
+ xs: { value: '0.125rem' },
6
+ sm: { value: '0.25rem' },
7
+ md: { value: '0.375rem' },
8
+ lg: { value: '0.5rem' },
9
+ xl: { value: '0.75rem' },
10
10
  full: { value: '50%' }
11
11
  })
@@ -1,29 +1,29 @@
1
1
  import { defineTokens } from '@pandacss/dev'
2
2
 
3
3
  export const sizes = defineTokens.sizes({
4
- 0: { value: '0', description: '0px' },
5
- 0.25: { value: '0.0625rem', description: '1px' },
6
- 0.5: { value: '0.125rem', description: '2px' },
7
- 1: { value: '0.25rem', description: '4px' },
8
- 2: { value: '0.5rem', description: '8px' },
9
- 2.5: { value: '0.625rem', description: '10px' },
10
- 3: { value: '0.75rem', description: '12px' },
11
- 4: { value: '1rem', description: '16px' },
12
- 5: { value: '1.25rem', description: '20px' },
13
- 6: { value: '1.5rem', description: '24px' },
14
- 7: { value: '1.75rem', description: '28px' },
15
- 7.5: { value: '1.875rem', description: '30px' },
16
- 8: { value: '2rem', description: '32px' },
17
- 9: { value: '2.25rem', description: '36px' },
18
- 9.5: { value: '2.375rem', description: '38px' },
19
- 10: { value: '2.5rem', description: '40px' },
20
- 11: { value: '2.75rem', description: '44px' },
21
- 12: { value: '3rem', description: '48px' },
22
- 16: { value: '4rem', description: '64px' },
23
- 20: { value: '5rem', description: '80px' },
24
- 22: { value: '5.5rem', description: '96px' },
25
- 56: { value: '14rem', description: '224px' },
26
- 65: { value: '17.5rem', description: '280px' },
4
+ 0: { value: '0' },
5
+ 0.25: { value: '0.0625rem' },
6
+ 0.5: { value: '0.125rem' },
7
+ 1: { value: '0.25rem' },
8
+ 2: { value: '0.5rem' },
9
+ 2.5: { value: '0.625rem' },
10
+ 3: { value: '0.75rem' },
11
+ 4: { value: '1rem' },
12
+ 5: { value: '1.25rem' },
13
+ 6: { value: '1.5rem' },
14
+ 7: { value: '1.75rem' },
15
+ 7.5: { value: '1.875rem' },
16
+ 8: { value: '2rem' },
17
+ 9: { value: '2.25rem' },
18
+ 9.5: { value: '2.375rem' },
19
+ 10: { value: '2.5rem' },
20
+ 11: { value: '2.75rem' },
21
+ 12: { value: '3rem' },
22
+ 16: { value: '4rem' },
23
+ 20: { value: '5rem' },
24
+ 22: { value: '5.5rem' },
25
+ 56: { value: '14rem' },
26
+ 65: { value: '17.5rem' },
27
27
  full: { value: '100%' },
28
- sm: {value: '24rem'}
28
+ sm: { value: '24rem' }
29
29
  })
@@ -1,21 +1,21 @@
1
1
  import { defineTokens } from '@pandacss/dev'
2
2
 
3
3
  export const spacing = defineTokens.spacing({
4
- 0: { value: '0', description: '0px' },
5
- 0.5: { value: '0.125rem', description: '2px' },
6
- 1: { value: '0.25rem', description: '4px' },
7
- 1.5: { value: '0.375rem', description: '6px' },
8
- 2: { value: '0.5rem', description: '8px' },
9
- 3: { value: '0.75rem', description: '12px' },
10
- 4: { value: '1rem', description: '16px' },
11
- 5: { value: '1.3rem', description: '20px' },
12
- 6: { value: '1.5rem', description: '24px' },
13
- 8: { value: '2rem', description: '32px' },
14
- 12: { value: '3rem', description: '48px' },
15
- 16: { value: '4rem', description: '64px' },
16
- 20: { value: '5rem', description: '80px' },
17
- 24: { value: '6rem', description: '96px' },
18
- 32: { value: '8rem', description: '128px' },
19
- 40: { value: '10rem', description: '160px' },
20
- 64: { value: '16rem', description: '256px' }
4
+ 0: { value: '0' },
5
+ 0.5: { value: '0.125rem' },
6
+ 1: { value: '0.25rem' },
7
+ 1.5: { value: '0.375rem' },
8
+ 2: { value: '0.5rem' },
9
+ 3: { value: '0.75rem' },
10
+ 4: { value: '1rem' },
11
+ 5: { value: '1.3rem' },
12
+ 6: { value: '1.5rem' },
13
+ 8: { value: '2rem' },
14
+ 12: { value: '3rem' },
15
+ 16: { value: '4rem' },
16
+ 20: { value: '5rem' },
17
+ 24: { value: '6rem' },
18
+ 32: { value: '8rem' },
19
+ 40: { value: '10rem' },
20
+ 64: { value: '16rem' }
21
21
  })
@@ -11,12 +11,12 @@ export const fonts = defineTokens.fonts({
11
11
  })
12
12
 
13
13
  export const fontSizes = defineTokens.fontSizes({
14
- xs: { value: '0.625rem', description: '10px' },
15
- sm: { value: '0.75rem', description: '12px' },
16
- md: { value: '0.875rem', description: '14px' },
17
- lg: { value: '1rem', description: '16px' },
18
- xl: { value: '1.25rem', description: '20px' },
19
- '2xl': { value: '1.5rem', description: '24px' }
14
+ xs: { value: '0.625rem' },
15
+ sm: { value: '0.75rem' },
16
+ md: { value: '0.875rem' },
17
+ lg: { value: '1rem' },
18
+ xl: { value: '1.25rem' },
19
+ '2xl': { value: '1.5rem' }
20
20
  })
21
21
 
22
22
  export const fontWeights = defineTokens.fontWeights({
@@ -26,13 +26,13 @@ export const fontWeights = defineTokens.fontWeights({
26
26
  })
27
27
 
28
28
  export const lineHeights = defineTokens.lineHeights({
29
- xs: { value: 1.2, description: '12px/10px' },
30
- sm: { value: 1.34, description: '16px/12px or 32px/24px' },
31
- md: { value: 1.4, description: '28px/20px' },
32
- lg: { value: 1.429, description: '20px/14px' },
33
- xl: { value: 1.5, description: '24px/16px' },
34
- '2xl': { value: 1.67, description: '20px/12px' },
35
- '3xl': { value: 1.71, description: '24px/14px' }
29
+ xs: { value: 1.2 },
30
+ sm: { value: 1.34 },
31
+ md: { value: 1.4 },
32
+ lg: { value: 1.429 },
33
+ xl: { value: 1.5 },
34
+ '2xl': { value: 1.67 },
35
+ '3xl': { value: 1.71 }
36
36
  })
37
37
 
38
38
  export const letterSpacings = defineTokens.letterSpacings({