lapikit 0.6.6 → 0.6.8

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.
@@ -125,6 +125,16 @@
125
125
  display: none;
126
126
  }
127
127
 
128
+ .kit-accordion[data-variant='text'] :global(.kit-accordion-item),
129
+ .kit-accordion[data-variant='text'] :global(.kit-accordion-item:first-child:last-child) {
130
+ border-radius: 0 !important;
131
+ }
132
+
133
+ .kit-accordion:not([data-variant='text'])
134
+ :global(.kit-accordion-item[data-read-only='false'][data-disabled='false'] > button:hover) {
135
+ background: var(--kit-accordion-item-hover-bg);
136
+ }
137
+
128
138
  /**
129
139
  * rounded
130
140
  * @link ...
@@ -199,7 +199,7 @@
199
199
  }
200
200
 
201
201
  .kit-accordion-item__separator {
202
- width: 96%;
202
+ width: 100%;
203
203
  height: 1px;
204
204
  display: block;
205
205
  position: relative;
@@ -207,9 +207,10 @@
207
207
  margin: 0 auto;
208
208
  }
209
209
 
210
- .kit-accordion-item[data-read-only='false'][data-disabled='false'] > button:hover {
210
+ /* .kit-accordion-item[data-read-only='false'][data-disabled='false']:not([data-variant='text'])
211
+ > button:hover {
211
212
  background: var(--kit-accordion-item-hover-bg);
212
- }
213
+ } */
213
214
 
214
215
  /**I think is a good idea for not use this*/
215
216
  /* .kit-accordion-item[data-active='true'][data-disabled='false'][data-read-only='false'] > button {
@@ -62,7 +62,7 @@
62
62
  --kit-density-comfortable: 4px;
63
63
 
64
64
  --kit-shadow-opacity: 30%;
65
- --kit-shadow-ambiant-opacity: 15%;
65
+ --kit-shadow-ambient-opacity: 15%;
66
66
 
67
67
  --kit-disabled-opacity: 0.55;
68
68
  --kit-font:
@@ -261,7 +261,7 @@
261
261
  box-shadow:
262
262
  0 1px 2px color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-opacity), transparent),
263
263
  0 3px 8px -2px
264
- color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-ambiant-opacity), transparent);
264
+ color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-ambient-opacity), transparent);
265
265
  }
266
266
 
267
267
  :global([data-elevation='2']),
@@ -270,7 +270,7 @@
270
270
  box-shadow:
271
271
  0 1px 3px color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-opacity), transparent),
272
272
  0 5px 12px -3px
273
- color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-ambiant-opacity), transparent);
273
+ color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-ambient-opacity), transparent);
274
274
  }
275
275
 
276
276
  :global([data-elevation='3']),
@@ -279,7 +279,7 @@
279
279
  box-shadow:
280
280
  0 2px 4px color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-opacity), transparent),
281
281
  0 8px 20px -4px
282
- color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-ambiant-opacity), transparent);
282
+ color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-ambient-opacity), transparent);
283
283
  }
284
284
 
285
285
  :global([data-elevation='4']),
@@ -288,7 +288,7 @@
288
288
  box-shadow:
289
289
  0 3px 5px color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-opacity), transparent),
290
290
  0 11px 26px -5px
291
- color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-ambiant-opacity), transparent);
291
+ color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-ambient-opacity), transparent);
292
292
  }
293
293
 
294
294
  :global([data-elevation='5']),
@@ -297,7 +297,7 @@
297
297
  box-shadow:
298
298
  0 4px 6px color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-opacity), transparent),
299
299
  0 14px 32px -6px
300
- color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-ambiant-opacity), transparent);
300
+ color-mix(in oklab, var(--kit-color-shadow) var(--kit-shadow-ambient-opacity), transparent);
301
301
  }
302
302
  @keyframes -global-animation-l-ripple {
303
303
  from {
@@ -146,10 +146,10 @@
146
146
  --kit-appbar-density-offset: var(--kit-density-compact);
147
147
  }
148
148
  .kit-appbar[data-density='default'] {
149
- --kit-appbar-density-offset: var(--kit-density-compact);
149
+ --kit-appbar-density-offset: var(--kit-density-default);
150
150
  }
151
151
  .kit-appbar[data-density='comfortable'] {
152
- --kit-appbar-density-offset: var(--kit-density-compact);
152
+ --kit-appbar-density-offset: var(--kit-density-comfortable);
153
153
  }
154
154
 
155
155
  /**
@@ -237,6 +237,7 @@
237
237
  background: var(--kit-btn-hover-bg);
238
238
  color: var(--kit-btn-fg);
239
239
  text-decoration: var(--kit-btn-decoration);
240
+ translate: 0 -1px;
240
241
  }
241
242
 
242
243
  .kit-btn:has(> :is(input[type='checkbox'], input[type='radio']):checked) {
@@ -202,7 +202,6 @@
202
202
  }
203
203
 
204
204
  .kit-card[data-interactive='true'][data-disabled='false']:hover {
205
- translate: 0 -1px;
206
205
  background: var(--kit-card-hover-bg);
207
206
  }
208
207
 
@@ -250,6 +250,7 @@
250
250
  white-space: nowrap;
251
251
  user-select: none;
252
252
  cursor: default;
253
+ font-size: var(--kit-chip-font);
253
254
  border: 0;
254
255
  transition:
255
256
  background 150ms ease,
@@ -278,6 +279,7 @@
278
279
  background: var(--kit-chip-hover-bg);
279
280
  color: var(--kit-chip-fg);
280
281
  text-decoration: var(--kit-chip-decoration);
282
+ translate: 0 -1px;
281
283
  }
282
284
 
283
285
  :is(.kit-chip:focus-visible, .kit-chip:has(> input:focus-visible)) {
@@ -116,20 +116,26 @@
116
116
 
117
117
  <style>
118
118
  .kit-icon {
119
+ --kit-icon-size-xs: 12px;
120
+ --kit-icon-size-sm: 14px;
121
+ --kit-icon-size-md: 16px;
122
+ --kit-icon-size-lg: 18px;
123
+ --kit-icon-size-xl: 20px;
124
+
119
125
  display: inline-flex;
120
126
  align-items: center;
121
127
  justify-content: center;
122
128
  text-indent: 0;
123
129
  line-height: 1;
124
- font-size: var(--kit-icon-current-size);
130
+ font-size: var(--kit-icon-current-size, var(--kit-icon-size-md));
125
131
  vertical-align: middle;
126
132
  }
127
133
 
128
134
  .kit-icon :global(svg),
129
135
  .kit-icon img,
130
136
  .kit-icon .kit-icon__mask {
131
- width: var(--kit-icon-current-size);
132
- height: var(--kit-icon-current-size);
137
+ width: var(--kit-icon-current-size, var(--kit-icon-size-md));
138
+ height: var(--kit-icon-current-size, var(--kit-icon-size-md));
133
139
  flex-shrink: 0;
134
140
  display: block;
135
141
  }
@@ -152,18 +158,18 @@
152
158
  * @link https://lapikit.dev/docs/components/icon#size
153
159
  */
