compote-ui 0.2.0 → 0.5.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/components/button/button.svelte +16 -0
- package/dist/components/button/{Button.svelte.d.ts → button.svelte.d.ts} +3 -2
- package/dist/components/button/button.variants.d.ts +46 -0
- package/dist/components/button/button.variants.js +20 -0
- package/dist/components/carousel/carousel.svelte +120 -0
- package/dist/components/carousel/carousel.svelte.d.ts +19 -0
- package/dist/components/checkbox/{Checkbox-group.svelte → checkbox-group.svelte} +1 -1
- package/dist/components/checkbox/{Checkbox.svelte → checkbox.svelte} +6 -2
- package/dist/components/combobox/{Combobox.svelte → combobox.svelte} +22 -25
- package/dist/components/combobox/types.d.ts +1 -1
- package/dist/components/dialog/alert-dialog.svelte +73 -0
- package/dist/components/dialog/alert-dialog.svelte.d.ts +13 -0
- package/dist/components/dialog/dialog.svelte +68 -0
- package/dist/components/dialog/dialog.svelte.d.ts +14 -0
- package/dist/components/field/field-error-text.svelte +11 -0
- package/dist/components/field/field-error-text.svelte.d.ts +4 -0
- package/dist/components/field/field-helper-text.svelte +11 -0
- package/dist/components/field/field-helper-text.svelte.d.ts +4 -0
- package/dist/components/field/field-input.svelte +38 -0
- package/dist/components/field/field-input.svelte.d.ts +4 -0
- package/dist/components/field/field-label.svelte +18 -0
- package/dist/components/field/field-label.svelte.d.ts +4 -0
- package/dist/components/field/field-textarea.svelte +16 -0
- package/dist/components/field/field-textarea.svelte.d.ts +4 -0
- package/dist/components/field/field.svelte +11 -0
- package/dist/components/field/field.svelte.d.ts +5 -0
- package/dist/components/field/index.d.ts +7 -0
- package/dist/components/field/index.js +6 -0
- package/dist/components/field/types.d.ts +22 -0
- package/dist/components/field/types.js +1 -0
- package/dist/components/file-upload/basic-document.svelte +89 -0
- package/dist/components/file-upload/basic-document.svelte.d.ts +4 -0
- package/dist/components/file-upload/basic.svelte +50 -0
- package/dist/components/file-upload/basic.svelte.d.ts +18 -0
- package/dist/components/file-upload/dropzone.svelte +26 -0
- package/dist/components/file-upload/dropzone.svelte.d.ts +4 -0
- package/dist/components/file-upload/files-list.svelte +97 -0
- package/dist/components/file-upload/files-list.svelte.d.ts +18 -0
- package/dist/components/file-upload/icons.d.ts +3 -0
- package/dist/components/file-upload/icons.js +39 -0
- package/dist/components/file-upload/types.d.ts +6 -0
- package/dist/components/file-upload/types.js +1 -0
- package/dist/components/file-upload/utils.d.ts +13 -0
- package/dist/components/file-upload/utils.js +18 -0
- package/dist/components/image-cropper/image-cropper.svelte +109 -0
- package/dist/components/image-cropper/image-cropper.svelte.d.ts +5 -0
- package/dist/components/image-cropper/types.d.ts +16 -0
- package/dist/components/image-cropper/types.js +1 -0
- package/dist/components/listbox/listbox.svelte +116 -0
- package/dist/components/listbox/listbox.svelte.d.ts +27 -0
- package/dist/components/listbox/types.d.ts +16 -0
- package/dist/components/listbox/types.js +1 -0
- package/dist/components/menu/index.d.ts +14 -0
- package/dist/components/menu/index.js +14 -0
- package/dist/components/menu/menu-checkbox-item.svelte +31 -0
- package/dist/components/menu/menu-checkbox-item.svelte.d.ts +12 -0
- package/dist/components/menu/menu-content.svelte +23 -0
- package/dist/components/menu/menu-content.svelte.d.ts +8 -0
- package/dist/components/menu/menu-context-trigger.svelte +20 -0
- package/dist/components/menu/menu-context-trigger.svelte.d.ts +8 -0
- package/dist/components/menu/menu-indicator.svelte +19 -0
- package/dist/components/menu/menu-indicator.svelte.d.ts +9 -0
- package/dist/components/menu/menu-item-group-label.svelte +17 -0
- package/dist/components/menu/menu-item-group-label.svelte.d.ts +9 -0
- package/dist/components/menu/menu-item-group.svelte +14 -0
- package/dist/components/menu/menu-item-group.svelte.d.ts +9 -0
- package/dist/components/menu/menu-item-indicator.svelte +14 -0
- package/dist/components/menu/menu-item-indicator.svelte.d.ts +9 -0
- package/dist/components/menu/menu-item.svelte +20 -0
- package/dist/components/menu/menu-item.svelte.d.ts +9 -0
- package/dist/components/menu/menu-radio-item-group.svelte +14 -0
- package/dist/components/menu/menu-radio-item-group.svelte.d.ts +9 -0
- package/dist/components/menu/menu-radio-item.svelte +28 -0
- package/dist/components/menu/menu-radio-item.svelte.d.ts +10 -0
- package/dist/components/menu/menu-separator.svelte +11 -0
- package/dist/components/menu/menu-separator.svelte.d.ts +7 -0
- package/dist/components/menu/menu-trigger-item.svelte +20 -0
- package/dist/components/menu/menu-trigger-item.svelte.d.ts +9 -0
- package/dist/components/menu/menu-trigger.svelte +19 -0
- package/dist/components/menu/menu-trigger.svelte.d.ts +12 -0
- package/dist/components/menu/menu.svelte +12 -0
- package/dist/components/menu/menu.svelte.d.ts +4 -0
- package/dist/components/number-input/number-input.svelte +67 -0
- package/dist/components/number-input/number-input.svelte.d.ts +5 -0
- package/dist/components/number-input/types.d.ts +7 -0
- package/dist/components/number-input/types.js +1 -0
- package/dist/components/select/select.svelte +93 -0
- package/dist/components/select/select.svelte.d.ts +26 -0
- package/dist/components/select/types.d.ts +13 -0
- package/dist/components/select/types.js +1 -0
- package/dist/components/splitter/splitter.svelte +60 -0
- package/dist/components/splitter/splitter.svelte.d.ts +5 -0
- package/dist/components/splitter/types.d.ts +9 -0
- package/dist/components/splitter/types.js +1 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/switch/switch.svelte +40 -0
- package/dist/components/switch/switch.svelte.d.ts +8 -0
- package/dist/components/switch/types.d.ts +5 -0
- package/dist/components/switch/types.js +1 -0
- package/dist/components/tabs/index.d.ts +4 -0
- package/dist/components/tabs/index.js +3 -0
- package/dist/components/tabs/tab-content.svelte +18 -0
- package/dist/components/tabs/tab-content.svelte.d.ts +7 -0
- package/dist/components/tabs/tab-trigger.svelte +18 -0
- package/dist/components/tabs/tab-trigger.svelte.d.ts +7 -0
- package/dist/components/tabs/tabs.svelte +39 -0
- package/dist/components/tabs/tabs.svelte.d.ts +5 -0
- package/dist/components/tabs/types.d.ts +8 -0
- package/dist/components/tabs/types.js +1 -0
- package/dist/components/tree-view/tree-view.svelte +210 -0
- package/dist/components/tree-view/tree-view.svelte.d.ts +26 -0
- package/dist/components/tree-view/types.d.ts +12 -0
- package/dist/components/tree-view/types.js +1 -0
- package/dist/icons/PhArrowLeft.svelte +18 -0
- package/dist/icons/PhArrowLeft.svelte.d.ts +5 -0
- package/dist/icons/PhArrowRight.svelte +18 -0
- package/dist/icons/PhArrowRight.svelte.d.ts +5 -0
- package/dist/icons/PhArrowsInSimple.svelte +17 -0
- package/dist/icons/PhArrowsInSimple.svelte.d.ts +5 -0
- package/dist/icons/PhCaretDown.svelte +2 -1
- package/dist/icons/PhCaretRight.svelte +17 -0
- package/dist/icons/PhCaretRight.svelte.d.ts +5 -0
- package/dist/icons/PhCaretUp.svelte +18 -0
- package/dist/icons/PhCaretUp.svelte.d.ts +5 -0
- package/dist/icons/PhCheck.svelte +2 -1
- package/dist/icons/PhFile.svelte +19 -0
- package/dist/icons/PhFile.svelte.d.ts +5 -0
- package/dist/icons/PhFileArchive.svelte +18 -0
- package/dist/icons/PhFileArchive.svelte.d.ts +5 -0
- package/dist/icons/PhFileText.svelte +18 -0
- package/dist/icons/PhFileText.svelte.d.ts +5 -0
- package/dist/icons/PhHeadphones.svelte +17 -0
- package/dist/icons/PhHeadphones.svelte.d.ts +5 -0
- package/dist/icons/PhImage.svelte +18 -0
- package/dist/icons/PhImage.svelte.d.ts +5 -0
- package/dist/icons/PhListMagnifyingGlass.svelte +17 -0
- package/dist/icons/PhListMagnifyingGlass.svelte.d.ts +5 -0
- package/dist/icons/PhMagnifyingGlass.svelte +17 -0
- package/dist/icons/PhMagnifyingGlass.svelte.d.ts +5 -0
- package/dist/icons/PhMicrosoftExcelLogo.svelte +17 -0
- package/dist/icons/PhMicrosoftExcelLogo.svelte.d.ts +5 -0
- package/dist/icons/PhStar.svelte +18 -0
- package/dist/icons/PhStar.svelte.d.ts +5 -0
- package/dist/icons/PhUploadSimple.svelte +18 -0
- package/dist/icons/PhUploadSimple.svelte.d.ts +5 -0
- package/dist/icons/PhUser.svelte +18 -0
- package/dist/icons/PhUser.svelte.d.ts +5 -0
- package/dist/icons/PhVideoCamera.svelte +17 -0
- package/dist/icons/PhVideoCamera.svelte.d.ts +5 -0
- package/dist/index.d.ts +17 -4
- package/dist/index.js +17 -4
- package/dist/open-props/props.colors-oklch-hues.css +14 -0
- package/dist/open-props/props.colors-oklch.css +19 -0
- package/dist/open-props/props.gray-oklch.css +18 -0
- package/dist/theme.css +19 -5
- package/package.json +4 -3
- package/dist/components/button/Button.svelte +0 -33
- package/dist/gray-oklch.min.css +0 -1
- package/dist/green-hsl.min.css +0 -1
- package/dist/props.colors-oklch-hues.css +0 -14
- package/dist/props.colors-oklch.css +0 -19
- package/dist/props.gray-oklch.css +0 -18
- /package/dist/components/checkbox/{Checkbox-group.svelte.d.ts → checkbox-group.svelte.d.ts} +0 -0
- /package/dist/components/checkbox/{Checkbox.svelte.d.ts → checkbox.svelte.d.ts} +0 -0
- /package/dist/components/combobox/{Combobox.svelte.d.ts → combobox.svelte.d.ts} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
let { class: className = '', ...restProps } = $props();
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
width="1em"
|
|
8
|
+
height="1em"
|
|
9
|
+
viewBox="0 0 256 256"
|
|
10
|
+
class={className}
|
|
11
|
+
{...restProps}
|
|
12
|
+
>
|
|
13
|
+
<path
|
|
14
|
+
fill="currentColor"
|
|
15
|
+
d="M224 144v64a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8v-64a8 8 0 0 1 16 0v56h160v-56a8 8 0 0 1 16 0M93.66 77.66L120 51.31V144a8 8 0 0 0 16 0V51.31l26.34 26.35a8 8 0 0 0 11.32-11.32l-40-40a8 8 0 0 0-11.32 0l-40 40a8 8 0 0 0 11.32 11.32"
|
|
16
|
+
/>
|
|
17
|
+
</svg>
|
|
18
|
+
<!-- Icon from Phosphor by Phosphor Icons - https://github.com/phosphor-icons/core/blob/main/LICENSE -->
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
let { class: className = '', ...restProps } = $props();
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
width="1em"
|
|
8
|
+
height="1em"
|
|
9
|
+
viewBox="0 0 256 256"
|
|
10
|
+
class={className}
|
|
11
|
+
{...restProps}
|
|
12
|
+
>
|
|
13
|
+
<path
|
|
14
|
+
fill="currentColor"
|
|
15
|
+
d="M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8M72 96a56 56 0 1 1 56 56a56.06 56.06 0 0 1-56-56"
|
|
16
|
+
/>
|
|
17
|
+
</svg>
|
|
18
|
+
<!-- Icon from Phosphor by Phosphor Icons - https://github.com/phosphor-icons/core/blob/main/LICENSE -->
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
let { class: className = '', ...restProps } = $props();
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
width="1em"
|
|
8
|
+
height="1em"
|
|
9
|
+
viewBox="0 0 256 256"
|
|
10
|
+
class={className}
|
|
11
|
+
{...restProps}
|
|
12
|
+
><!-- Icon from Phosphor by Phosphor Icons - https://github.com/phosphor-icons/core/blob/main/LICENSE -->
|
|
13
|
+
<path
|
|
14
|
+
fill="currentColor"
|
|
15
|
+
d="M251.77 73a8 8 0 0 0-8.21.39L208 97.05V72a16 16 0 0 0-16-16H32a16 16 0 0 0-16 16v112a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16v-25l35.56 23.71A8 8 0 0 0 248 184a8 8 0 0 0 8-8V80a8 8 0 0 0-4.23-7M192 184H32V72h160zm48-22.95l-32-21.33v-23.44L240 95Z"
|
|
16
|
+
/>
|
|
17
|
+
</svg>
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
export { default as Button } from './components/button/
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
1
|
+
export { default as Button } from './components/button/button.svelte';
|
|
2
|
+
export { default as Carousel } from './components/carousel/carousel.svelte';
|
|
3
|
+
export { default as Checkbox } from './components/checkbox/checkbox.svelte';
|
|
4
|
+
export { default as CheckboxGroup } from './components/checkbox/checkbox-group.svelte';
|
|
5
|
+
export { default as Combobox } from './components/combobox/combobox.svelte';
|
|
6
|
+
export { default as Dialog } from './components/dialog/dialog.svelte';
|
|
7
|
+
export { default as AlertDialog } from './components/dialog/alert-dialog.svelte';
|
|
8
|
+
export { default as ImageCropper } from './components/image-cropper/image-cropper.svelte';
|
|
9
|
+
export { default as Listbox } from './components/listbox/listbox.svelte';
|
|
10
|
+
export { default as NumberInput } from './components/number-input/number-input.svelte';
|
|
11
|
+
export { default as Select } from './components/select/select.svelte';
|
|
12
|
+
export { default as Spliter } from './components/splitter/splitter.svelte';
|
|
13
|
+
export { default as Switch } from './components/switch/switch.svelte';
|
|
14
|
+
export * as Tabs from './components/tabs';
|
|
15
|
+
export * as Menu from './components/menu';
|
|
16
|
+
export * as Field from './components/field';
|
|
17
|
+
export { default as TreeView } from './components/tree-view/tree-view.svelte';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
// Reexport your entry components here
|
|
2
|
-
export { default as Button } from './components/button/
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
2
|
+
export { default as Button } from './components/button/button.svelte';
|
|
3
|
+
export { default as Carousel } from './components/carousel/carousel.svelte';
|
|
4
|
+
export { default as Checkbox } from './components/checkbox/checkbox.svelte';
|
|
5
|
+
export { default as CheckboxGroup } from './components/checkbox/checkbox-group.svelte';
|
|
6
|
+
export { default as Combobox } from './components/combobox/combobox.svelte';
|
|
7
|
+
export { default as Dialog } from './components/dialog/dialog.svelte';
|
|
8
|
+
export { default as AlertDialog } from './components/dialog/alert-dialog.svelte';
|
|
9
|
+
export { default as ImageCropper } from './components/image-cropper/image-cropper.svelte';
|
|
10
|
+
export { default as Listbox } from './components/listbox/listbox.svelte';
|
|
11
|
+
export { default as NumberInput } from './components/number-input/number-input.svelte';
|
|
12
|
+
export { default as Select } from './components/select/select.svelte';
|
|
13
|
+
export { default as Spliter } from './components/splitter/splitter.svelte';
|
|
14
|
+
export { default as Switch } from './components/switch/switch.svelte';
|
|
15
|
+
export * as Tabs from './components/tabs';
|
|
16
|
+
export * as Menu from './components/menu';
|
|
17
|
+
export * as Field from './components/field';
|
|
18
|
+
export { default as TreeView } from './components/tree-view/tree-view.svelte';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
:where(html) {
|
|
2
|
+
--hue-red: 25;
|
|
3
|
+
--hue-pink: 350;
|
|
4
|
+
--hue-purple: 310;
|
|
5
|
+
--hue-violet: 290;
|
|
6
|
+
--hue-indigo: 270;
|
|
7
|
+
--hue-blue: 240;
|
|
8
|
+
--hue-cyan: 210;
|
|
9
|
+
--hue-teal: 185;
|
|
10
|
+
--hue-green: 145;
|
|
11
|
+
--hue-lime: 125;
|
|
12
|
+
--hue-yellow: 100;
|
|
13
|
+
--hue-orange: 75;
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
:where(*) {
|
|
2
|
+
--color-0: oklch(99% 0.03 var(--color-hue, 0));
|
|
3
|
+
--color-1: oklch(95% 0.06 var(--color-hue, 0));
|
|
4
|
+
--color-2: oklch(88% 0.12 var(--color-hue, 0));
|
|
5
|
+
--color-3: oklch(80% 0.14 var(--color-hue, 0));
|
|
6
|
+
--color-4: oklch(74% 0.16 var(--color-hue, 0));
|
|
7
|
+
--color-5: oklch(68% 0.19 var(--color-hue, 0));
|
|
8
|
+
--color-6: oklch(63% 0.2 var(--color-hue, 0));
|
|
9
|
+
--color-7: oklch(58% 0.21 var(--color-hue, 0));
|
|
10
|
+
--color-8: oklch(53% 0.2 var(--color-hue, 0));
|
|
11
|
+
--color-9: oklch(49% 0.19 var(--color-hue, 0));
|
|
12
|
+
--color-10: oklch(42% 0.17 var(--color-hue, 0));
|
|
13
|
+
--color-11: oklch(35% 0.15 var(--color-hue, 0));
|
|
14
|
+
--color-12: oklch(27% 0.12 var(--color-hue, 0));
|
|
15
|
+
--color-13: oklch(20% 0.09 var(--color-hue, 0));
|
|
16
|
+
--color-14: oklch(14% 0.07 var(--color-hue, 0));
|
|
17
|
+
--color-15: oklch(11% 0.05 var(--color-hue, 0));
|
|
18
|
+
--color-bright: oklch(65% 0.3 var(--color-hue, 0));
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
:where(*) {
|
|
2
|
+
--gray-0: oklch(99% var(--gray-chroma, none) var(--gray-hue, none));
|
|
3
|
+
--gray-1: oklch(95% var(--gray-chroma, none) var(--gray-hue, none));
|
|
4
|
+
--gray-2: oklch(88% var(--gray-chroma, none) var(--gray-hue, none));
|
|
5
|
+
--gray-3: oklch(80% var(--gray-chroma, none) var(--gray-hue, none));
|
|
6
|
+
--gray-4: oklch(74% var(--gray-chroma, none) var(--gray-hue, none));
|
|
7
|
+
--gray-5: oklch(68% var(--gray-chroma, none) var(--gray-hue, none));
|
|
8
|
+
--gray-6: oklch(63% var(--gray-chroma, none) var(--gray-hue, none));
|
|
9
|
+
--gray-7: oklch(58% var(--gray-chroma, none) var(--gray-hue, none));
|
|
10
|
+
--gray-8: oklch(53% var(--gray-chroma, none) var(--gray-hue, none));
|
|
11
|
+
--gray-9: oklch(49% var(--gray-chroma, none) var(--gray-hue, none));
|
|
12
|
+
--gray-10: oklch(43% var(--gray-chroma, none) var(--gray-hue, none));
|
|
13
|
+
--gray-11: oklch(37% var(--gray-chroma, none) var(--gray-hue, none));
|
|
14
|
+
--gray-12: oklch(31% var(--gray-chroma, none) var(--gray-hue, none));
|
|
15
|
+
--gray-13: oklch(25% var(--gray-chroma, none) var(--gray-hue, none));
|
|
16
|
+
--gray-14: oklch(18% var(--gray-chroma, none) var(--gray-hue, none));
|
|
17
|
+
--gray-15: oklch(10% var(--gray-chroma, none) var(--gray-hue, none));
|
|
18
|
+
}
|
package/dist/theme.css
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
@import './props.colors-oklch-hues.css';
|
|
2
|
-
@import './props.colors-oklch.css';
|
|
3
|
-
@import './props.gray-oklch.css';
|
|
1
|
+
@import './open-props/props.colors-oklch-hues.css';
|
|
2
|
+
@import './open-props/props.colors-oklch.css';
|
|
3
|
+
@import './open-props/props.gray-oklch.css';
|
|
4
|
+
|
|
5
|
+
@source './components/**/*.svelte';
|
|
4
6
|
|
|
5
7
|
:root {
|
|
6
8
|
--dim: 0.3;
|
|
@@ -20,7 +22,11 @@
|
|
|
20
22
|
--compote-surface-document: var(--gray-2);
|
|
21
23
|
--compote-well: var(--gray-1);
|
|
22
24
|
|
|
23
|
-
--compote-primary: var(--color-7);
|
|
25
|
+
--compote-primary: oklch(from var(--color-7) l c var(--hue-orange));
|
|
26
|
+
--compote-danger: oklch(from var(--color-7) l c var(--hue-red));
|
|
27
|
+
--compote-warning: oklch(from var(--color-7) l c var(--hue-yellow));
|
|
28
|
+
--compote-success: oklch(from var(--color-7) l c var(--hue-green));
|
|
29
|
+
--compote-info: oklch(from var(--color-7) l c var(--hue-blue));
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
@media (prefers-color-scheme: dark) {
|
|
@@ -33,7 +39,11 @@
|
|
|
33
39
|
--compote-surface-document: var(--gray-14);
|
|
34
40
|
--compote-well: var(--gray-15);
|
|
35
41
|
|
|
36
|
-
--compote-primary: var(--color-7);
|
|
42
|
+
--compote-primary: oklch(from var(--color-7) l c var(--hue-orange));
|
|
43
|
+
--compote-danger: oklch(from var(--color-7) l c var(--hue-red));
|
|
44
|
+
--compote-warning: oklch(from var(--color-7) l c var(--hue-yellow));
|
|
45
|
+
--compote-success: oklch(from var(--color-7) l c var(--hue-green));
|
|
46
|
+
--compote-info: oklch(from var(--color-7) l c var(--hue-blue));
|
|
37
47
|
}
|
|
38
48
|
}
|
|
39
49
|
|
|
@@ -47,6 +57,10 @@
|
|
|
47
57
|
--color-well: var(--compote-well);
|
|
48
58
|
|
|
49
59
|
--color-primary: var(--compote-primary);
|
|
60
|
+
--color-danger: var(--compote-danger);
|
|
61
|
+
--color-warning: var(--compote-warning);
|
|
62
|
+
--color-success: var(--compote-success);
|
|
63
|
+
--color-info: var(--compote-info);
|
|
50
64
|
|
|
51
65
|
--font-sans: var(--font-sans);
|
|
52
66
|
--font-mono: var(--font-mono);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "compote-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build && npm run prepack",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"prettier-plugin-svelte": "^3.4.1",
|
|
52
52
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
53
53
|
"publint": "^0.3.17",
|
|
54
|
-
"svelte": "^5.
|
|
55
|
-
"svelte-check": "^4.4.
|
|
54
|
+
"svelte": "^5.55.1",
|
|
55
|
+
"svelte-check": "^4.4.6",
|
|
56
56
|
"tailwindcss": "^4.1.18",
|
|
57
57
|
"typescript": "^5.9.3",
|
|
58
58
|
"typescript-eslint": "^8.57.0",
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@ark-ui/svelte": "^5.20.0",
|
|
68
68
|
"@fontsource-variable/wix-madefor-text": "^5.2.8",
|
|
69
|
+
"runed": "^0.37.1",
|
|
69
70
|
"tailwind-merge": "^3.5.0",
|
|
70
71
|
"tailwind-variants": "^3.2.2"
|
|
71
72
|
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLButtonAttributes } from 'svelte/elements';
|
|
3
|
-
import { tv } from 'tailwind-variants';
|
|
4
|
-
|
|
5
|
-
const button = tv({
|
|
6
|
-
base: 'focus-visible:outline-ring inline-flex cursor-pointer items-center justify-center rounded bg-transparent font-medium transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',
|
|
7
|
-
variants: {
|
|
8
|
-
variant: {
|
|
9
|
-
solid: 'text-primary-foreground bg-primary hover:bg-primary/90 active:bg-primary/80',
|
|
10
|
-
outline: 'border-border text-foreground hover:bg-muted border',
|
|
11
|
-
ghost: 'text-foreground hover:bg-muted'
|
|
12
|
-
},
|
|
13
|
-
size: {
|
|
14
|
-
sm: 'h-8 gap-1.5 px-2 text-sm',
|
|
15
|
-
md: 'h-9 gap-2 px-3 text-base',
|
|
16
|
-
lg: 'h-10 gap-2.5 px-4 text-lg'
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
defaultVariants: { variant: 'solid', size: 'md' }
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
type Props = Omit<HTMLButtonAttributes, 'class'> & {
|
|
23
|
-
variant?: 'solid' | 'outline' | 'ghost';
|
|
24
|
-
size?: 'sm' | 'md' | 'lg';
|
|
25
|
-
class?: string;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
let { variant, size, class: className, children, ...rest }: Props = $props();
|
|
29
|
-
</script>
|
|
30
|
-
|
|
31
|
-
<button class={button({ variant, size, class: className })} {...rest}>
|
|
32
|
-
{@render children?.()}
|
|
33
|
-
</button>
|
package/dist/gray-oklch.min.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:where(*){--gray-0:oklch(99% var(--gray-chroma,none) var(--gray-hue,none));--gray-1:oklch(95% var(--gray-chroma,none) var(--gray-hue,none));--gray-2:oklch(88% var(--gray-chroma,none) var(--gray-hue,none));--gray-3:oklch(80% var(--gray-chroma,none) var(--gray-hue,none));--gray-4:oklch(74% var(--gray-chroma,none) var(--gray-hue,none));--gray-5:oklch(68% var(--gray-chroma,none) var(--gray-hue,none));--gray-6:oklch(63% var(--gray-chroma,none) var(--gray-hue,none));--gray-7:oklch(58% var(--gray-chroma,none) var(--gray-hue,none));--gray-8:oklch(53% var(--gray-chroma,none) var(--gray-hue,none));--gray-9:oklch(49% var(--gray-chroma,none) var(--gray-hue,none));--gray-10:oklch(43% var(--gray-chroma,none) var(--gray-hue,none));--gray-11:oklch(37% var(--gray-chroma,none) var(--gray-hue,none));--gray-12:oklch(31% var(--gray-chroma,none) var(--gray-hue,none));--gray-13:oklch(25% var(--gray-chroma,none) var(--gray-hue,none));--gray-14:oklch(18% var(--gray-chroma,none) var(--gray-hue,none));--gray-15:oklch(10% var(--gray-chroma,none) var(--gray-hue,none))}
|
package/dist/green-hsl.min.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:where(html){--green-0-hsl:131 67% 95%;--green-1-hsl:128 76% 90%;--green-2-hsl:128 71% 82%;--green-3-hsl:129 68% 73%;--green-4-hsl:130 61% 64%;--green-5-hsl:130 57% 56%;--green-6-hsl:131 50% 50%;--green-7-hsl:131 53% 46%;--green-8-hsl:131 54% 40%;--green-9-hsl:132 52% 35%;--green-10-hsl:132 52% 29%;--green-11-hsl:132 53% 22%;--green-12-hsl:131 53% 16%}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
:where(html) {
|
|
2
|
-
--hue-red: 25;
|
|
3
|
-
--hue-pink: 350;
|
|
4
|
-
--hue-purple: 310;
|
|
5
|
-
--hue-violet: 290;
|
|
6
|
-
--hue-indigo: 270;
|
|
7
|
-
--hue-blue: 240;
|
|
8
|
-
--hue-cyan: 210;
|
|
9
|
-
--hue-teal: 185;
|
|
10
|
-
--hue-green: 145;
|
|
11
|
-
--hue-lime: 125;
|
|
12
|
-
--hue-yellow: 100;
|
|
13
|
-
--hue-orange: 75;
|
|
14
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
:where(*) {
|
|
2
|
-
--color-0: oklch(99% .03 var(--color-hue, 0));
|
|
3
|
-
--color-1: oklch(95% .06 var(--color-hue, 0));
|
|
4
|
-
--color-2: oklch(88% .12 var(--color-hue, 0));
|
|
5
|
-
--color-3: oklch(80% .14 var(--color-hue, 0));
|
|
6
|
-
--color-4: oklch(74% .16 var(--color-hue, 0));
|
|
7
|
-
--color-5: oklch(68% .19 var(--color-hue, 0));
|
|
8
|
-
--color-6: oklch(63% .20 var(--color-hue, 0));
|
|
9
|
-
--color-7: oklch(58% .21 var(--color-hue, 0));
|
|
10
|
-
--color-8: oklch(53% .20 var(--color-hue, 0));
|
|
11
|
-
--color-9: oklch(49% .19 var(--color-hue, 0));
|
|
12
|
-
--color-10: oklch(42% .17 var(--color-hue, 0));
|
|
13
|
-
--color-11: oklch(35% .15 var(--color-hue, 0));
|
|
14
|
-
--color-12: oklch(27% .12 var(--color-hue, 0));
|
|
15
|
-
--color-13: oklch(20% .09 var(--color-hue, 0));
|
|
16
|
-
--color-14: oklch(14% .07 var(--color-hue, 0));
|
|
17
|
-
--color-15: oklch(11% .05 var(--color-hue, 0));
|
|
18
|
-
--color-bright: oklch(65% .3 var(--color-hue, 0));
|
|
19
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
:where(*) {
|
|
2
|
-
--gray-0: oklch(99% var(--gray-chroma, none) var(--gray-hue, none));
|
|
3
|
-
--gray-1: oklch(95% var(--gray-chroma, none) var(--gray-hue, none));
|
|
4
|
-
--gray-2: oklch(88% var(--gray-chroma, none) var(--gray-hue, none));
|
|
5
|
-
--gray-3: oklch(80% var(--gray-chroma, none) var(--gray-hue, none));
|
|
6
|
-
--gray-4: oklch(74% var(--gray-chroma, none) var(--gray-hue, none));
|
|
7
|
-
--gray-5: oklch(68% var(--gray-chroma, none) var(--gray-hue, none));
|
|
8
|
-
--gray-6: oklch(63% var(--gray-chroma, none) var(--gray-hue, none));
|
|
9
|
-
--gray-7: oklch(58% var(--gray-chroma, none) var(--gray-hue, none));
|
|
10
|
-
--gray-8: oklch(53% var(--gray-chroma, none) var(--gray-hue, none));
|
|
11
|
-
--gray-9: oklch(49% var(--gray-chroma, none) var(--gray-hue, none));
|
|
12
|
-
--gray-10: oklch(43% var(--gray-chroma, none) var(--gray-hue, none));
|
|
13
|
-
--gray-11: oklch(37% var(--gray-chroma, none) var(--gray-hue, none));
|
|
14
|
-
--gray-12: oklch(31% var(--gray-chroma, none) var(--gray-hue, none));
|
|
15
|
-
--gray-13: oklch(25% var(--gray-chroma, none) var(--gray-hue, none));
|
|
16
|
-
--gray-14: oklch(18% var(--gray-chroma, none) var(--gray-hue, none));
|
|
17
|
-
--gray-15: oklch(10% var(--gray-chroma, none) var(--gray-hue, none));
|
|
18
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|