@300codes/design-system 1.2.0 → 1.2.1

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": "@300codes/design-system",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/components",
@@ -56,13 +56,13 @@ const nativeAttrs = computed((): Record<string, unknown> => {
56
56
  v-bind="nativeAttrs"
57
57
  :class="[
58
58
  'baseLabel',
59
- 'no-underline inline-flex items-center justify-center',
60
59
  `baseLabel--${props.variant}`,
61
60
  `baseLabel--${props.size}`,
62
61
  {
63
62
  'baseLabel--interactive': isInteractive,
64
63
  'baseLabel--disabled': props.disabled,
65
64
  },
65
+ 'no-underline inline-flex items-center justify-center',
66
66
  ]"
67
67
  >
68
68
  <slot />
@@ -79,10 +79,9 @@ const nativeAttrs = computed((): Record<string, unknown> => {
79
79
  border: var(--baseLabel-border-width, 1px) solid var(--baseLabel-border, transparent);
80
80
  border-radius: var(--baseLabel-radius, 3.5rem);
81
81
  padding: var(--baseLabel-py, 0.125rem) var(--baseLabel-px, 0.5rem);
82
- min-height: var(--baseLabel-min-h, 1.5rem);
82
+ height: var(--baseLabel-min-h, 1.5rem);
83
83
  font-size: var(--baseLabel-font-size, 0.75rem);
84
84
  font-weight: var(--baseLabel-font-weight, 600);
85
- line-height: 1.2;
86
85
  }
87
86
 
88
87
  .baseLabel--interactive {
@@ -106,7 +105,8 @@ const nativeAttrs = computed((): Record<string, unknown> => {
106
105
  /* ── sm ── */
107
106
 
108
107
  .baseLabel--sm {
109
- min-height: var(--baseLabel-sm-min-h, 1.25rem);
108
+ height: var(--baseLabel-sm-min-h, 1.25rem);
109
+ font-size: var(--baseLabel-sm-font-size, 0.625rem);
110
110
  }
111
111
 
112
112
  /* ── secondary ── */
@@ -41,7 +41,7 @@ const emit = defineEmits<{
41
41
  .flatIconButton {
42
42
  color: var(--flatIconButton-fg, #0e161b);
43
43
  background: var(--flatIconButton-bg, transparent);
44
- padding: var(--flatIconButton-p, 0.25rem);
44
+ padding: var(--flatIconButton-p, 0);
45
45
  border-radius: var(--flatIconButton-radius, 9999px);
46
46
  }
47
47
 
@@ -132,6 +132,7 @@ watch(model, (val) => {
132
132
 
133
133
  .quantitySelector__input {
134
134
  width: var(--_input-w);
135
+ min-width: var(--_input-w);
135
136
  font-size: var(--_fs);
136
137
  color: var(--quantitySelector-fg, #0e161b);
137
138
  }
@@ -93,7 +93,6 @@ const nativeAttrs = computed((): Record<string, unknown> => {
93
93
  min-height: var(--simpleButton-min-h, 3.5rem);
94
94
  font-size: var(--simpleButton-font-size, 1rem);
95
95
  font-weight: var(--simpleButton-font-weight, 600);
96
- line-height: 1.2;
97
96
  gap: var(--simpleButton-gap, 1rem);
98
97
  }
99
98
 
@@ -126,6 +126,7 @@
126
126
 
127
127
  /* sm */
128
128
  --baseLabel-sm-min-h: theme(--spacing-5);
129
+ --baseLabel-sm-font-size: theme(--text-2xs);
129
130
 
130
131
  /* ────────────────────────────────────────────────
131
132
  * LabelInput
@@ -382,7 +383,7 @@
382
383
  --flatIconButton-fg-hover: theme(--color-input-icon-hover);
383
384
  --flatIconButton-bg-hover: theme(--color-input-icon-bg-hover);
384
385
  --flatIconButton-outline: theme(--color-outline);
385
- --flatIconButton-p: theme(--spacing-1);
386
+ --flatIconButton-p: theme(--spacing-0);
386
387
  --flatIconButton-radius: theme(--radius-full);
387
388
 
388
389
  /* ────────────────────────────────────────────────