@websline/system-components 1.0.9 → 1.0.10-beta

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.
Files changed (26) hide show
  1. package/dist/components/atoms/actions/button/button.variants.d.ts +0 -9
  2. package/dist/components/atoms/actions/button/button.variants.js +10 -13
  3. package/dist/components/atoms/actions/closeButton/CloseButton.svelte +1 -1
  4. package/dist/components/atoms/actions/iconButton/iconButton.variants.js +3 -3
  5. package/dist/components/atoms/avatar/avatar.variants.js +2 -2
  6. package/dist/components/atoms/badge/badge.variants.js +1 -1
  7. package/dist/components/atoms/chip/chip.variants.js +2 -2
  8. package/dist/components/atoms/feedback/progressBar/progressBar.variants.js +2 -2
  9. package/dist/components/atoms/helperText/helperText.variants.d.ts +2 -2
  10. package/dist/components/atoms/helperText/helperText.variants.js +1 -1
  11. package/dist/components/atoms/input/input.variants.js +1 -1
  12. package/dist/components/atoms/label/label.variants.d.ts +2 -2
  13. package/dist/components/atoms/label/label.variants.js +1 -1
  14. package/dist/components/atoms/select/select.variants.js +2 -2
  15. package/dist/components/molecules/notification/notification.variants.js +4 -4
  16. package/dist/components/molecules/pickers/colorSwatch/colorSwatch.variants.js +2 -2
  17. package/dist/components/molecules/richTextEditor/richTextEditor.variants.js +1 -1
  18. package/dist/components/molecules/selectorCard/selectorCard.variants.js +6 -5
  19. package/dist/components/molecules/toggleGroup/ToggleGroupItem.svelte +16 -6
  20. package/dist/components/molecules/toggleGroup/ToggleGroupItem.svelte.d.ts +8 -0
  21. package/dist/components/molecules/toggleGroup/toggleGroup.variants.js +3 -3
  22. package/dist/components/molecules/toggleGroup/toggleGroupItem.variants.d.ts +6 -0
  23. package/dist/components/molecules/toggleGroup/toggleGroupItem.variants.js +11 -10
  24. package/dist/components/organisms/modal/modal.variants.js +4 -3
  25. package/dist/components/organisms/popover/popover.variants.js +1 -1
  26. package/package.json +1 -1
@@ -34,9 +34,6 @@ export const buttonVariants: import("tailwind-variants").TVReturnType<{
34
34
  };
35
35
  };
36
36
  variant: {
37
- filled: {
38
- base: string;
39
- };
40
37
  outlined: {
41
38
  base: string;
42
39
  };
@@ -84,9 +81,6 @@ export const buttonVariants: import("tailwind-variants").TVReturnType<{
84
81
  };
85
82
  };
86
83
  variant: {
87
- filled: {
88
- base: string;
89
- };
90
84
  outlined: {
91
85
  base: string;
92
86
  };
@@ -134,9 +128,6 @@ export const buttonVariants: import("tailwind-variants").TVReturnType<{
134
128
  };
135
129
  };
