lapikit 0.5.9 → 0.6.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/dist/@types/actions.d.ts +6 -0
- package/dist/@types/index.d.ts +1 -0
- package/dist/@types/index.js +1 -0
- package/dist/@types/props.d.ts +1 -0
- package/dist/actions.d.ts +2 -0
- package/dist/actions.js +2 -0
- package/dist/animations/ripple.d.ts +1 -1
- package/dist/animations/ripple.js +36 -23
- package/dist/components/app/app.svelte +122 -8
- package/dist/components/card/card.svelte +49 -96
- package/dist/components/card/card.types.d.ts +22 -2
- package/dist/components/card/modules/card-actions.svelte +53 -0
- package/dist/components/card/modules/card-actions.svelte.d.ts +4 -0
- package/dist/components/card/modules/card-container.svelte +51 -0
- package/dist/components/card/modules/card-container.svelte.d.ts +4 -0
- package/dist/components/card/modules/card-content.svelte +56 -0
- package/dist/components/card/modules/card-content.svelte.d.ts +4 -0
- package/dist/components/card/modules/card-media.svelte +52 -0
- package/dist/components/card/modules/card-media.svelte.d.ts +4 -0
- package/dist/components/card/modules/card-title.svelte +56 -0
- package/dist/components/card/modules/card-title.svelte.d.ts +4 -0
- package/dist/components/dialog/dialog.svelte +1 -2
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +5 -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 +8 -3
- package/dist/utils/components.d.ts +1 -0
- package/dist/utils/components.js +16 -0
- 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
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { getAssets } from '../../internal/core/actions/assets.svelte.js';
|
|
3
|
-
import { clickOutside } from '../../internal/helpers/outside.js';
|
|
4
|
-
import { getPositions } from '../../internal/core/actions/popover.svelte.js';
|
|
5
|
-
import type { PopoverProps, ModelPopoverProps } from './types.js';
|
|
6
|
-
|
|
7
|
-
let {
|
|
8
|
-
open = $bindable(),
|
|
9
|
-
children,
|
|
10
|
-
activator,
|
|
11
|
-
dark,
|
|
12
|
-
light,
|
|
13
|
-
rounded,
|
|
14
|
-
position,
|
|
15
|
-
color,
|
|
16
|
-
background,
|
|
17
|
-
...rest
|
|
18
|
-
}: PopoverProps = $props();
|
|
19
|
-
|
|
20
|
-
const positionAxis = getPositions();
|
|
21
|
-
const assets = getAssets();
|
|
22
|
-
|
|
23
|
-
let ref: HTMLElement | null = $state(null);
|
|
24
|
-
let refActivator: HTMLElement | null = $state(null);
|
|
25
|
-
let axis = $state({ x: 0, y: 0 });
|
|
26
|
-
let innerHeight = $state(0);
|
|
27
|
-
let innerWidth = $state(0);
|
|
28
|
-
let scrollX = $state(0);
|
|
29
|
-
let scrollY = $state(0);
|
|
30
|
-
|
|
31
|
-
axis = positionAxis?.values;
|
|
32
|
-
|
|
33
|
-
let model: ModelPopoverProps = {
|
|
34
|
-
toggle: (element) => handleToggle(element)
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
const handleToggle = (element: HTMLElement | null) => {
|
|
38
|
-
if (element === null) return;
|
|
39
|
-
refActivator = element;
|
|
40
|
-
open = !open;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
$effect(() => {
|
|
44
|
-
if (
|
|
45
|
-
open &&
|
|
46
|
-
ref &&
|
|
47
|
-
refActivator &&
|
|
48
|
-
(scrollX > 0 || scrollY > 0 || innerHeight > 0 || innerWidth > 0)
|
|
49
|
-
) {
|
|
50
|
-
positionAxis.update(refActivator, ref, position);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
</script>
|
|
54
|
-
|
|
55
|
-
<svelte:window bind:innerHeight bind:innerWidth bind:scrollX bind:scrollY />
|
|
56
|
-
|
|
57
|
-
{@render activator?.(model)}
|
|
58
|
-
|
|
59
|
-
{#if open}
|
|
60
|
-
<div
|
|
61
|
-
bind:this={ref}
|
|
62
|
-
{...rest}
|
|
63
|
-
role="menu"
|
|
64
|
-
class={['kit-popover-content', light && 'light', dark && 'dark', rest.class]}
|
|
65
|
-
style={`transform: translate(${axis.x}px, ${axis.y}px);`}
|
|
66
|
-
style:--popover-background={assets.color(background)}
|
|
67
|
-
style:--popover-color={assets.color(color)}
|
|
68
|
-
style:--popover-shape={assets.shape(rounded)}
|
|
69
|
-
use:clickOutside={{ exclude: [ref, refActivator], onClose: () => (open = false) }}
|
|
70
|
-
>
|
|
71
|
-
{@render children?.()}
|
|
72
|
-
</div>
|
|
73
|
-
{/if}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Component } from '../../internal/types/index.js';
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
export type PositionElement = {
|
|
4
|
-
x: number;
|
|
5
|
-
y: number;
|
|
6
|
-
location: string | null;
|
|
7
|
-
};
|
|
8
|
-
export interface PopoverProps extends Component {
|
|
9
|
-
open?: boolean;
|
|
10
|
-
dark?: boolean;
|
|
11
|
-
light?: boolean;
|
|
12
|
-
rounded?: string;
|
|
13
|
-
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
14
|
-
color?: string;
|
|
15
|
-
background?: string;
|
|
16
|
-
activator?: Snippet<[ModelPopoverProps]>;
|
|
17
|
-
}
|
|
18
|
-
export type ModelPopoverProps = {
|
|
19
|
-
toggle: (element: HTMLElement | null) => void;
|
|
20
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
.kit-separator {
|
|
2
|
-
display: block;
|
|
3
|
-
flex: 1 1 100%;
|
|
4
|
-
height: 0px;
|
|
5
|
-
max-height: 0px;
|
|
6
|
-
opacity: var(--separator-opacity, 0.12);
|
|
7
|
-
transition: inherit;
|
|
8
|
-
border-color: var(--separator-color, var(--kit-label-primary));
|
|
9
|
-
border-style: solid;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.kit-separator--inset:not(.kit-separator--orientation-vertical) {
|
|
13
|
-
max-width: calc(100% - 4.5rem);
|
|
14
|
-
margin-inline-start: 4.5rem;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.kit-separator--inset.kit-separator--orientation-vertical {
|
|
18
|
-
margin-bottom: 0.5rem;
|
|
19
|
-
margin-top: 0.5rem;
|
|
20
|
-
max-height: calc(100% - 1rem);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.kit-separator:not(.kit-separator--orientation-vertical) {
|
|
24
|
-
width: 100%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.kit-separator[breakpoint]kit-separator--orientation-horizontal {
|
|
28
|
-
border-width: var(--separator-top-width, thin) 0 0 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.kit-separator[breakpoint]kit-separator--orientation-vertical {
|
|
32
|
-
align-self: stretch;
|
|
33
|
-
border-width: 0 thin 0 0;
|
|
34
|
-
display: inline-flex;
|
|
35
|
-
height: auto;
|
|
36
|
-
margin-left: 0px;
|
|
37
|
-
max-height: 100%;
|
|
38
|
-
max-width: 0px;
|
|
39
|
-
vertical-align: text-bottom;
|
|
40
|
-
width: 0px;
|
|
41
|
-
border-width: 0 var(--separator-right-width, thin) 0 0;
|
|
42
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { getAssets } from '../../internal/core/actions/assets.svelte.js';
|
|
3
|
-
import type { SeparatorProps } from './types.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
is = 'hr',
|
|
7
|
-
light,
|
|
8
|
-
dark,
|
|
9
|
-
inset,
|
|
10
|
-
thickness,
|
|
11
|
-
orientation = 'horizontal',
|
|
12
|
-
opacity,
|
|
13
|
-
color,
|
|
14
|
-
...rest
|
|
15
|
-
}: SeparatorProps = $props();
|
|
16
|
-
|
|
17
|
-
const assets = getAssets();
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<svelte:element
|
|
21
|
-
this={is}
|
|
22
|
-
{...rest}
|
|
23
|
-
class={[
|
|
24
|
-
'kit-separator',
|
|
25
|
-
light && 'light',
|
|
26
|
-
dark && 'dark',
|
|
27
|
-
inset && 'kit-separator--inset',
|
|
28
|
-
orientation && assets.className('separator', 'orientation', orientation),
|
|
29
|
-
rest.class
|
|
30
|
-
]}
|
|
31
|
-
aria-orientation={typeof orientation === 'string' ? orientation : undefined}
|
|
32
|
-
role="separator"
|
|
33
|
-
style:--separator-color={assets.color(color)}
|
|
34
|
-
style:--separator-opacity={opacity}
|
|
35
|
-
style:--separator-top-width={orientation === 'horizontal' ? assets.unit(thickness) : undefined}
|
|
36
|
-
style:--separator-right-width={orientation === 'vertical' ? assets.unit(thickness) : undefined}
|
|
37
|
-
/>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Base } from '../../internal/types/index.js';
|
|
2
|
-
type Orientation = 'horizontal' | 'vertical';
|
|
3
|
-
export interface SeparatorProps extends Base {
|
|
4
|
-
is?: 'div' | 'hr';
|
|
5
|
-
light?: boolean;
|
|
6
|
-
dark?: boolean;
|
|
7
|
-
inset?: boolean;
|
|
8
|
-
thickness?: string;
|
|
9
|
-
opacity?: string | number;
|
|
10
|
-
color?: string;
|
|
11
|
-
orientation?: Orientation | {
|
|
12
|
-
[key: string]: Orientation;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
.kit-textfield {
|
|
2
|
-
flex: 1 1 auto;
|
|
3
|
-
font-size: 1rem;
|
|
4
|
-
display: grid;
|
|
5
|
-
grid-template-areas:
|
|
6
|
-
'prepend control append'
|
|
7
|
-
'a messages b';
|
|
8
|
-
grid-template-columns: max-content minmax(0, 1fr) max-content;
|
|
9
|
-
grid-template-rows: 1fr auto;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/* variant */
|
|
13
|
-
.kit-textfield[breakpoint]kit-textfield--variant-filled .kit-field {
|
|
14
|
-
--textfield-border-color: var(--textfield-background, var(--kit-background-grouped-primary));
|
|
15
|
-
background-color: var(--textfield-background, var(--kit-background-grouped-primary));
|
|
16
|
-
border-radius: var(--textfield-shape, var(--system-shape-md));
|
|
17
|
-
color: var(--textfield-color, var(--kit-label-primary));
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.kit-textfield[breakpoint]kit-textfield--variant-outline .kit-field {
|
|
21
|
-
--textfield-border-color: var(--textfield-color);
|
|
22
|
-
background-color: var(--textfield-background);
|
|
23
|
-
border-radius: var(--textfield-shape);
|
|
24
|
-
color: var(--textfield-color);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.kit-textfield[breakpoint]kit-textfield--variant-filled .kit-textfield-outline,
|
|
28
|
-
.kit-textfield[breakpoint]kit-textfield--variant-outline .kit-textfield-outline {
|
|
29
|
-
border-bottom: 1px solid var(--textfield-border-color);
|
|
30
|
-
border-top: 1px solid var(--textfield-border-color);
|
|
31
|
-
border-right: 1px solid var(--textfield-border-color);
|
|
32
|
-
border-left: 1px solid var(--textfield-border-color);
|
|
33
|
-
border-radius: var(--textfield-shape);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.kit-textfield[breakpoint]kit-textfield--variant-text .kit-field {
|
|
37
|
-
--textfield-border-color: var(--textfield-color);
|
|
38
|
-
background-color: transparent;
|
|
39
|
-
border-radius: 0;
|
|
40
|
-
color: var(--textfield-color);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.kit-textfield[breakpoint]kit-textfield--variant-text .kit-textfield-outline {
|
|
44
|
-
border-bottom: 1px solid var(--textfield-border-color);
|
|
45
|
-
border-top: 0;
|
|
46
|
-
border-right: 0;
|
|
47
|
-
border-left: 0;
|
|
48
|
-
border-radius: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.kit-textfield--hide-spin-buttons input[type='number'] {
|
|
52
|
-
-moz-appearance: textfield;
|
|
53
|
-
appearance: textfield;
|
|
54
|
-
}
|
|
55
|
-
.kit-textfield--hide-spin-buttons input[type='number']::-webkit-inner-spin-button,
|
|
56
|
-
.kit-textfield--hide-spin-buttons input[type='number']::-webkit-outer-spin-button {
|
|
57
|
-
display: none;
|
|
58
|
-
-webkit-appearance: none;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.kit-textfield--disabled {
|
|
62
|
-
opacity: 0.5;
|
|
63
|
-
pointer-events: none;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.kit-textfield--readonly {
|
|
67
|
-
pointer-events: none;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.kit-textfield--error .kit-textfield-outline {
|
|
71
|
-
border: 1px solid var(--kit-accent-destructive);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.kit-textfield-outline {
|
|
75
|
-
align-items: stretch;
|
|
76
|
-
contain: layout;
|
|
77
|
-
display: flex;
|
|
78
|
-
height: 100%;
|
|
79
|
-
left: 0;
|
|
80
|
-
pointer-events: none;
|
|
81
|
-
position: absolute;
|
|
82
|
-
right: 0;
|
|
83
|
-
width: 100%;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.kit-textfield .kit-textfield-prepend {
|
|
87
|
-
display: flex;
|
|
88
|
-
grid-area: prepend;
|
|
89
|
-
margin-inline-end: 16px;
|
|
90
|
-
align-items: center;
|
|
91
|
-
padding-top: 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.kit-textfield .kit-textfield-append {
|
|
95
|
-
display: flex;
|
|
96
|
-
grid-area: append;
|
|
97
|
-
margin-inline-start: 16px;
|
|
98
|
-
align-items: center;
|
|
99
|
-
padding-top: 0;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/* control */
|
|
103
|
-
.kit-textfield-control {
|
|
104
|
-
display: flex;
|
|
105
|
-
grid-area: control;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.kit-textfield-control .kit-textfield-prepend-inner {
|
|
109
|
-
grid-area: prepend-inner;
|
|
110
|
-
display: flex;
|
|
111
|
-
align-items: center;
|
|
112
|
-
padding-top: 0;
|
|
113
|
-
}
|
|
114
|
-
.kit-textfield-control .kit-textfield-clearable {
|
|
115
|
-
cursor: pointer;
|
|
116
|
-
display: flex;
|
|
117
|
-
align-items: center;
|
|
118
|
-
padding-top: 0;
|
|
119
|
-
overflow: hidden;
|
|
120
|
-
margin-inline: 4px;
|
|
121
|
-
grid-area: clear;
|
|
122
|
-
opacity: 0;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.kit-textfield-clearable.kit-textfield-clearable--visible {
|
|
126
|
-
opacity: 1;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.kit-textfield-control .kit-textfield-append-inner {
|
|
130
|
-
grid-area: append-inner;
|
|
131
|
-
display: flex;
|
|
132
|
-
align-items: center;
|
|
133
|
-
padding-top: 0;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/* field prefix suffix */
|
|
137
|
-
.kit-field .kit-field--field .kit-field--field-prefix,
|
|
138
|
-
.kit-field .kit-field--field .kit-field--field-suffix {
|
|
139
|
-
align-items: center;
|
|
140
|
-
cursor: default;
|
|
141
|
-
display: flex;
|
|
142
|
-
transition: inherit;
|
|
143
|
-
white-space: nowrap;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/* field */
|
|
147
|
-
.kit-textfield-control .kit-field {
|
|
148
|
-
display: grid;
|
|
149
|
-
grid-template-areas: 'prepend-inner field clear append-inner';
|
|
150
|
-
grid-template-columns: max-content minmax(0, 1fr) max-content max-content;
|
|
151
|
-
font-size: calc(var(--system-spacing) * var(--textfield-multiplier-font-size));
|
|
152
|
-
max-width: 100%;
|
|
153
|
-
contain: layout;
|
|
154
|
-
flex: 1 0;
|
|
155
|
-
grid-area: control;
|
|
156
|
-
position: relative;
|
|
157
|
-
padding: calc(var(--system-spacing) * var(--textfield-multiplier-x))
|
|
158
|
-
calc(var(--system-spacing) * var(--textfield-multiplier-y));
|
|
159
|
-
gap: calc(var(--system-spacing) * var(--textfield-multiplier-gap));
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.kit-textfield-control .kit-field .kit-field--field {
|
|
163
|
-
flex: 1 0;
|
|
164
|
-
grid-area: field;
|
|
165
|
-
position: relative;
|
|
166
|
-
align-items: flex-start;
|
|
167
|
-
display: flex;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.kit-field .kit-field--field input {
|
|
171
|
-
font: inherit;
|
|
172
|
-
border-radius: 0;
|
|
173
|
-
color: inherit;
|
|
174
|
-
flex: 1;
|
|
175
|
-
min-width: 0;
|
|
176
|
-
align-items: center;
|
|
177
|
-
color: inherit;
|
|
178
|
-
column-gap: 2px;
|
|
179
|
-
display: flex;
|
|
180
|
-
flex-wrap: wrap;
|
|
181
|
-
position: relative;
|
|
182
|
-
width: 100%;
|
|
183
|
-
row-gap: 8px;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.kit-field .kit-field--field input:focus,
|
|
187
|
-
.kit-field .kit-field--field input:focus-visible,
|
|
188
|
-
.kit-field .kit-field--field input:active {
|
|
189
|
-
outline: none;
|
|
190
|
-
box-shadow: none;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/* message */
|
|
194
|
-
.kit-textfield-message {
|
|
195
|
-
padding-inline: var(--textfield-spacing-y);
|
|
196
|
-
align-items: flex-end;
|
|
197
|
-
display: flex;
|
|
198
|
-
font-size: 0.75rem;
|
|
199
|
-
grid-area: messages;
|
|
200
|
-
min-height: 22px;
|
|
201
|
-
padding-top: var(--textfield-spacing-x);
|
|
202
|
-
overflow: hidden;
|
|
203
|
-
justify-content: space-between;
|
|
204
|
-
opacity: 0;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.kit-textfield-message.kit-textfield-message--visible {
|
|
208
|
-
opacity: 1;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.kit-message {
|
|
212
|
-
flex: 1 1 auto;
|
|
213
|
-
font-size: 12px;
|
|
214
|
-
min-height: 14px;
|
|
215
|
-
min-width: 1px;
|
|
216
|
-
position: relative;
|
|
217
|
-
display: grid;
|
|
218
|
-
gap: calc(var(--system-spacing) * var(--textfield-multiplier-gap));
|
|
219
|
-
grid-template-areas: 'message-prepend message message-append ';
|
|
220
|
-
grid-template-columns: max-content minmax(0, 1fr) max-content;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.kit-message.kit-message--message-error {
|
|
224
|
-
color: var(--kit-accent-destructive);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.kit-message .kit-message--message {
|
|
228
|
-
line-height: 12px;
|
|
229
|
-
word-break: break-word;
|
|
230
|
-
overflow-wrap: break-word;
|
|
231
|
-
word-wrap: break-word;
|
|
232
|
-
hyphens: auto;
|
|
233
|
-
grid-area: message;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.kit-message .kit-message--prepend,
|
|
237
|
-
.kit-message .kit-message--append {
|
|
238
|
-
line-height: 12px;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.kit-message .kit-message--prepend {
|
|
242
|
-
grid-area: message-prepend;
|
|
243
|
-
}
|
|
244
|
-
.kit-message .kit-message--append {
|
|
245
|
-
grid-area: message-append;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
/* size */
|
|
249
|
-
.kit-textfield[breakpoint]kit-textfield--size-xs {
|
|
250
|
-
--textfield-multiplier-x: 2;
|
|
251
|
-
--textfield-multiplier-y: 2;
|
|
252
|
-
--textfield-multiplier-gap: 1;
|
|
253
|
-
--textfield-multiplier-font-size: 6;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.kit-textfield[breakpoint]kit-textfield--size-sm {
|
|
257
|
-
--textfield-multiplier-x: 3;
|
|
258
|
-
--textfield-multiplier-y: 4;
|
|
259
|
-
--textfield-multiplier-gap: 2;
|
|
260
|
-
--textfield-multiplier-font-size: 7;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.kit-textfield[breakpoint]kit-textfield--size-md {
|
|
264
|
-
--textfield-multiplier-x: 4;
|
|
265
|
-
--textfield-multiplier-y: 6;
|
|
266
|
-
--textfield-multiplier-gap: 2;
|
|
267
|
-
--textfield-multiplier-font-size: 8;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.kit-textfield[breakpoint]kit-textfield--size-lg {
|
|
271
|
-
--textfield-multiplier-x: 5;
|
|
272
|
-
--textfield-multiplier-y: 6;
|
|
273
|
-
--textfield-multiplier-gap: 2;
|
|
274
|
-
--textfield-multiplier-font-size: 9;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.kit-textfield[breakpoint]kit-textfield--size-xl {
|
|
278
|
-
--textfield-multiplier-x: 6;
|
|
279
|
-
--textfield-multiplier-y: 8;
|
|
280
|
-
--textfield-multiplier-gap: 3;
|
|
281
|
-
--textfield-multiplier-font-size: 10;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
/*density */
|
|
285
|
-
.kit-textfield[breakpoint]kit-textfield--density-default {
|
|
286
|
-
--textfield-spacing-x: 0;
|
|
287
|
-
--textfield-spacing-y: calc(var(--system-spacing) * var(--textfield-multiplier-y));
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.kit-textfield[breakpoint]kit-textfield--density-compact {
|
|
291
|
-
--textfield-spacing-x: calc(0 - 0.5rem);
|
|
292
|
-
--textfield-spacing-y: calc(var(--system-spacing) * var(--textfield-multiplier-y) - 0.5rem);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.kit-textfield[breakpoint]kit-textfield--density-comfortable {
|
|
296
|
-
--textfield-spacing-x: calc(0 + 0.5rem);
|
|
297
|
-
--textfield-spacing-y: calc(var(--system-spacing) * var(--textfield-multiplier-y) + 0.5rem);
|
|
298
|
-
}
|