154
160
  .kit-icon[data-size='xs'] {
155
- --kit-icon-current-size: 12px;
161
+ --kit-icon-current-size: var(--kit-icon-size-xs);
156
162
  }
157
163
  .kit-icon[data-size='sm'] {
158
- --kit-icon-current-size: 14px;
164
+ --kit-icon-current-size: var(--kit-icon-size-sm);
159
165
  }
160
166
  .kit-icon[data-size='md'] {
161
- --kit-icon-current-size: 16px;
167
+ --kit-icon-current-size: var(--kit-icon-size-md);
162
168
  }
163
169
  .kit-icon[data-size='lg'] {
164
- --kit-icon-current-size: 18px;
170
+ --kit-icon-current-size: var(--kit-icon-size-lg);
165
171
  }
166
172
  .kit-icon[data-size='xl'] {
167
- --kit-icon-current-size: 20px;
173
+ --kit-icon-current-size: var(--kit-icon-size-xl);
168
174
  }
169
175
  </style>
@@ -136,14 +136,14 @@
136
136
  * variant
137
137
  * @link https://lapikit.dev/docs/components/list#variants
138
138
  */
139
- .kit-list[data-variant='filled'] :global(.kit-list-item) {
139
+ .kit-list[data-variant='filled'] {
140
140
  --kit-list-item-bg: var(--kit-color-surface-2);
141
141
  --kit-list-item-fg: var(--kit-color-text);
142
142
 
143
143
  --kit-list-item-hover-bg: color-mix(in oklab, var(---kit-list-item-bg), black 10%);
144
144
  --kit-list-item-active-bg: color-mix(in oklab, var(--kit-list-item-bg), black 16%);
145
145
  }
146
- .kit-list[data-variant='outline'] :global(.kit-list-item) {
146
+ .kit-list[data-variant='outline'] {
147
147
  --kit-list-item-bg: transparent;
148
148
  --kit-list-item-fg: var(--kit-color-text);
149
149
  --kit-list-item-bd: var(--kit-list-item-fg);
@@ -151,7 +151,7 @@
151
151
  --kit-list-item-hover-bg: color-mix(in oklab, var(--kit-list-item-fg), transparent 80%);
152
152
  --kit-list-item-active-bg: color-mix(in oklab, var(--kit-list-item-fg), transparent 92%);
153
153
  }
154
- .kit-list[data-variant='text'] :global(.kit-list-item) {
154
+ .kit-list[data-variant='text'] {
155
155
  --kit-list-item-bg: transparent;
156
156
  --kit-list-item-fg: var(--kit-color-text);
157
157
 
@@ -181,8 +181,7 @@
181
181
  border-bottom-left-radius: var(--kit-list-item-radius);
182
182
  border-bottom-right-radius: var(--kit-list-item-radius);
183
183
  }
184
- .kit-list:not([data-nav='true']) :global(.kit-list-item:not(:first-child)),
185
- .kit-list:not([data-nav='true']) :global(.kit-list-item:not(:last-child)) {
184
+ .kit-list:not([data-nav='true']) :global(.kit-list-item:not(:first-child):not(:last-child)) {
186
185
  --kit-list-item-radius: 0;
187
186
  }
188
187
 
@@ -155,7 +155,6 @@
155
155
  }
156
156
 
157
157
  .kit-list-item[data-interactive='true'][data-disabled='false']:hover {
158
- translate: 0 -1px;
159
158
  background: var(--kit-list-item-hover-bg);
160
159
  }
161
160
  .kit-list-item[data-active='true'][data-disabled='false'] {
@@ -0,0 +1,5 @@
1
+ import type { AccordionOptions } from '../@types';
2
+ export declare function useAccordion({ multiple, readOnly }?: AccordionOptions): {
3
+ readonly values: (string | number)[];
4
+ toggle(id: string | number): void;
5
+ };
@@ -1,2 +1,2 @@
1
1
  export * from './themes.svelte.js';
2
- export * from '../components/accordion/accordion.svelte.js';
2
+ export * from './accordion.svelte.js';
@@ -1,2 +1,2 @@
1
1
  export * from './themes.svelte.js';
2
- export * from '../components/accordion/accordion.svelte.js';
2
+ export * from './accordion.svelte.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lapikit",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"