lapikit 0.5.8 → 0.6.0
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/dist/@types/actions.d.ts +6 -0
- package/dist/@types/index.d.ts +1 -0
- package/dist/@types/index.js +1 -0
- package/dist/actions.d.ts +2 -0
- package/dist/actions.js +2 -0
- package/dist/components/dialog/dialog.svelte +1 -2
- package/dist/components/list/list.svelte +0 -35
- package/dist/components/list/modules/list-item.svelte +35 -0
- package/dist/{@legacy/stores/components.d.ts → components/modal/modal.d.ts} +1 -2
- package/dist/{@legacy/stores/components.js → components/modal/modal.js} +1 -1
- package/dist/components/modal/modal.svelte +1 -1
- package/dist/components/textfield/textfield.svelte.d.ts +1 -1
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js +2 -2
- package/dist/utils/outside.d.ts +1 -0
- package/dist/utils/outside.js +5 -0
- package/dist/{@legacy/stores → utils}/themes.d.ts +1 -0
- package/dist/{@legacy/actions/use-theme.js → utils/themes.js} +4 -1
- package/package.json +11 -32
- package/dist/@legacy/actions/accordion.svelte.d.ts +0 -9
- package/dist/@legacy/actions/index.d.ts +0 -2
- package/dist/@legacy/actions/index.js +0 -2
- package/dist/@legacy/actions/use-theme.d.ts +0 -1
- package/dist/@legacy/assets/icons/arrow-down.svelte +0 -12
- package/dist/@legacy/assets/icons/arrow-down.svelte.d.ts +0 -18
- package/dist/@legacy/assets/icons/arrow-up.svelte +0 -12
- package/dist/@legacy/assets/icons/arrow-up.svelte.d.ts +0 -18
- package/dist/@legacy/assets/icons/close-fill.svelte +0 -12
- package/dist/@legacy/assets/icons/close-fill.svelte.d.ts +0 -18
- package/dist/@legacy/assets/icons/loading-fill.svelte +0 -31
- package/dist/@legacy/assets/icons/loading-fill.svelte.d.ts +0 -18
- package/dist/@legacy/components/accordion/accordion.css +0 -36
- package/dist/@legacy/components/accordion/accordion.svelte +0 -39
- package/dist/@legacy/components/accordion/accordion.svelte.d.ts +0 -4
- package/dist/@legacy/components/accordion/modules/accordion-item.css +0 -68
- package/dist/@legacy/components/accordion/modules/accordion-item.svelte +0 -94
- package/dist/@legacy/components/accordion/modules/accordion-item.svelte.d.ts +0 -4
- package/dist/@legacy/components/accordion/types.d.ts +0 -33
- package/dist/@legacy/components/alert/alert.css +0 -130
- package/dist/@legacy/components/alert/alert.svelte +0 -89
- package/dist/@legacy/components/alert/alert.svelte.d.ts +0 -4
- package/dist/@legacy/components/alert/types.d.ts +0 -28
- package/dist/@legacy/components/alert/types.js +0 -1
- package/dist/@legacy/components/app/app.css +0 -26
- package/dist/@legacy/components/app/app.svelte +0 -79
- package/dist/@legacy/components/app/app.svelte.d.ts +0 -4
- package/dist/@legacy/components/app/types.d.ts +0 -10
- package/dist/@legacy/components/app/types.js +0 -1
- package/dist/@legacy/components/appbar/appbar.css +0 -38
- package/dist/@legacy/components/appbar/appbar.svelte +0 -40
- package/dist/@legacy/components/appbar/appbar.svelte.d.ts +0 -4
- package/dist/@legacy/components/appbar/types.d.ts +0 -15
- package/dist/@legacy/components/appbar/types.js +0 -1
- package/dist/@legacy/components/aspect-ratio/aspect-ratio.css +0 -19
- package/dist/@legacy/components/aspect-ratio/aspect-ratio.svelte +0 -25
- package/dist/@legacy/components/aspect-ratio/aspect-ratio.svelte.d.ts +0 -4
- package/dist/@legacy/components/aspect-ratio/types.d.ts +0 -5
- package/dist/@legacy/components/aspect-ratio/types.js +0 -1
- package/dist/@legacy/components/avatar/avatar.css +0 -102
- package/dist/@legacy/components/avatar/avatar.svelte +0 -46
- package/dist/@legacy/components/avatar/avatar.svelte.d.ts +0 -4
- package/dist/@legacy/components/avatar/types.d.ts +0 -22
- package/dist/@legacy/components/avatar/types.js +0 -1
- package/dist/@legacy/components/button/button.css +0 -240
- package/dist/@legacy/components/button/button.svelte +0 -102
- package/dist/@legacy/components/button/button.svelte.d.ts +0 -4
- package/dist/@legacy/components/button/types.d.ts +0 -29
- package/dist/@legacy/components/button/types.js +0 -1
- package/dist/@legacy/components/card/card.css +0 -105
- package/dist/@legacy/components/card/card.svelte +0 -67
- package/dist/@legacy/components/card/card.svelte.d.ts +0 -4
- package/dist/@legacy/components/card/types.d.ts +0 -20
- package/dist/@legacy/components/card/types.js +0 -1
- package/dist/@legacy/components/chip/chip.css +0 -224
- package/dist/@legacy/components/chip/chip.svelte +0 -131
- package/dist/@legacy/components/chip/chip.svelte.d.ts +0 -4
- package/dist/@legacy/components/chip/types.d.ts +0 -32
- package/dist/@legacy/components/chip/types.js +0 -1
- package/dist/@legacy/components/dialog/dialog.css +0 -129
- package/dist/@legacy/components/dialog/dialog.svelte +0 -67
- package/dist/@legacy/components/dialog/dialog.svelte.d.ts +0 -4
- package/dist/@legacy/components/dialog/types.d.ts +0 -24
- package/dist/@legacy/components/dialog/types.js +0 -1
- package/dist/@legacy/components/dropdown/dropdown.css +0 -13
- package/dist/@legacy/components/dropdown/dropdown.svelte +0 -115
- package/dist/@legacy/components/dropdown/dropdown.svelte.d.ts +0 -4
- package/dist/@legacy/components/dropdown/types.d.ts +0 -26
- package/dist/@legacy/components/dropdown/types.js +0 -1
- package/dist/@legacy/components/icon/icon.css +0 -78
- package/dist/@legacy/components/icon/icon.svelte +0 -49
- package/dist/@legacy/components/icon/icon.svelte.d.ts +0 -4
- package/dist/@legacy/components/icon/types.d.ts +0 -16
- package/dist/@legacy/components/icon/types.js +0 -1
- package/dist/@legacy/components/index.d.ts +0 -22
- package/dist/@legacy/components/index.js +0 -23
- package/dist/@legacy/components/list/list.css +0 -149
- package/dist/@legacy/components/list/list.svelte +0 -44
- package/dist/@legacy/components/list/list.svelte.d.ts +0 -4
- package/dist/@legacy/components/list/modules/list-item.css +0 -67
- package/dist/@legacy/components/list/modules/list-item.svelte +0 -76
- package/dist/@legacy/components/list/modules/list-item.svelte.d.ts +0 -4
- package/dist/@legacy/components/list/types.d.ts +0 -33
- package/dist/@legacy/components/list/types.js +0 -1
- package/dist/@legacy/components/modal/modal.css +0 -137
- package/dist/@legacy/components/modal/modal.svelte +0 -118
- package/dist/@legacy/components/modal/modal.svelte.d.ts +0 -4
- package/dist/@legacy/components/modal/types.d.ts +0 -26
- package/dist/@legacy/components/modal/types.js +0 -1
- package/dist/@legacy/components/popover/popover.css +0 -13
- package/dist/@legacy/components/popover/popover.svelte +0 -73
- package/dist/@legacy/components/popover/popover.svelte.d.ts +0 -4
- package/dist/@legacy/components/popover/types.d.ts +0 -20
- package/dist/@legacy/components/popover/types.js +0 -1
- package/dist/@legacy/components/separator/separator.css +0 -42
- package/dist/@legacy/components/separator/separator.svelte +0 -37
- package/dist/@legacy/components/separator/separator.svelte.d.ts +0 -4
- package/dist/@legacy/components/separator/types.d.ts +0 -15
- package/dist/@legacy/components/separator/types.js +0 -1
- package/dist/@legacy/components/spacer/spacer.css +0 -3
- package/dist/@legacy/components/spacer/spacer.svelte +0 -7
- package/dist/@legacy/components/spacer/spacer.svelte.d.ts +0 -4
- package/dist/@legacy/components/spacer/types.d.ts +0 -4
- package/dist/@legacy/components/spacer/types.js +0 -1
- package/dist/@legacy/components/textfield/textfield.css +0 -298
- package/dist/@legacy/components/textfield/textfield.svelte +0 -193
- package/dist/@legacy/components/textfield/textfield.svelte.d.ts +0 -4
- package/dist/@legacy/components/textfield/types.d.ts +0 -37
- package/dist/@legacy/components/textfield/types.js +0 -1
- package/dist/@legacy/components/toolbar/toolbar.css +0 -106
- package/dist/@legacy/components/toolbar/toolbar.svelte +0 -47
- package/dist/@legacy/components/toolbar/toolbar.svelte.d.ts +0 -4
- package/dist/@legacy/components/toolbar/types.d.ts +0 -27
- package/dist/@legacy/components/toolbar/types.js +0 -1
- package/dist/@legacy/components/tooltip/tooltip.css +0 -116
- package/dist/@legacy/components/tooltip/tooltip.svelte +0 -113
- package/dist/@legacy/components/tooltip/tooltip.svelte.d.ts +0 -4
- package/dist/@legacy/components/tooltip/types.d.ts +0 -23
- package/dist/@legacy/components/tooltip/types.js +0 -1
- package/dist/@legacy/index.d.ts +0 -3
- package/dist/@legacy/index.js +0 -24
- package/dist/@legacy/internal/config/presets.d.ts +0 -149
- package/dist/@legacy/internal/config/presets.js +0 -169
- package/dist/@legacy/internal/config/variables.d.ts +0 -3
- package/dist/@legacy/internal/config/variables.js +0 -3
- package/dist/@legacy/internal/core/actions/assets.svelte.d.ts +0 -8
- package/dist/@legacy/internal/core/actions/assets.svelte.js +0 -54
- package/dist/@legacy/internal/core/actions/dropdown.svelte.d.ts +0 -7
- package/dist/@legacy/internal/core/actions/dropdown.svelte.js +0 -148
- package/dist/@legacy/internal/core/actions/popover.svelte.d.ts +0 -7
- package/dist/@legacy/internal/core/actions/popover.svelte.js +0 -134
- package/dist/@legacy/internal/core/actions/tooltip.svelte.d.ts +0 -7
- package/dist/@legacy/internal/core/actions/tooltip.svelte.js +0 -131
- package/dist/@legacy/internal/core/animations/ripple.d.ts +0 -12
- package/dist/@legacy/internal/core/animations/ripple.js +0 -96
- package/dist/@legacy/internal/core/bin/ansi.d.ts +0 -40
- package/dist/@legacy/internal/core/bin/ansi.js +0 -44
- package/dist/@legacy/internal/core/bin/terminal.d.ts +0 -1
- package/dist/@legacy/internal/core/bin/terminal.js +0 -12
- package/dist/@legacy/internal/core/css.d.ts +0 -1
- package/dist/@legacy/internal/core/css.js +0 -16
- package/dist/@legacy/internal/core/formatter/component.d.ts +0 -5
- package/dist/@legacy/internal/core/formatter/component.js +0 -60
- package/dist/@legacy/internal/core/formatter/device.d.ts +0 -5
- package/dist/@legacy/internal/core/formatter/device.js +0 -66
- package/dist/@legacy/internal/core/formatter/index.d.ts +0 -7
- package/dist/@legacy/internal/core/formatter/index.js +0 -35
- package/dist/@legacy/internal/core/formatter/style.d.ts +0 -4
- package/dist/@legacy/internal/core/formatter/style.js +0 -15
- package/dist/@legacy/internal/core/formatter/theme.d.ts +0 -5
- package/dist/@legacy/internal/core/formatter/theme.js +0 -44
- package/dist/@legacy/internal/core/formatter/typography.d.ts +0 -5
- package/dist/@legacy/internal/core/formatter/typography.js +0 -12
- package/dist/@legacy/internal/core/minify.d.ts +0 -1
- package/dist/@legacy/internal/core/minify.js +0 -10
- package/dist/@legacy/internal/core/standard-colors.d.ts +0 -75
- package/dist/@legacy/internal/core/standard-colors.js +0 -75
- package/dist/@legacy/internal/core/x11-colors.d.ts +0 -4
- package/dist/@legacy/internal/core/x11-colors.js +0 -151
- package/dist/@legacy/internal/helpers/colors.d.ts +0 -1
- package/dist/@legacy/internal/helpers/colors.js +0 -50
- package/dist/@legacy/internal/helpers/convert.d.ts +0 -1
- package/dist/@legacy/internal/helpers/convert.js +0 -17
- package/dist/@legacy/internal/helpers/deep-merge.d.ts +0 -44
- package/dist/@legacy/internal/helpers/deep-merge.js +0 -80
- package/dist/@legacy/internal/helpers/outside.d.ts +0 -9
- package/dist/@legacy/internal/helpers/outside.js +0 -34
- package/dist/@legacy/internal/helpers/parser.d.ts +0 -10
- package/dist/@legacy/internal/helpers/parser.js +0 -93
- package/dist/@legacy/internal/helpers/scroll.d.ts +0 -1
- package/dist/@legacy/internal/helpers/scroll.js +0 -5
- package/dist/@legacy/internal/plugins/vite.d.ts +0 -8
- package/dist/@legacy/internal/plugins/vite.js +0 -33
- package/dist/@legacy/internal/types/components.d.ts +0 -14
- package/dist/@legacy/internal/types/components.js +0 -1
- package/dist/@legacy/internal/types/configuration.d.ts +0 -63
- package/dist/@legacy/internal/types/configuration.js +0 -1
- package/dist/@legacy/internal/types/index.d.ts +0 -2
- package/dist/@legacy/internal/types/index.js +0 -2
- package/dist/@legacy/stores/breakpoints.d.ts +0 -6
- package/dist/@legacy/stores/breakpoints.js +0 -14
- package/dist/@legacy/stores/devices.d.ts +0 -6
- package/dist/@legacy/stores/devices.js +0 -9
- package/dist/@legacy/stores/index.d.ts +0 -5
- package/dist/@legacy/stores/index.js +0 -5
- package/dist/@legacy/stores/themes.js +0 -4
- package/dist/@legacy/stores/viewport.d.ts +0 -7
- package/dist/@legacy/stores/viewport.js +0 -7
- package/dist/@legacy/styles/animation.css +0 -33
- package/dist/@legacy/styles/keyframes.css +0 -30
- package/dist/@legacy/styles/reset.css +0 -133
- package/dist/@legacy/styles.css +0 -0
- package/dist/@legacy/styles.css.d.ts +0 -4
- package/dist/@legacy/themes.css +0 -0
- package/dist/@legacy/themes.css.d.ts +0 -4
- /package/dist/{@legacy/components/accordion/types.js → @types/actions.js} +0 -0
- /package/dist/{@legacy/actions → components/accordion}/accordion.svelte.js +0 -0
package/dist/@types/index.d.ts
CHANGED
package/dist/@types/index.js
CHANGED
package/dist/actions.js
ADDED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { disabledScroll } from '../../@legacy/internal/helpers/scroll';
|
|
3
2
|
import { makeComponentProps } from '../../html-mapped';
|
|
4
|
-
import { useClassName, useStyles } from '../../utils';
|
|
3
|
+
import { useClassName, useStyles, disabledScroll } from '../../utils';
|
|
5
4
|
import type { DialogDensity, DialogPosition, DialogProps, DialogSize } from './dialog.types.js';
|
|
6
5
|
|
|
7
6
|
function resolveSize(value: DialogSize | undefined): DialogSize {
|
|
@@ -134,41 +134,6 @@
|
|
|
134
134
|
padding: 0.5rem;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
.kit-list[data-size='xs'] {
|
|
138
|
-
--kit-list-item-h: var(--kit-list-item-h-xs);
|
|
139
|
-
--kit-list-item-px: var(--kit-list-item-px-xs);
|
|
140
|
-
--kit-list-item-gap: var(--kit-list-item-gap-xs);
|
|
141
|
-
--kit-list-item-font: var(--kit-list-item-font-xs);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.kit-list[data-size='sm'] {
|
|
145
|
-
--kit-list-item-h: var(--kit-list-item-h-sm);
|
|
146
|
-
--kit-list-item-px: var(--kit-list-item-px-sm);
|
|
147
|
-
--kit-list-item-gap: var(--kit-list-item-gap-sm);
|
|
148
|
-
--kit-list-item-font: var(--kit-list-item-font-sm);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.kit-list[data-size='md'] {
|
|
152
|
-
--kit-list-item-h: var(--kit-list-item-h-md);
|
|
153
|
-
--kit-list-item-px: var(--kit-list-item-px-md);
|
|
154
|
-
--kit-list-item-gap: var(--kit-list-item-gap-md);
|
|
155
|
-
--kit-list-item-font: var(--kit-list-item-font-md);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.kit-list[data-size='lg'] {
|
|
159
|
-
--kit-list-item-h: var(--kit-list-item-h-lg);
|
|
160
|
-
--kit-list-item-px: var(--kit-list-item-px-lg);
|
|
161
|
-
--kit-list-item-gap: var(--kit-list-item-gap-lg);
|
|
162
|
-
--kit-list-item-font: var(--kit-list-item-font-lg);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.kit-list[data-size='xl'] {
|
|
166
|
-
--kit-list-item-h: var(--kit-list-item-h-xl);
|
|
167
|
-
--kit-list-item-px: var(--kit-list-item-px-xl);
|
|
168
|
-
--kit-list-item-gap: var(--kit-list-item-gap-xl);
|
|
169
|
-
--kit-list-item-font: var(--kit-list-item-font-xl);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
137
|
.kit-list[data-density='compact'] {
|
|
173
138
|
--kit-list-density-offset: -0.25rem;
|
|
174
139
|
}
|
|
@@ -118,6 +118,41 @@
|
|
|
118
118
|
text-align: left;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
:global(.kit-list[data-size='xs']) .kit-list-item {
|
|
122
|
+
--kit-list-item-h: var(--kit-list-item-h-xs, 2.125rem);
|
|
123
|
+
--kit-list-item-px: var(--kit-list-item-px-xs, 0.625rem);
|
|
124
|
+
--kit-list-item-gap: var(--kit-list-item-gap-xs, 0.5rem);
|
|
125
|
+
--kit-list-item-font: var(--kit-list-item-font-xs, 0.75rem);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:global(.kit-list[data-size='sm']) .kit-list-item {
|
|
129
|
+
--kit-list-item-h: var(--kit-list-item-h-sm, 2.375rem);
|
|
130
|
+
--kit-list-item-px: var(--kit-list-item-px-sm, 0.75rem);
|
|
131
|
+
--kit-list-item-gap: var(--kit-list-item-gap-sm, 0.5rem);
|
|
132
|
+
--kit-list-item-font: var(--kit-list-item-font-sm, 0.875rem);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:global(.kit-list[data-size='md']) .kit-list-item {
|
|
136
|
+
--kit-list-item-h: var(--kit-list-item-h-md, 2.75rem);
|
|
137
|
+
--kit-list-item-px: var(--kit-list-item-px-md, 0.875rem);
|
|
138
|
+
--kit-list-item-gap: var(--kit-list-item-gap-md, 0.625rem);
|
|
139
|
+
--kit-list-item-font: var(--kit-list-item-font-md, 0.9375rem);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:global(.kit-list[data-size='lg']) .kit-list-item {
|
|
143
|
+
--kit-list-item-h: var(--kit-list-item-h-lg, 3.125rem);
|
|
144
|
+
--kit-list-item-px: var(--kit-list-item-px-lg, 1rem);
|
|
145
|
+
--kit-list-item-gap: var(--kit-list-item-gap-lg, 0.75rem);
|
|
146
|
+
--kit-list-item-font: var(--kit-list-item-font-lg, 1rem);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:global(.kit-list[data-size='xl']) .kit-list-item {
|
|
150
|
+
--kit-list-item-h: var(--kit-list-item-h-xl, 3.5rem);
|
|
151
|
+
--kit-list-item-px: var(--kit-list-item-px-xl, 1.125rem);
|
|
152
|
+
--kit-list-item-gap: var(--kit-list-item-gap-xl, 0.875rem);
|
|
153
|
+
--kit-list-item-font: var(--kit-list-item-font-xl, 1.0625rem);
|
|
154
|
+
}
|
|
155
|
+
|
|
121
156
|
.kit-list-item[data-rounded='0'] {
|
|
122
157
|
--kit-list-item-radius: 0;
|
|
123
158
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import type { ModalState } from '../../@types';
|
|
1
2
|
import { type Writable } from 'svelte/store';
|
|
2
|
-
type ModalState = boolean | 'persistent';
|
|
3
3
|
export declare const modalOpen: Writable<ModalState>;
|
|
4
4
|
export declare const modalStack: Writable<string[]>;
|
|
5
5
|
export declare function setOpenModal(state: boolean | 'persistent'): void;
|
|
6
6
|
export declare const pushModal: (id: string) => void;
|
|
7
7
|
export declare const popModal: (id: string) => void;
|
|
8
|
-
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { get } from 'svelte/store';
|
|
4
4
|
import { makeComponentProps } from '../../html-mapped';
|
|
5
5
|
import { useClassName, useStyles } from '../../utils';
|
|
6
|
-
import { modalOpen, modalStack, popModal, pushModal, setOpenModal } from '
|
|
6
|
+
import { modalOpen, modalStack, popModal, pushModal, setOpenModal } from './modal.js';
|
|
7
7
|
import type { ModalDensity, ModalPosition, ModalProps, ModalSize } from './modal.types.js';
|
|
8
8
|
|
|
9
9
|
function resolveSize(value: ModalSize | undefined): ModalSize {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { TextfieldProps } from './textfield.types.ts';
|
|
2
|
-
declare const Textfield: import("svelte").Component<TextfieldProps, {}, "
|
|
2
|
+
declare const Textfield: import("svelte").Component<TextfieldProps, {}, "value" | "ref">;
|
|
3
3
|
type Textfield = ReturnType<typeof Textfield>;
|
|
4
4
|
export default Textfield;
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const lapikitImportsRef = "lapikit/
|
|
2
|
-
export declare const lapikitImportsLabsRef = "lapikit/labs/
|
|
1
|
+
export declare const lapikitImportsRef = "lapikit/components";
|
|
2
|
+
export declare const lapikitImportsLabsRef = "lapikit/labs/components";
|
|
3
3
|
export declare const lapikitComponents: readonly string[];
|
|
4
4
|
export declare const lapikitLabsComponents: readonly string[];
|
|
5
5
|
export declare const lapikitPlugins: {
|
package/dist/constants.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const lapikitImportsRef = 'lapikit/
|
|
2
|
-
export const lapikitImportsLabsRef = 'lapikit/labs/
|
|
1
|
+
export const lapikitImportsRef = 'lapikit/components';
|
|
2
|
+
export const lapikitImportsLabsRef = 'lapikit/labs/components';
|
|
3
3
|
export const lapikitComponents = [
|
|
4
4
|
'app',
|
|
5
5
|
'btn',
|
package/dist/utils/outside.d.ts
CHANGED
package/dist/utils/outside.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { writable } from 'svelte/store';
|
|
2
2
|
// states
|
|
3
3
|
const isBrowser = typeof window !== 'undefined';
|
|
4
|
+
// presets
|
|
5
|
+
const themeRef = 'light';
|
|
6
|
+
export const theme = writable(themeRef);
|
|
4
7
|
export function useTheme(name, key = '@lapikit/theme') {
|
|
5
8
|
theme.update(() => {
|
|
6
9
|
if (isBrowser) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lapikit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -43,51 +43,30 @@
|
|
|
43
43
|
"bin": {
|
|
44
44
|
"lapikit": "bin/index.js"
|
|
45
45
|
},
|
|
46
|
-
"svelte": "./dist
|
|
47
|
-
"types": "./dist
|
|
46
|
+
"svelte": "./dist/entry-bundler.js",
|
|
47
|
+
"types": "./dist/entry-bundler.d.ts",
|
|
48
48
|
"type": "module",
|
|
49
49
|
"exports": {
|
|
50
50
|
".": {
|
|
51
|
-
"types": "./dist
|
|
52
|
-
"svelte": "./dist
|
|
53
|
-
},
|
|
54
|
-
"./components": {
|
|
55
|
-
"svelte": "./dist/@legacy/components/index.js",
|
|
56
|
-
"default": "./dist/@legacy/components/index.js"
|
|
57
|
-
},
|
|
58
|
-
"./vite": {
|
|
59
|
-
"default": "./dist/@legacy/internal/plugins/vite.js"
|
|
60
|
-
},
|
|
61
|
-
"./stores": {
|
|
62
|
-
"default": "./dist/@legacy/stores/index.js"
|
|
63
|
-
},
|
|
64
|
-
"./actions": {
|
|
65
|
-
"default": "./dist/@legacy/actions/index.js"
|
|
66
|
-
},
|
|
67
|
-
"./core/colors": {
|
|
68
|
-
"default": "./dist/@legacy/internal/core/standard-colors.js"
|
|
69
|
-
},
|
|
70
|
-
"./styles": {
|
|
71
|
-
"types": "./dist/@legacy/styles.css.d.ts",
|
|
72
|
-
"default": "./dist/@legacy/styles.css"
|
|
73
|
-
},
|
|
74
|
-
"./themes": {
|
|
75
|
-
"types": "./dist/@legacy/themes.css.d.ts",
|
|
76
|
-
"default": "./dist/@legacy/themes.css"
|
|
51
|
+
"types": "./dist/entry-bundler.d.ts",
|
|
52
|
+
"svelte": "./dist/entry-bundler.js"
|
|
77
53
|
},
|
|
78
|
-
"./
|
|
54
|
+
"./preprocess": {
|
|
79
55
|
"types": "./dist/entry-bundler.d.ts",
|
|
80
56
|
"default": "./dist/entry-bundler.js"
|
|
81
57
|
},
|
|
82
|
-
"./
|
|
58
|
+
"./components": {
|
|
83
59
|
"types": "./dist/components/index.d.ts",
|
|
84
60
|
"svelte": "./dist/components/index.js",
|
|
85
61
|
"default": "./dist/components/index.js"
|
|
86
62
|
},
|
|
87
|
-
"./labs/
|
|
63
|
+
"./labs/components": {
|
|
88
64
|
"types": "./dist/labs/index.d.ts",
|
|
89
65
|
"svelte": "./dist/labs/index.js",
|
|
90
66
|
"default": "./dist/labs/index.js"
|
|
67
|
+
},
|
|
68
|
+
"./actions": {
|
|
69
|
+
"default": "./dist/actions.js"
|
|
91
70
|
}
|
|
92
71
|
},
|
|
93
72
|
"peerDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useTheme(name: string, key?: string): void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<script lang="ts"></script>
|
|
2
|
-
|
|
3
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
|
4
|
-
><path
|
|
5
|
-
fill="none"
|
|
6
|
-
stroke="currentColor"
|
|
7
|
-
stroke-linecap="round"
|
|
8
|
-
stroke-linejoin="round"
|
|
9
|
-
stroke-width="2.5"
|
|
10
|
-
d="m7 10l5 5m0 0l5-5"
|
|
11
|
-
/></svg
|
|
12
|
-
>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
-
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
-
$$bindings?: Bindings;
|
|
4
|
-
} & Exports;
|
|
5
|
-
(internal: unknown, props: {
|
|
6
|
-
$$events?: Events;
|
|
7
|
-
$$slots?: Slots;
|
|
8
|
-
}): Exports & {
|
|
9
|
-
$set?: any;
|
|
10
|
-
$on?: any;
|
|
11
|
-
};
|
|
12
|
-
z_$$bindings?: Bindings;
|
|
13
|
-
}
|
|
14
|
-
declare const ArrowDown: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
-
[evt: string]: CustomEvent<any>;
|
|
16
|
-
}, {}, {}, string>;
|
|
17
|
-
type ArrowDown = InstanceType<typeof ArrowDown>;
|
|
18
|
-
export default ArrowDown;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<script lang="ts"></script>
|
|
2
|
-
|
|
3
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
|
4
|
-
><path
|
|
5
|
-
fill="none"
|
|
6
|
-
stroke="currentColor"
|
|
7
|
-
stroke-linecap="round"
|
|
8
|
-
stroke-linejoin="round"
|
|
9
|
-
stroke-width="2.5"
|
|
10
|
-
d="m17 14l-5-5m0 0l-5 5"
|
|
11
|
-
/></svg
|
|
12
|
-
>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
-
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
-
$$bindings?: Bindings;
|
|
4
|
-
} & Exports;
|
|
5
|
-
(internal: unknown, props: {
|
|
6
|
-
$$events?: Events;
|
|
7
|
-
$$slots?: Slots;
|
|
8
|
-
}): Exports & {
|
|
9
|
-
$set?: any;
|
|
10
|
-
$on?: any;
|
|
11
|
-
};
|
|
12
|
-
z_$$bindings?: Bindings;
|
|
13
|
-
}
|
|
14
|
-
declare const ArrowUp: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
-
[evt: string]: CustomEvent<any>;
|
|
16
|
-
}, {}, {}, string>;
|
|
17
|
-
type ArrowUp = InstanceType<typeof ArrowUp>;
|
|
18
|
-
export default ArrowUp;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<script lang="ts"></script>
|
|
2
|
-
|
|
3
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
|
4
|
-
><title>close_fill</title><g id="close_fill" fill="none" fill-rule="evenodd"
|
|
5
|
-
><path
|
|
6
|
-
d="M24 0v24H0V0zM12.593 23.258l-.011.002-.071.035-.02.004-.014-.004-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01-.017.428.005.02.01.013.104.074.015.004.012-.004.104-.074.012-.016.004-.017-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113-.013.002-.185.093-.01.01-.003.011.018.43.005.012.008.007.201.093c.012.004.023 0 .029-.008l.004-.014-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014-.034.614c0 .012.007.02.017.024l.015-.002.201-.093.01-.008.004-.011.017-.43-.003-.012-.01-.01z"
|
|
7
|
-
/><path
|
|
8
|
-
fill="currentColor"
|
|
9
|
-
d="m12 14.122 5.303 5.303a1.5 1.5 0 0 0 2.122-2.122L14.12 12l5.304-5.303a1.5 1.5 0 1 0-2.122-2.121L12 9.879 6.697 4.576a1.5 1.5 0 1 0-2.122 2.12L9.88 12l-5.304 5.304a1.5 1.5 0 1 0 2.122 2.12z"
|
|
10
|
-
/></g
|
|
11
|
-
></svg
|
|
12
|
-
>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
-
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
-
$$bindings?: Bindings;
|
|
4
|
-
} & Exports;
|
|
5
|
-
(internal: unknown, props: {
|
|
6
|
-
$$events?: Events;
|
|
7
|
-
$$slots?: Slots;
|
|
8
|
-
}): Exports & {
|
|
9
|
-
$set?: any;
|
|
10
|
-
$on?: any;
|
|
11
|
-
};
|
|
12
|
-
z_$$bindings?: Bindings;
|
|
13
|
-
}
|
|
14
|
-
declare const CloseFill: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
-
[evt: string]: CustomEvent<any>;
|
|
16
|
-
}, {}, {}, string>;
|
|
17
|
-
type CloseFill = InstanceType<typeof CloseFill>;
|
|
18
|
-
export default CloseFill;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<script lang="ts"></script>
|
|
2
|
-
|
|
3
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
|
4
|
-
><defs
|
|
5
|
-
><linearGradient id="a" x1="50%" x2="50%" y1="5.271%" y2="91.793%"
|
|
6
|
-
><stop offset="0%" stop-color="currentColor" /><stop
|
|
7
|
-
offset="100%"
|
|
8
|
-
stop-color="currentColor"
|
|
9
|
-
stop-opacity=".55"
|
|
10
|
-
/></linearGradient
|
|
11
|
-
><linearGradient id="b" x1="50%" x2="50%" y1="15.24%" y2="87.15%"
|
|
12
|
-
><stop offset="0%" stop-color="currentColor" stop-opacity="0" /><stop
|
|
13
|
-
offset="100%"
|
|
14
|
-
stop-color="currentColor"
|
|
15
|
-
stop-opacity=".55"
|
|
16
|
-
/></linearGradient
|
|
17
|
-
></defs
|
|
18
|
-
><g fill="none"
|
|
19
|
-
><path
|
|
20
|
-
d="M24 0v24H0V0zM12.593 23.258l-.011.002-.071.035-.02.004-.014-.004-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01-.017.428.005.02.01.013.104.074.015.004.012-.004.104-.074.012-.016.004-.017-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113-.013.002-.185.093-.01.01-.003.011.018.43.005.012.008.007.201.093c.012.004.023 0 .029-.008l.004-.014-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014-.034.614c0 .012.007.02.017.024l.015-.002.201-.093.01-.008.004-.011.017-.43-.003-.012-.01-.01z"
|
|
21
|
-
/><path
|
|
22
|
-
fill="url(#a)"
|
|
23
|
-
d="M8.749.021a1.5 1.5 0 0 1 .497 2.958A7.502 7.502 0 0 0 3 10.375a7.5 7.5 0 0 0 7.5 7.5v3c-5.799 0-10.5-4.7-10.5-10.5C0 5.23 3.726.865 8.749.021"
|
|
24
|
-
transform="translate(1.5 1.625)"
|
|
25
|
-
/><path
|
|
26
|
-
fill="url(#b)"
|
|
27
|
-
d="M15.392 2.673a1.5 1.5 0 0 1 2.119-.115A10.475 10.475 0 0 1 21 10.375c0 5.8-4.701 10.5-10.5 10.5v-3a7.5 7.5 0 0 0 5.007-13.084 1.5 1.5 0 0 1-.115-2.118"
|
|
28
|
-
transform="translate(1.5 1.625)"
|
|
29
|
-
/></g
|
|
30
|
-
></svg
|
|
31
|
-
>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
-
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
-
$$bindings?: Bindings;
|
|
4
|
-
} & Exports;
|
|
5
|
-
(internal: unknown, props: {
|
|
6
|
-
$$events?: Events;
|
|
7
|
-
$$slots?: Slots;
|
|
8
|
-
}): Exports & {
|
|
9
|
-
$set?: any;
|
|
10
|
-
$on?: any;
|
|
11
|
-
};
|
|
12
|
-
z_$$bindings?: Bindings;
|
|
13
|
-
}
|
|
14
|
-
declare const LoadingFill: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
-
[evt: string]: CustomEvent<any>;
|
|
16
|
-
}, {}, {}, string>;
|
|
17
|
-
type LoadingFill = InstanceType<typeof LoadingFill>;
|
|
18
|
-
export default LoadingFill;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
.kit-accordion {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-wrap: wrap;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
list-style-type: none;
|
|
6
|
-
padding: 0;
|
|
7
|
-
width: 100%;
|
|
8
|
-
position: relative;
|
|
9
|
-
z-index: 1;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.kit-accordion.kit-accordion--spacer .kit-accordion-item:first-child.kit-accordion-item--active {
|
|
13
|
-
margin-bottom: 1rem;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.kit-accordion.kit-accordion--spacer
|
|
17
|
-
.kit-accordion-item:not(:first-child):not(:last-child).kit-accordion-item--active {
|
|
18
|
-
margin-bottom: 1rem;
|
|
19
|
-
margin-top: 1rem;
|
|
20
|
-
}
|
|
21
|
-
.kit-accordion.kit-accordion--spacer .kit-accordion-item:last-child.kit-accordion-item--active {
|
|
22
|
-
margin-top: 1rem;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.kit-accordion.kit-accordion--hide-icon
|
|
26
|
-
.kit-accordion-item
|
|
27
|
-
.kit-accordion-item--title
|
|
28
|
-
> .kit-accordion-item--icon {
|
|
29
|
-
display: none !important;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.kit-accordion.kit-accordion--hide-icon .kit-accordion-item .kit-accordion-item--title {
|
|
33
|
-
cursor: default;
|
|
34
|
-
pointer-events: none;
|
|
35
|
-
user-select: none;
|
|
36
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { getAssets } from '../../internal/core/actions/assets.svelte.js';
|
|
3
|
-
import type { AccordionProps } from './types.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(),
|
|
7
|
-
children,
|
|
8
|
-
is = 'div',
|
|
9
|
-
dark,
|
|
10
|
-
light,
|
|
11
|
-
color,
|
|
12
|
-
background,
|
|
13
|
-
spacer,
|
|
14
|
-
hideIcon,
|
|
15
|
-
rounded,
|
|
16
|
-
...rest
|
|
17
|
-
}: AccordionProps = $props();
|
|
18
|
-
|
|
19
|
-
const assets = getAssets();
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<svelte:element
|
|
23
|
-
this={is}
|
|
24
|
-
bind:this={ref}
|
|
25
|
-
{...rest}
|
|
26
|
-
class={[
|
|
27
|
-
'kit-accordion',
|
|
28
|
-
spacer && 'kit-accordion--spacer',
|
|
29
|
-
hideIcon && 'kit-accordion--hide-icon',
|
|
30
|
-
light && 'light',
|
|
31
|
-
dark && 'dark',
|
|
32
|
-
rest.class
|
|
33
|
-
]}
|
|
34
|
-
style:--accordion-shape={assets.shape(rounded)}
|
|
35
|
-
style:--accordion-background={assets.color(background)}
|
|
36
|
-
style:--accordion-color={assets.color(color)}
|
|
37
|
-
>
|
|
38
|
-
{@render children?.()}
|
|
39
|
-
</svelte:element>
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
.kit-accordion-item {
|
|
2
|
-
flex: 1 0 100%;
|
|
3
|
-
max-width: 100%;
|
|
4
|
-
position: relative;
|
|
5
|
-
transition: 0.3s all cubic-bezier(0.4, 0, 0.2, 1);
|
|
6
|
-
transition-property: margin-top, border-radius, border, max-width;
|
|
7
|
-
border-radius: var(--accordion-shape, var(--system-shape-md));
|
|
8
|
-
color: var(--accordion-color, var(--kit-label-primary));
|
|
9
|
-
background-color: var(--accordion-background, var(--kit-background-grouped-primary));
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.kit-accordion-item > button,
|
|
13
|
-
.kit-accordion-item > [type='button'] {
|
|
14
|
-
font: inherit;
|
|
15
|
-
overflow: visible;
|
|
16
|
-
background-color: transparent;
|
|
17
|
-
border-style: none;
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
color: inherit;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.kit-accordion-item .kit-accordion-item--title {
|
|
23
|
-
align-items: center;
|
|
24
|
-
text-align: start;
|
|
25
|
-
border-radius: inherit;
|
|
26
|
-
display: flex;
|
|
27
|
-
font-size: 0.9375rem;
|
|
28
|
-
min-height: 3rem;
|
|
29
|
-
outline: none;
|
|
30
|
-
padding: 1rem 1.5rem;
|
|
31
|
-
position: relative;
|
|
32
|
-
transition: 0.3s min-height margin-bottom margin-top border-radius cubic-bezier(0.4, 0, 0.2, 1);
|
|
33
|
-
width: 100%;
|
|
34
|
-
justify-content: space-between;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.kit-accordion-item .kit-accordion-item--text {
|
|
38
|
-
display: flex;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.kit-accordion-item .kit-accordion-item--text .kit-accordion-item--text-wrapper {
|
|
42
|
-
padding: 0.5rem 1.5rem 1rem;
|
|
43
|
-
flex: 1 1 auto;
|
|
44
|
-
max-width: 100%;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.kit-accordion-item .kit-accordion-item--icon {
|
|
48
|
-
display: inline-flex;
|
|
49
|
-
margin-bottom: -0.25rem;
|
|
50
|
-
margin-top: -0.25rem;
|
|
51
|
-
-webkit-user-select: none;
|
|
52
|
-
user-select: none;
|
|
53
|
-
margin-inline-start: auto;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/* disabled */
|
|
57
|
-
.kit-accordion-item .kit-accordion-item--title.kit-accordion-item--disabled,
|
|
58
|
-
.kit-accordion-item .kit-accordion-item--title[disabled],
|
|
59
|
-
.kit-accordion-item .kit-accordion-item--title:disabled {
|
|
60
|
-
pointer-events: none;
|
|
61
|
-
user-select: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.kit-accordion-item .kit-accordion-item--title.kit-accordion-item--disabled > *,
|
|
65
|
-
.kit-accordion-item .kit-accordion-item--title[disabled] > *,
|
|
66
|
-
.kit-accordion-item .kit-accordion-item--title:disabled > * {
|
|
67
|
-
opacity: 0.6;
|
|
68
|
-
}
|