@byyuurin/ui 0.0.2 → 0.0.3

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 (132) hide show
  1. package/README.md +75 -5
  2. package/dist/index.cjs +38 -0
  3. package/dist/index.d.ts +3 -3
  4. package/dist/index.mjs +3 -3
  5. package/dist/nuxt.d.mts +13 -0
  6. package/dist/nuxt.d.ts +6 -3
  7. package/dist/nuxt.mjs +6 -3
  8. package/dist/resolver.d.mts +13 -0
  9. package/dist/resolver.d.ts +6 -3
  10. package/dist/resolver.mjs +5 -2
  11. package/dist/{components → runtime/components}/Accordion.vue +19 -3
  12. package/dist/{components → runtime/components}/Button.vue +93 -94
  13. package/dist/{components → runtime/components}/Checkbox.vue +104 -104
  14. package/dist/{components → runtime/components}/RadioGroup.vue +180 -180
  15. package/dist/{components → runtime/components}/Select.vue +262 -258
  16. package/dist/{components → runtime/components}/Switch.vue +99 -99
  17. package/dist/{components → runtime/components}/Tabs.vue +117 -117
  18. package/dist/{components → runtime/components}/Toaster.vue +35 -1
  19. package/dist/runtime/components/index.cjs +132 -0
  20. package/dist/runtime/composables/index.cjs +33 -0
  21. package/dist/runtime/composables/useComponentIcons.cjs +30 -0
  22. package/dist/runtime/composables/useModal.cjs +55 -0
  23. package/dist/runtime/composables/useTheme.cjs +30 -0
  24. package/dist/{composables → runtime/composables}/useTheme.d.ts +0 -1
  25. package/dist/{composables → runtime/composables}/useTheme.mjs +3 -3
  26. package/dist/runtime/composables/useToast.cjs +51 -0
  27. package/dist/{composables → runtime/composables}/useToast.d.ts +1 -1
  28. package/dist/runtime/theme/accordion.cjs +27 -0
  29. package/dist/runtime/theme/app.cjs +15 -0
  30. package/dist/runtime/theme/button.cjs +127 -0
  31. package/dist/runtime/theme/card.cjs +17 -0
  32. package/dist/runtime/theme/checkbox.cjs +56 -0
  33. package/dist/runtime/theme/drawer.cjs +73 -0
  34. package/dist/runtime/theme/index.cjs +125 -0
  35. package/dist/runtime/theme/input.cjs +115 -0
  36. package/dist/runtime/theme/link.cjs +23 -0
  37. package/dist/runtime/theme/modal.cjs +55 -0
  38. package/dist/runtime/theme/popover.cjs +13 -0
  39. package/dist/runtime/theme/radioGroup.cjs +73 -0
  40. package/dist/runtime/theme/select.cjs +128 -0
  41. package/dist/runtime/theme/switch.cjs +73 -0
  42. package/dist/runtime/theme/tabs.cjs +105 -0
  43. package/dist/runtime/theme/toast.cjs +33 -0
  44. package/dist/runtime/theme/toaster.cjs +72 -0
  45. package/dist/runtime/theme/tooltip.cjs +14 -0
  46. package/dist/runtime/types/components.cjs +1 -0
  47. package/dist/runtime/types/index.cjs +27 -0
  48. package/dist/{types → runtime/types}/index.d.ts +1 -1
  49. package/dist/runtime/types/utils.cjs +1 -0
  50. package/dist/runtime/utils/extend-theme.cjs +24 -0
  51. package/dist/runtime/utils/index.cjs +119 -0
  52. package/dist/{utils → runtime/utils}/index.d.ts +3 -1
  53. package/dist/{utils → runtime/utils}/index.mjs +3 -1
  54. package/dist/runtime/utils/link.cjs +10 -0
  55. package/dist/runtime/utils/styler.cjs +18 -0
  56. package/dist/{internal → runtime/utils}/styler.d.ts +0 -1
  57. package/dist/runtime/utils/styler.mjs +10 -0
  58. package/dist/{internal/constants.mjs → shared/ui.CPXA9QoM.mjs} +4 -2
  59. package/dist/unocss-preset.d.mts +49 -0
  60. package/dist/unocss-preset.d.ts +20 -8
  61. package/dist/unocss-preset.mjs +428 -78
  62. package/package.json +15 -10
  63. package/dist/internal/constants.d.ts +0 -3
  64. package/dist/internal/index.d.ts +0 -4
  65. package/dist/internal/index.mjs +0 -4
  66. package/dist/internal/styler.mjs +0 -236
  67. package/dist/utils/unocss.d.ts +0 -3
  68. package/dist/utils/unocss.mjs +0 -50
  69. /package/dist/{components → runtime/components}/App.vue +0 -0
  70. /package/dist/{components → runtime/components}/Card.vue +0 -0
  71. /package/dist/{components → runtime/components}/Drawer.vue +0 -0
  72. /package/dist/{components → runtime/components}/Input.vue +0 -0
  73. /package/dist/{components → runtime/components}/Link.vue +0 -0
  74. /package/dist/{components → runtime/components}/Modal.vue +0 -0
  75. /package/dist/{components → runtime/components}/ModalProvider.vue +0 -0
  76. /package/dist/{components → runtime/components}/Popover.vue +0 -0
  77. /package/dist/{components → runtime/components}/Toast.vue +0 -0
  78. /package/dist/{components → runtime/components}/Tooltip.vue +0 -0
  79. /package/dist/{components → runtime/components}/index.d.ts +0 -0
  80. /package/dist/{components → runtime/components}/index.mjs +0 -0
  81. /package/dist/{composables → runtime/composables}/index.d.ts +0 -0
  82. /package/dist/{composables → runtime/composables}/index.mjs +0 -0
  83. /package/dist/{composables → runtime/composables}/useComponentIcons.d.ts +0 -0
  84. /package/dist/{composables → runtime/composables}/useComponentIcons.mjs +0 -0
  85. /package/dist/{composables → runtime/composables}/useModal.d.ts +0 -0
  86. /package/dist/{composables → runtime/composables}/useModal.mjs +0 -0
  87. /package/dist/{composables → runtime/composables}/useToast.mjs +0 -0
  88. /package/dist/{theme → runtime/theme}/accordion.d.ts +0 -0
  89. /package/dist/{theme → runtime/theme}/accordion.mjs +0 -0
  90. /package/dist/{theme → runtime/theme}/app.d.ts +0 -0
  91. /package/dist/{theme → runtime/theme}/app.mjs +0 -0
  92. /package/dist/{theme → runtime/theme}/button.d.ts +0 -0
  93. /package/dist/{theme → runtime/theme}/button.mjs +0 -0
  94. /package/dist/{theme → runtime/theme}/card.d.ts +0 -0
  95. /package/dist/{theme → runtime/theme}/card.mjs +0 -0
  96. /package/dist/{theme → runtime/theme}/checkbox.d.ts +0 -0
  97. /package/dist/{theme → runtime/theme}/checkbox.mjs +0 -0
  98. /package/dist/{theme → runtime/theme}/drawer.d.ts +0 -0
  99. /package/dist/{theme → runtime/theme}/drawer.mjs +0 -0
  100. /package/dist/{theme → runtime/theme}/index.d.ts +0 -0
  101. /package/dist/{theme → runtime/theme}/index.mjs +0 -0
  102. /package/dist/{theme → runtime/theme}/input.d.ts +0 -0
  103. /package/dist/{theme → runtime/theme}/input.mjs +0 -0
  104. /package/dist/{theme → runtime/theme}/link.d.ts +0 -0
  105. /package/dist/{theme → runtime/theme}/link.mjs +0 -0
  106. /package/dist/{theme → runtime/theme}/modal.d.ts +0 -0
  107. /package/dist/{theme → runtime/theme}/modal.mjs +0 -0
  108. /package/dist/{theme → runtime/theme}/popover.d.ts +0 -0
  109. /package/dist/{theme → runtime/theme}/popover.mjs +0 -0
  110. /package/dist/{theme → runtime/theme}/radioGroup.d.ts +0 -0
  111. /package/dist/{theme → runtime/theme}/radioGroup.mjs +0 -0
  112. /package/dist/{theme → runtime/theme}/select.d.ts +0 -0
  113. /package/dist/{theme → runtime/theme}/select.mjs +0 -0
  114. /package/dist/{theme → runtime/theme}/switch.d.ts +0 -0
  115. /package/dist/{theme → runtime/theme}/switch.mjs +0 -0
  116. /package/dist/{theme → runtime/theme}/tabs.d.ts +0 -0
  117. /package/dist/{theme → runtime/theme}/tabs.mjs +0 -0
  118. /package/dist/{theme → runtime/theme}/toast.d.ts +0 -0
  119. /package/dist/{theme → runtime/theme}/toast.mjs +0 -0
  120. /package/dist/{theme → runtime/theme}/toaster.d.ts +0 -0
  121. /package/dist/{theme → runtime/theme}/toaster.mjs +0 -0
  122. /package/dist/{theme → runtime/theme}/tooltip.d.ts +0 -0
  123. /package/dist/{theme → runtime/theme}/tooltip.mjs +0 -0
  124. /package/dist/{types → runtime/types}/components.d.ts +0 -0
  125. /package/dist/{types → runtime/types}/components.mjs +0 -0
  126. /package/dist/{types → runtime/types}/index.mjs +0 -0
  127. /package/dist/{types → runtime/types}/utils.d.ts +0 -0
  128. /package/dist/{types → runtime/types}/utils.mjs +0 -0
  129. /package/dist/{internal → runtime/utils}/extend-theme.d.ts +0 -0
  130. /package/dist/{internal → runtime/utils}/extend-theme.mjs +0 -0
  131. /package/dist/{internal → runtime/utils}/link.d.ts +0 -0
  132. /package/dist/{internal → runtime/utils}/link.mjs +0 -0
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _uiKit = require("@byyuurin/ui-kit");
8
+ module.exports = (0, _uiKit.ct)({
9
+ slots: {
10
+ root: "inline-flex items-center gap-x-2 rounded-ui-base transition-colors aria-disabled:opacity-50",
11
+ base: ["w-full color-inherit bg-transparent border-0 placeholder:color-ui-cb/50", "focus:outline-none", "disabled:cursor-not-allowed"],
12
+ prefix: "flex items-center",
13
+ prefixIcon: "shrink-0 size-1.25em",
14
+ suffix: "flex items-center",
15
+ suffixIcon: "shrink-0 size-1.25em"
16
+ },
17
+ variants: {
18
+ size: {
19
+ xs: {
20
+ root: "text-xs"
21
+ },
22
+ sm: {
23
+ root: "text-sm"
24
+ },
25
+ md: {
26
+ root: "text-base"
27
+ },
28
+ lg: {
29
+ root: "text-lg"
30
+ },
31
+ xl: {
32
+ root: "text-xl"
33
+ }
34
+ },
35
+ variant: {
36
+ outline: {
37
+ root: ["color-ui-cb/80 bg-ui-c1 ring ring-inset ring-ui-cb/50", "focus-within:ring-2 focus-within:ring-ui-cb/50", "aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"]
38
+ },
39
+ soft: {
40
+ root: ["color-ui-cb/80 bg-ui-cb/4", "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85", "aria-disabled:color-ui-content/80 aria-disabled:bg-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-ui-fill/5"]
41
+ },
42
+ ghost: {
43
+ root: ["color-ui-cb/80 bg-transparent", "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85", "aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"]
44
+ },
45
+ none: {
46
+ root: "color-ui-cb bg-transparent"
47
+ }
48
+ },
49
+ prefix: {
50
+ true: ""
51
+ },
52
+ suffix: {
53
+ true: ""
54
+ },
55
+ loading: {
56
+ true: ""
57
+ },
58
+ underline: {
59
+ true: ""
60
+ },
61
+ highlight: {
62
+ true: {
63
+ base: ""
64
+ }
65
+ },
66
+ type: {
67
+ file: {
68
+ base: "prefix-normal not-disabled:cursor-pointer file:pointer-events-none file:py-0 file:font-size-0.875em file:rounded-ui-button file:border-none file:color-ui-c1 file:bg-ui-cb/80"
69
+ }
70
+ }
71
+ },
72
+ compoundVariants: [{
73
+ variant: ["soft", "ghost", "none"],
74
+ highlight: false,
75
+ underline: true,
76
+ class: {
77
+ root: "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-ui-cb/40"
78
+ }
79
+ }, {
80
+ size: ["xs", "sm", "md"],
81
+ class: {
82
+ root: "p-1.5 px-2.5"
83
+ }
84
+ }, {
85
+ size: ["lg", "xl"],
86
+ class: {
87
+ root: "p-2.5 px-3.5"
88
+ }
89
+ }, {
90
+ variant: ["soft", "ghost", "none"],
91
+ highlight: true,
92
+ class: {
93
+ root: "ring ring-inset ring-ui-fill/80"
94
+ }
95
+ }, {
96
+ variant: ["outline"],
97
+ highlight: true,
98
+ class: {
99
+ root: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
100
+ }
101
+ }, {
102
+ loading: true,
103
+ prefix: true,
104
+ class: {
105
+ prefixIcon: "animate-spin"
106
+ }
107
+ }, {
108
+ loading: true,
109
+ prefix: false,
110
+ suffix: true,
111
+ class: {
112
+ suffixIcon: "animate-spin"
113
+ }
114
+ }]
115
+ });
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _uiKit = require("@byyuurin/ui-kit");
8
+ module.exports = (0, _uiKit.ct)({
9
+ base: "border-y border-t-transparent focus-visible:outline-ui-cb",
10
+ variants: {
11
+ underline: {
12
+ true: "border-current",
13
+ false: "border-transparent"
14
+ },
15
+ active: {
16
+ true: ["color-ui-fill", "disabled:color-ui-fill aria-disabled:color-ui-fill"],
17
+ false: ["color-ui-cb hover:color-ui-cb/80 transition-colors", "disabled:hover:color-ui-cb aria-disabled:hover:color-ui-cb"]
18
+ },
19
+ disabled: {
20
+ true: "cursor-not-allowed opacity-50"
21
+ }
22
+ }
23
+ });
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _uiKit = require("@byyuurin/ui-kit");
8
+ module.exports = (0, _uiKit.ct)({
9
+ slots: {
10
+ overlay: "fixed inset-0 bg-ui-c3/75",
11
+ content: "fixed bg-ui-c1 divide-y divide-ui-cb/10 flex flex-col focus:outline-none",
12
+ header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
13
+ body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
14
+ footer: "flex items-center gap-1.5 p-4 sm:px-6",
15
+ title: "flex-grow color-ui-cb text-xl font-semibold",
16
+ description: "w-full color-ui-cb/80",
17
+ close: "ms-auto"
18
+ },
19
+ variants: {
20
+ transition: {
21
+ true: {
22
+ overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
23
+ content: "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
24
+ }
25
+ },
26
+ blur: {
27
+ true: {
28
+ overlay: "backdrop-blur-sm"
29
+ }
30
+ },
31
+ size: {
32
+ fullscreen: {
33
+ content: "inset-0"
34
+ },
35
+ sm: {
36
+ content: "w-screen-sm"
37
+ },
38
+ md: {
39
+ content: "w-screen-md"
40
+ },
41
+ lg: {
42
+ content: "w-screen-lg"
43
+ },
44
+ xl: {
45
+ content: "w-screen-xl"
46
+ }
47
+ }
48
+ },
49
+ compoundVariants: [{
50
+ size: ["sm", "md", "lg", "xl"],
51
+ class: {
52
+ content: ["bottom-4 left-[50%] translate-x-[-50%] h-auto max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] ring ring-ui-c2", "sm:bottom-auto sm:top-[50%] sm:translate-y-[-50%] sm:rounded-ui-box sm:shadow-lg"]
53
+ }
54
+ }]
55
+ });
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _uiKit = require("@byyuurin/ui-kit");
8
+ module.exports = (0, _uiKit.ct)({
9
+ slots: {
10
+ content: ["color-ui-base bg-ui-base shadow-lg rounded-ui-box ring ring-ui-base/10", "data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] focus:outline-none pointer-events-auto"],
11
+ arrow: "fill-ui-base stroke-ui-cb/10"
12
+ }
13
+ });
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _uiKit = require("@byyuurin/ui-kit");
8
+ module.exports = (0, _uiKit.ct)({
9
+ slots: {
10
+ root: "relative",
11
+ fieldset: "flex flex-wrap gap-0.5em",
12
+ legend: "mb-1 block font-medium color-ui-cb",
13
+ item: "flex items-start",
14
+ base: "size-1.25em rounded-ui-base ring ring-inset ring-ui-cb focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb",
15
+ indicator: "flex items-center justify-center size-full rounded-ui-base bg-ui-fill",
16
+ container: "h-1.5em flex items-center",
17
+ wrapper: "ms-2",
18
+ label: "block font-medium color-ui-cb",
19
+ description: "color-ui-cb/60"
20
+ },
21
+ variants: {
22
+ orientation: {
23
+ horizontal: {
24
+ fieldset: "flex-row",
25
+ wrapper: "me-2"
26
+ },
27
+ vertical: {
28
+ fieldset: "flex-col"
29
+ }
30
+ },
31
+ size: {
32
+ xs: {
33
+ root: "text-xs"
34
+ },
35
+ sm: {
36
+ root: "text-sm"
37
+ },
38
+ md: {
39
+ root: "text-base"
40
+ },
41
+ lg: {
42
+ root: "text-lg"
43
+ },
44
+ xl: {
45
+ root: "text-xl"
46
+ }
47
+ },
48
+ dot: {
49
+ true: {
50
+ indicator: "after:content-empty after:size-0.75em after:bg-ui-c1 after:rounded-ui-base"
51
+ }
52
+ },
53
+ round: {
54
+ true: {
55
+ base: "rounded-full",
56
+ indicator: "rounded-full after:rounded-full"
57
+ }
58
+ },
59
+ disabled: {
60
+ true: {
61
+ root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
62
+ },
63
+ false: {
64
+ label: "cursor-pointer"
65
+ }
66
+ },
67
+ required: {
68
+ true: {
69
+ legend: "after:content-['*'] after:ms-0.5"
70
+ }
71
+ }
72
+ }
73
+ });
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _uiKit = require("@byyuurin/ui-kit");
8
+ module.exports = (0, _uiKit.ct)({
9
+ slots: {
10
+ base: ["bg-ui-c1 relative group rounded-ui-base inline-flex items-center gap-x-2 focus:outline-none transition-colors", "disabled:cursor-not-allowed disabled:opacity-50"],
11
+ value: "me-auto truncate pointer-events-none",
12
+ placeholder: "me-auto truncate color-ui-cb/50",
13
+ arrow: "fill-ui-c1 stroke-ui-cb/10",
14
+ content: ["max-h-60 w-[var(--reka-popper-anchor-width)] bg-ui-c1 shadow-lg rounded-[calc(var(--ui-radius-tabs)*0.66)] ring ring-ui-cb/10 overflow-hidden pointer-events-auto", "data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]"],
15
+ viewport: "divide-y divide-ui-cb/10 scroll-py-1",
16
+ group: "p-1 isolate",
17
+ empty: "py-2 text-center text-sm color-ui-cb/50",
18
+ label: "font-semibold color-ui-cb cursor-pointer",
19
+ separator: "-mx-1 my-1 h-px bg-ui-cb/10",
20
+ item: ["group relative w-full flex gap-2 items-center select-none outline-none color-ui-cb/50 transition-colors cursor-pointer", "aria-disabled:cursor-not-allowed aria-disabled:opacity-50", "before:content-empty before:absolute before:z-[-1] before:inset-px before:rounded-ui-base before:transition-colors", "data-[highlighted]:color-ui-cb data-[highlighted]:before:bg-ui-cb/3", "data-[state=checked]:color-ui-base"],
21
+ itemPrefixIcon: "shrink-0 color-ui-cb/80 group-data-[highlighted]:color-ui-cb/80 transition-colors",
22
+ itemSuffix: "ms-auto inline-flex gap-1.5 items-center",
23
+ itemSuffixIcon: "shrink-0",
24
+ itemLabel: "truncate",
25
+ prefix: "flex items-center",
26
+ prefixIcon: "shrink-0 size-1.25em",
27
+ suffix: "flex items-center",
28
+ suffixIcon: "shrink-0 size-1.25em"
29
+ },
30
+ variants: {
31
+ variant: {
32
+ outline: {
33
+ base: ["color-ui-cb/80 bg-ui-c1 ring ring-inset ring-ui-cb/50", "focus-within:ring-2 focus-within:ring-ui-cb/50", "disabled:ring-ui-cb/80 hover:disabled:ring-ui-cb/80"]
34
+ },
35
+ soft: {
36
+ base: ["color-ui-cb/80 bg-ui-cb/4", "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85", "disabled:color-ui-content/80 disabled:bg-ui-fill/5 hover:disabled:color-ui-content/80 hover:disabled:bg-ui-fill/5"]
37
+ },
38
+ ghost: {
39
+ base: ["color-ui-cb/80 bg-transparent", "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85", "disabled:color-ui-fill/80 disabled:bg-transparent hover:disabled:color-ui-fill/80 hover:disabled:bg-transparent"]
40
+ },
41
+ none: {
42
+ base: "color-ui-cb bg-transparent"
43
+ }
44
+ },
45
+ size: {
46
+ xs: {
47
+ base: "text-xs",
48
+ item: "text-xs"
49
+ },
50
+ sm: {
51
+ base: "text-sm",
52
+ item: "text-sm"
53
+ },
54
+ md: {
55
+ base: "text-base",
56
+ item: "text-base"
57
+ },
58
+ lg: {
59
+ base: "text-lg",
60
+ item: "text-lg"
61
+ },
62
+ xl: {
63
+ base: "text-xl",
64
+ item: "text-xl"
65
+ }
66
+ },
67
+ prefix: {
68
+ true: ""
69
+ },
70
+ suffix: {
71
+ true: ""
72
+ },
73
+ loading: {
74
+ true: ""
75
+ },
76
+ underline: {
77
+ true: ""
78
+ },
79
+ highlight: {
80
+ true: ""
81
+ }
82
+ },
83
+ compoundVariants: [{
84
+ variant: ["soft", "ghost", "none"],
85
+ highlight: false,
86
+ underline: true,
87
+ class: {
88
+ base: "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-ui-cb/40"
89
+ }
90
+ }, {
91
+ size: ["xs", "sm", "md"],
92
+ class: {
93
+ base: "p-1.5 px-2.5",
94
+ item: "p-1.5 px-2.5"
95
+ }
96
+ }, {
97
+ size: ["lg", "xl"],
98
+ class: {
99
+ base: "p-2.5 px-3.5",
100
+ item: "p-2.5 px-3.5"
101
+ }
102
+ }, {
103
+ variant: ["soft", "ghost", "none"],
104
+ highlight: true,
105
+ class: {
106
+ base: "ring ring-inset ring-ui-fill/80"
107
+ }
108
+ }, {
109
+ variant: ["outline"],
110
+ highlight: true,
111
+ class: {
112
+ base: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
113
+ }
114
+ }, {
115
+ loading: true,
116
+ prefix: true,
117
+ class: {
118
+ prefixIcon: "animate-spin"
119
+ }
120
+ }, {
121
+ loading: true,
122
+ prefix: false,
123
+ suffix: true,
124
+ class: {
125
+ suffixIcon: "animate-spin"
126
+ }
127
+ }]
128
+ });
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _uiKit = require("@byyuurin/ui-kit");
8
+ module.exports = (0, _uiKit.ct)({
9
+ slots: {
10
+ root: "relative flex items-start",
11
+ base: ["inline-flex items-center shrink-0 rounded-ui-base border-2 border-transparent transition-colors duration-200", "focus-visible:outline-2 focus-visible:outline-offset-2", "data-[state=unchecked]:bg-ui-cb/10 data-[state=checked]:bg-ui-fill/80 focus-visible:outline-ui-base", "w-2.7em"],
12
+ container: "flex items-center h-1.5em",
13
+ thumb: ["group pointer-events-none rounded-ui-base size-1.25em bg-ui-c1 shadow-lg ring-0 transition-transform duration-200 flex items-center justify-center", "data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:translate-x-0 data-[state=checked]:translate-x-1.25em data-[state=checked]:rtl:-translate-x-1.25em"],
14
+ icon: ["absolute shrink-0 opacity-0 size-10/12 transition-[color,opacity] duration-200", "group-data-[state=unchecked]:color-ui-cb/50 group-data-[state=checked]:color-ui-base"],
15
+ wrapper: "ms-2",
16
+ label: "flex color-ui-cb/80",
17
+ description: "color-ui-cb/60"
18
+ },
19
+ variants: {
20
+ size: {
21
+ xs: {
22
+ root: "text-xs"
23
+ },
24
+ sm: {
25
+ root: "text-sm"
26
+ },
27
+ md: {
28
+ root: "text-base"
29
+ },
30
+ lg: {
31
+ root: "text-lg"
32
+ },
33
+ xl: {
34
+ root: "text-xl"
35
+ }
36
+ },
37
+ round: {
38
+ true: {
39
+ base: "rounded-full",
40
+ thumb: "rounded-full"
41
+ }
42
+ },
43
+ checked: {
44
+ true: {
45
+ icon: "group-data-[state=checked]:opacity-100"
46
+ }
47
+ },
48
+ unchecked: {
49
+ true: {
50
+ icon: "group-data-[state=unchecked]:opacity-100"
51
+ }
52
+ },
53
+ loading: {
54
+ true: {
55
+ root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed",
56
+ icon: "animate-spin"
57
+ }
58
+ },
59
+ required: {
60
+ true: {
61
+ label: `after:content-['*'] after:ms-0.5`
62
+ }
63
+ },
64
+ disabled: {
65
+ true: {
66
+ root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
67
+ },
68
+ false: {
69
+ label: "cursor-pointer"
70
+ }
71
+ }
72
+ }
73
+ });
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _uiKit = require("@byyuurin/ui-kit");
8
+ module.exports = (0, _uiKit.ct)({
9
+ slots: {
10
+ root: "flex items-center gap-2",
11
+ list: "relative flex p-1 group",
12
+ indicator: "absolute transition-all duration-200",
13
+ trigger: ["group relative inline-flex items-center shrink-0 min-w-0 font-medium rounded-ui-tabs transition-colors", "focus:outline-hidden", "disabled:cursor-not-allowed disabled:opacity-50"],
14
+ content: "w-full focus:outline-none",
15
+ leadingIcon: "shrink-0",
16
+ label: "truncate"
17
+ },
18
+ variants: {
19
+ variant: {
20
+ solid: {
21
+ list: "bg-ui-cb/5 rounded-ui-tabs",
22
+ trigger: ["data-[state=active]:color-ui-c1 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill/80", "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"],
23
+ indicator: "bg-ui-fill/90 rounded-ui-tabs shadow-xs"
24
+ },
25
+ soft: {
26
+ list: "bg-ui-c1 rounded-ui-tabs",
27
+ trigger: ["data-[state=active]:color-ui-fill focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill", "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"],
28
+ indicator: "bg-ui-fill/10 rounded-ui-tabs shadow-xs"
29
+ },
30
+ link: {
31
+ list: "border-ui-cb/10",
32
+ indicator: "bg-ui-fill rounded-full",
33
+ trigger: ["data-[state=active]:color-ui-base focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ui-base", "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"]
34
+ }
35
+ },
36
+ orientation: {
37
+ horizontal: {
38
+ root: "flex-col",
39
+ list: "w-full",
40
+ indicator: "left-0 w-[var(--reka-tabs-indicator-size)] translate-x-[var(--reka-tabs-indicator-position)]",
41
+ trigger: "justify-center"
42
+ },
43
+ vertical: {
44
+ list: "flex-col",
45
+ indicator: "top-0 h-[var(--reka-tabs-indicator-size)] translate-y-[var(--reka-tabs-indicator-position)]",
46
+ trigger: "flex-1 w-full"
47
+ }
48
+ },
49
+ size: {
50
+ xs: {
51
+ trigger: "px-2 py-1 text-xs gap-1",
52
+ leadingIcon: "size-4"
53
+ },
54
+ sm: {
55
+ trigger: "px-2.5 py-1.5 text-xs gap-1.5",
56
+ leadingIcon: "size-4"
57
+ },
58
+ md: {
59
+ trigger: "px-3 py-1.5 text-sm gap-1.5",
60
+ leadingIcon: "size-5"
61
+ },
62
+ lg: {
63
+ trigger: "px-3 py-2 text-sm gap-2",
64
+ leadingIcon: "size-5"
65
+ },
66
+ xl: {
67
+ trigger: "px-3 py-2 text-base gap-2",
68
+ leadingIcon: "size-6"
69
+ }
70
+ },
71
+ full: {
72
+ true: {
73
+ trigger: "w-full flex-1"
74
+ }
75
+ }
76
+ },
77
+ compoundVariants: [{
78
+ orientation: "horizontal",
79
+ variant: ["solid", "soft"],
80
+ class: {
81
+ indicator: "inset-y-1"
82
+ }
83
+ }, {
84
+ orientation: "horizontal",
85
+ variant: "link",
86
+ class: {
87
+ list: "border-b -mb-px",
88
+ indicator: "-bottom-px h-px"
89
+ }
90
+ }, {
91
+ orientation: "vertical",
92
+ variant: ["solid", "soft"],
93
+ class: {
94
+ indicator: "inset-x-1",
95
+ list: "items-center rounded-[calc(var(--ui-radius-tabs)*0.66)]"
96
+ }
97
+ }, {
98
+ orientation: "vertical",
99
+ variant: "link",
100
+ class: {
101
+ list: "border-s -ms-px",
102
+ indicator: "-start-px w-px"
103
+ }
104
+ }]
105
+ });
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _uiKit = require("@byyuurin/ui-kit");
8
+ module.exports = (0, _uiKit.ct)({
9
+ slots: {
10
+ root: "relative group overflow-hidden bg-ui-c1 shadow-lg rounded-ui-box ring ring-ui-c2 p-4 flex gap-2.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ui-c2",
11
+ wrapper: "w-0 flex-1 flex flex-col gap-1",
12
+ title: "text-base font-medium color-ui-cb",
13
+ description: "text-sm color-ui-cb/80",
14
+ icon: "shrink-0 size-6 color-ui-cb",
15
+ avatar: "shrink-0",
16
+ avatarSize: "2xl",
17
+ actions: "flex flex-wrap gap-1.5 shrink-0",
18
+ progress: "absolute inset-x-0 bottom-0 h-1 z-[-1] color-ui-base/80 bg-current",
19
+ close: "p-0.5"
20
+ },
21
+ variants: {
22
+ multiline: {
23
+ true: {
24
+ root: "items-start",
25
+ actions: "items-start mt-1"
26
+ },
27
+ false: {
28
+ root: "items-center",
29
+ actions: "items-center"
30
+ }
31
+ }
32
+ }
33
+ });
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _uiKit = require("@byyuurin/ui-kit");
8
+ module.exports = (0, _uiKit.ct)({
9
+ slots: {
10
+ viewport: ["fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] focus:outline-none", "data-[expanded=true]:h-[var(--height)]"],
11
+ base: ["pointer-events-auto absolute inset-x-0 z-[var(--index)] [transform:var(--transform)] transition-all duration-200 ease-out", "[&[data-expanded=false][data-front=false]]:h-[var(--front-height)]", "[&[data-expanded=false][data-front=false]>*]:invisible", "data-[state=closed]:animate-[toast-closed_200ms_ease-in-out]", "[&[data-state=closed][data-expanded=false][data-front=false]]:animate-[toast-collapsed-closed_200ms_ease-in-out]", "data-[swipe=move]:transition-none"]
12
+ },
13
+ variants: {
14
+ position: {
15
+ "top-left": {
16
+ viewport: "left-4"
17
+ },
18
+ "top-center": {
19
+ viewport: "left-1/2 -translate-x-1/2"
20
+ },
21
+ "top-right": {
22
+ viewport: "right-4"
23
+ },
24
+ "bottom-left": {
25
+ viewport: "left-4"
26
+ },
27
+ "bottom-center": {
28
+ viewport: "left-1/2 -translate-x-1/2"
29
+ },
30
+ "bottom-right": {
31
+ viewport: "right-4"
32
+ }
33
+ },
34
+ swipeDirection: {
35
+ up: {
36
+ base: "data-[swipe=end]:animate-[toast-slide-up_200ms_ease-out]"
37
+ },
38
+ right: {
39
+ base: "data-[swipe=end]:animate-[toast-slide-right_200ms_ease-out]"
40
+ },
41
+ down: {
42
+ base: "data-[swipe=end]:animate-[toast-slide-down_200ms_ease-out]"
43
+ },
44
+ left: {
45
+ base: "data-[swipe=end]:animate-[toast-slide-left_200ms_ease-out]"
46
+ }
47
+ }
48
+ },
49
+ compoundVariants: [{
50
+ position: ["top-left", "top-center", "top-right"],
51
+ class: {
52
+ viewport: "top-4",
53
+ base: "top-0 data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out]"
54
+ }
55
+ }, {
56
+ position: ["bottom-left", "bottom-center", "bottom-right"],
57
+ class: {
58
+ viewport: "bottom-4",
59
+ base: "bottom-0 data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out]"
60
+ }
61
+ }, {
62
+ swipeDirection: ["left", "right"],
63
+ class: {
64
+ base: ["data-[swipe=move]:translate-x-[var(--reka-toast-swipe-move-x)]", "data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)]", "data-[swipe=cancel]:translate-x-0"]
65
+ }
66
+ }, {
67
+ swipeDirection: ["up", "down"],
68
+ class: {
69
+ base: ["data-[swipe=move]:translate-y-[var(--reka-toast-swipe-move-y)]", "data-[swipe=end]:translate-y-[var(--reka-toast-swipe-end-y)]", "data-[swipe=cancel]:translate-y-0"]
70
+ }
71
+ }]
72
+ });