136
130
  variant: {
137
- filled: {
138
- base: string;
139
- };
140
131
  outlined: {
141
132
  base: string;
142
133
  };
@@ -2,7 +2,7 @@ import { tv } from "tailwind-variants";
2
2
 
3
3
  const buttonVariants = tv({
4
4
  slots: {
5
- base: "inline-flex cursor-pointer items-center rounded align-middle transition duration-200 select-none focus:outline-offset-2",
5
+ base: "inline-flex cursor-pointer items-center rounded-lg border border-transparent align-middle transition duration-200 select-none focus:outline-offset-2",
6
6
  icon: "flex h-lh items-center",
7
7
  spinner: "flex h-lh items-center justify-center",
8
8
  },
@@ -29,27 +29,24 @@ const buttonVariants = tv({
29
29
  },
30
30
  size: {
31
31
  small: {
32
- base: "gap-2 px-3 py-1.25 button-small",
32
+ base: "gap-2 px-3 py-1.25 ui-button-small",
33
33
  spinner: "w-4",
34
34
  },
35
35
  medium: {
36
- base: "gap-2 px-3 py-1.5 button-default",
36
+ base: "gap-2 px-3 py-[7px] ui-button-default",
37
37
  spinner: "w-5",
38
38
  },
39
39
  large: {
40
- base: "gap-3 px-3 py-2.5 button-default",
40
+ base: "gap-3 px-3 py-[7px] ui-button-default leading-6",
41
41
  spinner: "w-5",
42
42
  },
43
43
  },
44
44
  variant: {
45
- filled: {
46
- base: "border-1 border-transparent",
47
- },
48
45
  outlined: {
49
- base: "border-1",
46
+ base: "border-current",
50
47
  },
51
48
  text: {
52
- base: "relative !px-0 after:absolute after:bottom-0 after:left-0 after:h-[1.5px] after:w-0 after:transition-all after:duration-300 after:content-[''] hover:after:w-full",
49
+ base: "relative px-0! after:absolute after:bottom-0 after:left-0 after:h-[1.5px] after:w-0 after:transition-all after:duration-300 after:content-[''] hover:after:w-full",
53
50
  },
54
51
  },
55
52
  },
@@ -65,7 +62,7 @@ const buttonVariants = tv({
65
62
  color: "primary",
66
63
  variant: "outlined",
67
64
  class: {
68
- base: "border-blue-500 text-blue-500 hover:border-blue-600 hover:bg-blue-600 hover:text-white dark:border-blue-400 dark:text-blue-400 dark:hover:border-blue-500 dark:hover:bg-blue-500",
65
+ base: "text-blue-500 hover:border-blue-600 hover:bg-blue-600 hover:text-white dark:text-blue-400 dark:hover:border-blue-500 dark:hover:bg-blue-500",
69
66
  },
70
67
  },
71
68
  {
@@ -78,7 +75,7 @@ const buttonVariants = tv({
78
75
  color: "secondary",
79
76
  variant: "outlined",
80
77
  class: {
81
- base: "text-neutral-900 hover:border-neutral-700 hover:bg-neutral-700 hover:text-white dark:border-neutral-200 dark:text-neutral-200 dark:hover:border-neutral-500 dark:hover:bg-neutral-500 dark:hover:text-inherit",
78
+ base: "text-neutral-900 hover:border-neutral-700 hover:bg-neutral-700 hover:text-white dark:text-neutral-200 dark:hover:border-neutral-500 dark:hover:bg-neutral-500 dark:hover:text-neutral-900",
82
79
  },
83
80
  },
84
81
  {
@@ -92,7 +89,7 @@ const buttonVariants = tv({
92
89
  color: "success",
93
90
  variant: "outlined",
94
91
  class: {
95
- base: "border-green-500 text-green-500 hover:border-green-700 hover:bg-green-700 hover:text-white dark:border-green-500 dark:text-green-500 dark:hover:border-green-700 dark:hover:bg-green-700",
92
+ base: "text-green-500 hover:border-green-700 hover:bg-green-700 hover:text-white dark:text-green-500 dark:hover:border-green-700 dark:hover:bg-green-700",
96
93
  },
97
94
  },
98
95
  {
@@ -106,7 +103,7 @@ const buttonVariants = tv({
106
103
  color: "error",
107
104
  variant: "outlined",
108
105
  class: {
109
- base: "border-red-500 text-red-500 hover:border-red-700 hover:bg-red-700 hover:text-white dark:border-red-500 dark:text-red-500 dark:hover:border-red-700 dark:hover:bg-red-700",
106
+ base: "text-red-500 hover:border-red-700 hover:bg-red-700 hover:text-white dark:text-red-500 dark:hover:border-red-700 dark:hover:bg-red-700",
110
107
  },
111
108
  },
112
109
  {
@@ -67,7 +67,7 @@
67
67
  onclick={handleClose}
68
68
  onmouseenter={handleMouseOver}
69
69
  {...rest}>
70
- <Icon class="relative z-10" name="close" size={16} />
70
+ <Icon class="relative z-10" name="closeSmall" size={16} />
71
71
  {#if animate}
72
72
  <span
73
73
  bind:this={barEl}
@@ -19,9 +19,9 @@ const iconButtonVariants = tv({
19
19
  large: "p-2.75",
20
20
  },
21
21
  variant: {
22
- filled: "border-1 border-transparent",
23
- outlined: "border-1",
24
- transparent: "border-1 border-transparent",
22
+ filled: "border border-transparent",
23
+ outlined: "border",
24
+ transparent: "border border-transparent",
25
25
  },
26
26
  },
27
27
  compoundVariants: [
@@ -5,7 +5,7 @@ const avatarVariants = tv({
5
5
  base: "flex overflow-hidden",
6
6
  image: "h-full w-full object-cover",
7
7
  fallback:
8
- "flex h-full w-full items-center justify-center bg-blue-100 heading-h6 text-neutral-900",
8
+ "flex h-full w-full items-center justify-center bg-blue-100 ui-title-2 text-neutral-900",
9
9
  },
10
10
  variants: {
11
11
  as: {
@@ -13,7 +13,7 @@ const avatarVariants = tv({
13
13
  },
14
14
  shape: {
15
15
  circle: "rounded-full",
16
- square: "rounded",
16
+ square: "rounded-sm",
17
17
  },
18
18
  },
19
19
  });
@@ -2,7 +2,7 @@ import { tv } from "tailwind-variants";
2
2
 
3
3
  const badgeVariants = tv({
4
4
  slots: {
5
- base: "absolute inline-flex items-center justify-center rounded-full body-extra-small select-none",
5
+ base: "absolute inline-flex items-center justify-center rounded-full ui-caption-helper select-none",
6
6
  wrapper: "relative inline-flex gap-0.5",
7
7
  },
8
8
  variants: {
@@ -2,7 +2,7 @@ import { tv } from "tailwind-variants";
2
2
 
3
3
  const chipVariants = tv({
4
4
  base: [
5
- "relative inline-flex items-center gap-1 rounded border align-middle select-none [button]:cursor-pointer",
5
+ "relative inline-flex items-center gap-1 rounded-sm border align-middle select-none [button]:cursor-pointer",
6
6
  "ring-blue-500 ring-offset-1 ring-offset-transparent outline-0 focus-visible:ring-1 dark:ring-blue-400",
7
7
  ],
8
8
  variants: {
@@ -15,7 +15,7 @@ const chipVariants = tv({
15
15
  warning: "bg-yellow-500 text-neutral-900",
16
16
  },
17
17
  size: {
18
- small: "min-h-[20px] px-2 py-0.5 body-extra-small",
18
+ small: "min-h-[20px] px-2 py-0.5 ui-tag-badge",
19
19
  big: "min-h-[28px] px-3 py-1.5 body-small",
20
20
  },
21
21
  iconPosition: {
@@ -2,9 +2,9 @@ import { tv } from "tailwind-variants";
2
2
 
3
3
  const progressBarVariants = tv({
4
4
  slots: {
5
- bar: "h-1 w-full rounded-sm bg-neutral-100 after:block after:h-full after:w-[var(--progress)] after:rounded-sm after:bg-neutral-900 after:transition-[width] after:duration-300 after:ease-in-out dark:bg-neutral-900 dark:after:bg-neutral-100",
5
+ bar: "h-1 w-full rounded-sm bg-neutral-100 after:block after:h-full after:w-(--progress) after:rounded-sm after:bg-neutral-900 after:transition-[width] after:duration-300 after:ease-in-out dark:bg-neutral-900 dark:after:bg-neutral-100",
6
6
  base: "flex items-center gap-4",
7
- label: "body-small text-nowrap text-neutral-500 tabular-nums",
7
+ label: "ui-select-label text-nowrap text-neutral-500 tabular-nums",
8
8
  },
9
9
  });
10
10
 
@@ -2,7 +2,7 @@ export const helperTextVariants: import("tailwind-variants").TVReturnType<{
2
2
  error: {
3
3
  true: string;
4
4
  };
5
- }, undefined, "body-extra-small text-neutral-500", {
5
+ }, undefined, "ui-caption-helper text-neutral-500", {
6
6
  error: {
7
7
  true: string;
8
8
  };
@@ -10,4 +10,4 @@ export const helperTextVariants: import("tailwind-variants").TVReturnType<{
10
10
  error: {
11
11
  true: string;
12
12
  };
13
- }, undefined, "body-extra-small text-neutral-500", unknown, unknown, undefined>>;
13
+ }, undefined, "ui-caption-helper text-neutral-500", unknown, unknown, undefined>>;
@@ -1,7 +1,7 @@
1
1
  import { tv } from "tailwind-variants";
2
2
 
3
3
  const helperTextVariants = tv({
4
- base: "body-extra-small text-neutral-500",
4
+ base: "ui-caption-helper text-neutral-500",
5
5
  variants: {
6
6
  error: {
7
7
  true: "text-red-500",
@@ -6,7 +6,7 @@ import { tv } from "tailwind-variants";
6
6
  const inputBaseVariant = tv({
7
7
  slots: {
8
8
  base: [
9
- "w-full rounded bg-transparent px-4 body-default",
9
+ "w-full rounded-lg bg-transparent px-4 body-small",
10
10
  "text-neutral-900 placeholder-neutral-500 dark:text-neutral-200",
11
11
  "bg-white dark:bg-neutral-800",
12
12
  "outline-transparent transition-[border,color,outline] duration-300",
@@ -5,7 +5,7 @@ export const labelVariants: import("tailwind-variants").TVReturnType<{
5
5
  hidden: {
6
6
  true: string;
7
7
  };
8
- }, undefined, "body-small text-neutral-500", {
8
+ }, undefined, "ui-select-label text-neutral-500", {
9
9
  error: {
10
10
  true: string;
11
11
  };
@@ -19,4 +19,4 @@ export const labelVariants: import("tailwind-variants").TVReturnType<{
19
19
  hidden: {
20
20
  true: string;
21
21
  };
22
- }, undefined, "body-small text-neutral-500", unknown, unknown, undefined>>;
22
+ }, undefined, "ui-select-label text-neutral-500", unknown, unknown, undefined>>;
@@ -1,7 +1,7 @@
1
1
  import { tv } from "tailwind-variants";
2
2
 
3
3
  const labelVariants = tv({
4
- base: "body-small text-neutral-500",
4
+ base: "ui-select-label text-neutral-500",
5
5
  variants: {
6
6
  error: {
7
7
  true: "text-red-500",
@@ -6,7 +6,7 @@ const selectVariants = tv({
6
6
  slots: {
7
7
  base: [
8
8
  "flex items-center",
9
- "[&::picker(select)]:my-1 [&::picker(select)]:rounded [&::picker(select)]:border-0 [&::picker(select)]:p-1",
9
+ "[&::picker(select)]:my-1 [&::picker(select)]:rounded-sm [&::picker(select)]:border-0 [&::picker(select)]:p-1",
10
10
  "[&::picker-icon]:hidden",
11
11
  "[&::picker(select)]:bg-white [&::picker(select)]:shadow-sm dark:[&::picker(select)]:bg-neutral-800",
12
12
  "bg-none after:bg-current after:bg-size-[100%] after:bg-center after:bg-no-repeat",
@@ -14,7 +14,7 @@ const selectVariants = tv({
14
14
  "[&:open]:after:rotate-180",
15
15
  ],
16
16
  option: [
17
- "flex rounded p-2 body-small",
17
+ "flex rounded-sm p-2 ui-select-label",
18
18
  "bg-white dark:bg-neutral-800",
19
19
  "bg-linear-to-r to-transparent",
20
20
  "[&::checkmark]:order-1 [&::checkmark]:ml-auto [&::checkmark]:shrink-0",
@@ -2,12 +2,12 @@ import { tv } from "tailwind-variants";
2
2
 
3
3
  const notificationVariants = tv({
4
4
  slots: {
5
- base: "grid grid-cols-[40px_1fr_24px] gap-2 rounded-lg border-1 border-neutral-300 bg-white p-2 dark:border-neutral-700 dark:bg-neutral-900",
6
- close: "col-[3] self-start",
5
+ base: "grid grid-cols-[40px_1fr_24px] gap-2 rounded-lg border border-neutral-300 bg-white p-2 dark:border-neutral-700 dark:bg-neutral-900",
6
+ close: "col-3 self-start",
7
7
  icon: "flex h-10 w-10 items-center justify-center rounded-sm text-white",
8
8
  content: "flex flex-col justify-center",
9
- message: "body-extra-small text-neutral-500",
10
- title: "body-default dark:text-white",
9
+ message: "ui-caption-helper text-neutral-500",
10
+ title: "body-small dark:text-white",
11
11
  },
12
12
  variants: {
13
13
  variant: {
@@ -2,8 +2,8 @@ import { tv } from "tailwind-variants";
2
2
 
3
3
  const colorSwatchVariants = tv({
4
4
  slots: {
5
- base: "flex cursor-pointer items-center justify-center gap-1 rounded transition duration-200 select-none hover:bg-neutral-300 dark:hover:bg-neutral-700",
6
- iconText: "flex h-4 w-4 items-center justify-center rounded",
5
+ base: "flex cursor-pointer items-center justify-center gap-1 rounded-sm transition duration-200 select-none hover:bg-neutral-300 dark:hover:bg-neutral-700",
6
+ iconText: "flex h-4 w-4 items-center justify-center rounded-sm",
7
7
  iconArrow: "dark:text-white",
8
8
  },
9
9
  variants: {
@@ -2,7 +2,7 @@ import { tv } from "tailwind-variants";
2
2
 
3
3
  const richTextEditorVariants = tv({
4
4
  slots: {
5
- base: "body-default text-neutral-800 dark:text-white",
5
+ base: "body-small text-neutral-800 dark:text-white",
6
6
  toolbar:
7
7
  "pointer flex gap-0.5 rounded-t-sm border border-b-0 border-neutral-300 px-5 py-2 dark:border-neutral-700",
8
8
  field: [
@@ -2,11 +2,12 @@ import { tv } from "tailwind-variants";
2
2
 
3
3
  const selectorCardVariants = tv({
4
4
  slots: {
5
- base: "flex cursor-pointer gap-3 rounded-sm border border-neutral-300 bg-white px-4 py-3 dark:border-neutral-700 dark:bg-neutral-800",
6
- content: "flex grow flex-col items-start gap-1",
7
- helperText: "body-small text-neutral-500",
5
+ base: "flex cursor-pointer gap-3 rounded-lg border border-neutral-300 bg-white px-4 py-3 dark:border-neutral-700 dark:bg-neutral-800",
6
+ content: "",
7
+ helperText: "ui-caption-helper text-neutral-500",
8
8
  input: "shrink-0",
9
- label: "cursor-[inherit] heading-h6 text-neutral-900 dark:text-neutral-200",
9
+ label:
10
+ "mb-0.5 cursor-[inherit] ui-title-2 text-neutral-900 dark:text-neutral-200",
10
11
  },
11
12
  variants: {
12
13
  disabled: {
@@ -16,7 +17,7 @@ const selectorCardVariants = tv({
16
17
  },
17
18
  error: {
18
19
  true: {
19
- base: "!border-red-500 outline-1 !outline-red-500",
20
+ base: "border-red-500! outline-1 outline-red-500!",
20
21
  label: "text-red-500 dark:text-red-500",
21
22
  },
22
23
  },
@@ -1,5 +1,6 @@
1
1
  <script>
2
2
  import { getContext } from "svelte";
3
+ import { Icon } from "../../../index.js";
3
4
  import {
4
5
  toggleGroupItemVariants,
5
6
  toggleGroupItemTabVariants,
@@ -9,15 +10,16 @@
9
10
  * @typedef {Object} Props
10
11
  * @property {import('svelte').Snippet} [children] Children content – can be text, HTML, or other Svelte components
11
12
  * @property {string} [class=""] Additional CSS classes to apply to the component
13
+ * @property {string} [icon] The name of the icon to display alongside the content
12
14
  * @property {string} [value=""] The value of the toggle group item
13
15
  */
14
16
 
15
17
  /** @type {Props} */
16
- let { children, class: className = "", value: localeValue } = $props();
18
+ let { children, class: className = "", icon, value: localeValue } = $props();
17
19
 
18
- let store = getContext("toggle-group-store");
19
- let { appearance, send, receive, size, variant } = $derived(store());
20
- let isActive = $derived(store().value === localeValue);
20
+ let store = $derived(getContext("toggle-group-store")());
21
+ let { appearance, send, receive, size, variant } = $derived(store);
22
+ let isActive = $derived(store.value === localeValue);
21
23
 
22
24
  let stylesByVariant = $derived.by(() => {
23
25
  if (variant === "tabs") {
@@ -33,10 +35,18 @@
33
35
  class={stylesByVariant.button({ appearance, class: className, isActive, size })}
34
36
  role="tab"
35
37
  onclick={() => {
36
- store().update(localeValue);
38
+ store.update(localeValue);
37
39
  }}
38
40
  type="button">
39
- <span class={stylesByVariant.span()}>{@render children?.()}</span>
41
+ <span class={stylesByVariant.span()}>
42
+ {#if icon}
43
+ <Icon
44
+ class={stylesByVariant.icon()}
45
+ name={icon}
46
+ size={variant === "tabs" || size === "small" ? 16 : 24} />
47
+ {/if}
48
+ {@render children?.()}
49
+ </span>
40
50
  {#if isActive}
41
51
  <div
42
52
  class={stylesByVariant.trigger({ appearance })}
@@ -12,6 +12,10 @@ declare const ToggleGroupItem: import("svelte").Component<{
12
12
  * Additional CSS classes to apply to the component
13
13
  */
14
14
  class?: string;
15
+ /**
16
+ * The name of the icon to display alongside the content
17
+ */
18
+ icon?: string;
15
19
  /**
16
20
  * The value of the toggle group item
17
21
  */
@@ -26,6 +30,10 @@ type Props = {
26
30
  * Additional CSS classes to apply to the component
27
31
  */
28
32
  class?: string;
33
+ /**
34
+ * The name of the icon to display alongside the content
35
+ */
36
+ icon?: string;
29
37
  /**
30
38
  * The value of the toggle group item
31
39
  */
@@ -2,7 +2,7 @@ import { tv } from "tailwind-variants";
2
2
 
3
3
  const toggleGroupVariants = tv({
4
4
  slots: {
5
- base: "overflow-hidden rounded-sm bg-current",
5
+ base: "overflow-hidden rounded-lg bg-current",
6
6
  tabs: "flex gap-1",
7
7
  },
8
8
  variants: {
@@ -12,7 +12,7 @@ const toggleGroupVariants = tv({
12
12
  },
13
13
  size: {
14
14
  small: {
15
- tabs: "h-6 p-0.5",
15
+ tabs: "h-9 p-1",
16
16
  },
17
17
  medium: {
18
18
  tabs: "h-10 p-1",
@@ -24,7 +24,7 @@ const toggleGroupVariants = tv({
24
24
  const toggleGroupTabVariants = tv({
25
25
  slots: {
26
26
  base: "",
27
- tabs: "flex h-10 gap-5 border-b border-b-neutral-500",
27
+ tabs: "flex h-9 gap-4 border-b border-neutral-300 dark:border-neutral-700",
28
28
  },
29
29
  });
30
30
 
@@ -18,6 +18,7 @@ export const toggleGroupItemVariants: import("tailwind-variants").TVReturnType<{
18
18
  }, {
19
19
  base: string;
20
20
  button: string;
21
+ icon: string;
21
22
  span: string;
22
23
  trigger: string;
23
24
  }, undefined, {
@@ -40,6 +41,7 @@ export const toggleGroupItemVariants: import("tailwind-variants").TVReturnType<{
40
41
  }, {
41
42
  base: string;
42
43
  button: string;
44
+ icon: string;
43
45
  span: string;
44
46
  trigger: string;
45
47
  }, import("tailwind-variants").TVReturnType<{
@@ -62,6 +64,7 @@ export const toggleGroupItemVariants: import("tailwind-variants").TVReturnType<{
62
64
  }, {
63
65
  base: string;
64
66
  button: string;
67
+ icon: string;
65
68
  span: string;
66
69
  trigger: string;
67
70
  }, undefined, unknown, unknown, undefined>>;
@@ -77,6 +80,7 @@ export const toggleGroupItemTabVariants: import("tailwind-variants").TVReturnTyp
77
80
  }, {
78
81
  base: string;
79
82
  button: string;
83
+ icon: string;
80
84
  span: string;
81
85
  trigger: string;
82
86
  }, undefined, {
@@ -91,6 +95,7 @@ export const toggleGroupItemTabVariants: import("tailwind-variants").TVReturnTyp
91
95
  }, {
92
96
  base: string;
93
97
  button: string;
98
+ icon: string;
94
99
  span: string;
95
100
  trigger: string;
96
101
  }, import("tailwind-variants").TVReturnType<{
@@ -105,6 +110,7 @@ export const toggleGroupItemTabVariants: import("tailwind-variants").TVReturnTyp
105
110
  }, {
106
111
  base: string;
107
112
  button: string;
113
+ icon: string;
108
114
  span: string;
109
115
  trigger: string;
110
116
  }, undefined, unknown, unknown, undefined>>;
@@ -4,8 +4,9 @@ const toggleGroupItemVariants = tv({
4
4
  slots: {
5
5
  base: "relative h-full w-full whitespace-nowrap",
6
6
  button:
7
- "block h-full w-full cursor-pointer rounded-sm bg-transparent button-small transition-[background,color]",
8
- span: "relative z-2 block",
7
+ "block h-full w-full cursor-pointer rounded-sm bg-transparent ui-button-small transition-[background,color]",
8
+ icon: "shrink-0",
9
+ span: "relative z-2 flex items-center justify-center gap-2",
9
10
  trigger: "absolute inset-0 z-1 rounded-sm bg-white shadow-sm",
10
11
  },
11
12
  variants: {
@@ -19,7 +20,7 @@ const toggleGroupItemVariants = tv({
19
20
  },
20
21
  size: {
21
22
  small: {
22
- button: "px-1.5",
23
+ button: "px-1",
23
24
  },
24
25
  medium: {
25
26
  button: "px-3",
@@ -48,19 +49,19 @@ const toggleGroupItemVariants = tv({
48
49
 
49
50
  const toggleGroupItemTabVariants = tv({
50
51
  slots: {
51
- base: "relative h-full w-full px-1 whitespace-nowrap",
52
- button: "h-full w-full cursor-pointer button-default transition-[color]",
53
- span: "block",
54
- trigger:
55
- "absolute -bottom-px left-0 h-0.5 w-full rounded-t-xs bg-blue-500 dark:bg-blue-400",
52
+ base: "relative h-full w-full whitespace-nowrap text-neutral-900 dark:text-neutral-200",
53
+ button: "h-full w-full cursor-pointer ui-button-default transition-[color]",
54
+ icon: "shrink-0",
55
+ span: "flex items-center justify-center gap-1",
56
+ trigger: "absolute -bottom-px left-0 h-0.5 w-full rounded-t-xs bg-current",
56
57
  },
57
58
  variants: {
58
59
  isActive: {
59
60
  true: {
60
- button: "text-neutral-900 dark:text-white",
61
+ button: "text-current",
61
62
  },
62
63
  false: {
63
- button: "text-neutral-500 hover:text-neutral-900 dark:hover:text-white",
64
+ button: "text-neutral-500 hover:text-current",
64
65
  },
65
66
  },
66
67
  },
@@ -4,11 +4,12 @@ const modalVariants = tv({
4
4
  slots: {
5
5
  close: "ml-auto",
6
6
  container:
7
- "my-4 grid max-h-[calc(100vh-32px)] w-[calc(100vw-32px)] min-w-xs grid-rows-[auto_1fr] overflow-hidden rounded-2xl bg-white leading-[1.486] shadow-sm dark:bg-neutral-800 dark:text-neutral-200",
8
- header: "flex items-start border-b border-neutral-300 px-4 py-3",
7
+ "my-4 grid max-h-[calc(100vh-32px)] w-[calc(100vw-32px)] min-w-xs grid-rows-[auto_1fr] overflow-hidden rounded-lg bg-white body-small shadow-sm outline-8 outline-white/90 dark:bg-neutral-800 dark:text-neutral-200 dark:outline-neutral-800/90",
8
+ header:
9
+ "flex items-end border-b border-neutral-300 px-4 py-3 ui-title-2 dark:border-neutral-700",
9
10
  body: "h-full overflow-auto",
10
11
  overlay: "fixed inset-0 z-modal-backdrop bg-black/25",
11
- positioner: "fixed inset-0 z-1 z-modal grid items-center justify-items-center",
12
+ positioner: "fixed inset-0 z-modal grid items-center justify-items-center",
12
13
  trigger: "cursor-pointer",
13
14
  },
14
15
  variants: {
@@ -7,7 +7,7 @@ const popoverVariants = tv({
7
7
  content:
8
8
  "flex flex-col-reverse rounded-2xl bg-white shadow-sm dark:bg-neutral-800",
9
9
  header:
10
- "flex items-center justify-between gap-3 border-b border-gray-300 heading-h6 dark:text-neutral-200",
10
+ "flex items-center justify-between gap-3 border-b border-gray-300 ui-title-2 dark:text-neutral-200",
11
11
  trigger: "cursor-pointer",
12
12
  },
13
13
  variants: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websline/system-components",
3
- "version": "1.0.9",
3
+ "version": "1.0.10-beta",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },