@techsio/ui-kit 0.10.0 → 0.11.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/atoms/{figma/badge.figma.js → badge.figma.js} +1 -1
- package/dist/atoms/{figma/button.figma.js → button.figma.js} +1 -1
- package/dist/atoms/{figma/checkbox.figma.js → checkbox.figma.js} +1 -1
- package/dist/atoms/{figma/icon.figma.js → icon.figma.js} +1 -1
- package/dist/atoms/{figma/image.figma.js → image.figma.js} +1 -1
- package/dist/atoms/{figma/input.figma.js → input.figma.js} +1 -1
- package/dist/atoms/{figma/label.figma.js → label.figma.js} +1 -1
- package/dist/atoms/{figma/link-button.figma.js → link-button.figma.js} +1 -1
- package/dist/atoms/{figma/link.figma.js → link.figma.js} +1 -1
- package/dist/atoms/{figma/numeric-input.figma.js → numeric-input.figma.js} +1 -1
- package/dist/atoms/{figma/rating.figma.js → rating.figma.js} +1 -1
- package/dist/atoms/{figma/skeleton.figma.js → skeleton.figma.js} +1 -1
- package/dist/atoms/{figma/status-text.figma.js → status-text.figma.js} +1 -1
- package/dist/atoms/{figma/textarea.figma.js → textarea.figma.js} +1 -1
- package/dist/atoms/{figma/tooltip.figma.js → tooltip.figma.js} +2 -2
- package/dist/molecules/{figma/accordion.figma.js → accordion.figma.js} +1 -1
- package/dist/molecules/accordion.js +2 -2
- package/dist/molecules/{figma/breadcrumb.figma.js → breadcrumb.figma.js} +1 -1
- package/dist/molecules/breadcrumb.js +13 -13
- package/dist/molecules/{figma/carousel.figma.js → carousel.figma.js} +1 -1
- package/dist/molecules/carousel.js +5 -5
- package/dist/molecules/color-select.js +5 -5
- package/dist/molecules/{figma/combobox.figma.js → combobox.figma.js} +5 -5
- package/dist/molecules/combobox.js +24 -19
- package/dist/molecules/{figma/dialog.figma.js → dialog.figma.js} +2 -2
- package/dist/molecules/dialog.js +10 -10
- package/dist/molecules/{figma/form-checkbox.figma.js → form-checkbox.figma.js} +1 -1
- package/dist/molecules/{figma/form-input.figma.js → form-input.figma.js} +4 -4
- package/dist/molecules/{figma/form-numeric-input.figma.js → form-numeric-input.figma.js} +5 -5
- package/dist/molecules/{figma/form-textarea.figma.js → form-textarea.figma.js} +4 -4
- package/dist/molecules/{figma/menu.figma.js → menu.figma.js} +1 -1
- package/dist/molecules/menu.js +6 -6
- package/dist/molecules/{figma/pagination.figma.js → pagination.figma.js} +1 -1
- package/dist/molecules/pagination.js +11 -11
- package/dist/molecules/phone-input.figma.js +62 -0
- package/dist/molecules/phone-input.js +4 -4
- package/dist/molecules/{figma/popover.figma.js → popover.figma.js} +1 -1
- package/dist/molecules/popover.js +2 -2
- package/dist/molecules/{figma/product-card.figma.js → product-card.figma.js} +1 -1
- package/dist/molecules/product-card.js +5 -5
- package/dist/molecules/{figma/radio-card.figma.js → radio-card.figma.js} +1 -1
- package/dist/molecules/radio-card.js +22 -22
- package/dist/molecules/{figma/radio-group.figma.js → radio-group.figma.js} +1 -1
- package/dist/molecules/radio-group.js +25 -25
- package/dist/molecules/{figma/search-form.figma.js → search-form.figma.js} +1 -1
- package/dist/molecules/{figma/select.figma.js → select.figma.js} +4 -4
- package/dist/molecules/select.js +9 -9
- package/dist/molecules/{figma/slider.figma.js → slider.figma.js} +7 -7
- package/dist/molecules/slider.js +2 -2
- package/dist/molecules/{figma/steps.figma.js → steps.figma.js} +1 -1
- package/dist/molecules/steps.js +6 -6
- package/dist/molecules/{figma/switch.figma.js → switch.figma.js} +1 -1
- package/dist/molecules/switch.js +3 -3
- package/dist/molecules/{figma/tabs.figma.js → tabs.figma.js} +1 -1
- package/dist/molecules/tabs.js +8 -8
- package/dist/molecules/{figma/toast.figma.js → toast.figma.js} +1 -1
- package/dist/molecules/toast.js +3 -3
- package/dist/molecules/{figma/tree-view.figma.js → tree-view.figma.js} +3 -3
- package/dist/molecules/tree-view.js +34 -34
- package/dist/src/atoms/badge.figma.d.ts.map +1 -0
- package/dist/src/atoms/button.figma.d.ts.map +1 -0
- package/dist/src/atoms/checkbox.figma.d.ts.map +1 -0
- package/dist/src/atoms/icon.figma.d.ts.map +1 -0
- package/dist/src/atoms/image.figma.d.ts.map +1 -0
- package/dist/src/atoms/input.figma.d.ts.map +1 -0
- package/dist/src/atoms/label.figma.d.ts.map +1 -0
- package/dist/src/atoms/link-button.figma.d.ts.map +1 -0
- package/dist/src/atoms/link.figma.d.ts.map +1 -0
- package/dist/src/atoms/numeric-input.figma.d.ts.map +1 -0
- package/dist/src/atoms/rating.figma.d.ts.map +1 -0
- package/dist/src/atoms/skeleton.figma.d.ts.map +1 -0
- package/dist/src/atoms/status-text.figma.d.ts.map +1 -0
- package/dist/src/atoms/textarea.figma.d.ts.map +1 -0
- package/dist/src/atoms/tooltip.figma.d.ts.map +1 -0
- package/dist/src/molecules/accordion.figma.d.ts.map +1 -0
- package/dist/src/molecules/breadcrumb.figma.d.ts.map +1 -0
- package/dist/src/molecules/carousel.figma.d.ts.map +1 -0
- package/dist/src/molecules/combobox.d.ts +3 -0
- package/dist/src/molecules/combobox.d.ts.map +1 -1
- package/dist/src/molecules/combobox.figma.d.ts.map +1 -0
- package/dist/src/molecules/dialog.figma.d.ts.map +1 -0
- package/dist/src/molecules/form-checkbox.figma.d.ts.map +1 -0
- package/dist/src/molecules/form-input.figma.d.ts.map +1 -0
- package/dist/src/molecules/form-numeric-input.figma.d.ts.map +1 -0
- package/dist/src/molecules/form-textarea.figma.d.ts.map +1 -0
- package/dist/src/molecules/menu.figma.d.ts.map +1 -0
- package/dist/src/molecules/pagination.figma.d.ts.map +1 -0
- package/dist/src/molecules/phone-input.figma.d.ts +2 -0
- package/dist/src/molecules/phone-input.figma.d.ts.map +1 -0
- package/dist/src/molecules/popover.figma.d.ts.map +1 -0
- package/dist/src/molecules/product-card.figma.d.ts.map +1 -0
- package/dist/src/molecules/radio-card.figma.d.ts.map +1 -0
- package/dist/src/molecules/radio-group.figma.d.ts.map +1 -0
- package/dist/src/molecules/search-form.figma.d.ts.map +1 -0
- package/dist/src/molecules/select.figma.d.ts.map +1 -0
- package/dist/src/molecules/slider.figma.d.ts.map +1 -0
- package/dist/src/molecules/steps.figma.d.ts.map +1 -0
- package/dist/src/molecules/switch.figma.d.ts.map +1 -0
- package/dist/src/molecules/tabs.figma.d.ts.map +1 -0
- package/dist/src/molecules/toast.figma.d.ts.map +1 -0
- package/dist/src/molecules/tree-view.figma.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/tokens/components/molecules/_accordion.css +14 -67
- package/src/tokens/components/molecules/_breadcrumb.css +4 -58
- package/src/tokens/components/molecules/_carousel.css +17 -58
- package/src/tokens/components/molecules/_color-select.css +16 -32
- package/src/tokens/components/molecules/_combobox.css +13 -95
- package/src/tokens/components/molecules/_dialog.css +11 -62
- package/src/tokens/components/molecules/_menu.css +10 -32
- package/src/tokens/components/molecules/_pagination.css +13 -46
- package/src/tokens/components/molecules/_phone-input.css +11 -49
- package/src/tokens/components/molecules/_popover.css +12 -38
- package/src/tokens/components/molecules/_product-card.css +19 -56
- package/src/tokens/components/molecules/_radio-card.css +4 -193
- package/src/tokens/components/molecules/_radio-group.css +7 -143
- package/src/tokens/components/molecules/_search-form.css +4 -14
- package/src/tokens/components/molecules/_select.css +15 -88
- package/src/tokens/components/molecules/_slider.css +14 -69
- package/src/tokens/components/molecules/_steps.css +13 -123
- package/src/tokens/components/molecules/_switch.css +7 -52
- package/src/tokens/components/molecules/_tabs.css +14 -66
- package/src/tokens/components/molecules/_toast.css +7 -54
- package/src/tokens/components/molecules/_tree-view.css +9 -55
- package/src/tokens/figma/dark/variables.css +512 -309
- package/src/tokens/figma/light/variables.css +511 -308
- package/src/tokens/figma/variables.css +511 -308
- package/dist/src/atoms/figma/badge.figma.d.ts.map +0 -1
- package/dist/src/atoms/figma/button.figma.d.ts.map +0 -1
- package/dist/src/atoms/figma/checkbox.figma.d.ts.map +0 -1
- package/dist/src/atoms/figma/icon.figma.d.ts.map +0 -1
- package/dist/src/atoms/figma/image.figma.d.ts.map +0 -1
- package/dist/src/atoms/figma/input.figma.d.ts.map +0 -1
- package/dist/src/atoms/figma/label.figma.d.ts.map +0 -1
- package/dist/src/atoms/figma/link-button.figma.d.ts.map +0 -1
- package/dist/src/atoms/figma/link.figma.d.ts.map +0 -1
- package/dist/src/atoms/figma/numeric-input.figma.d.ts.map +0 -1
- package/dist/src/atoms/figma/rating.figma.d.ts.map +0 -1
- package/dist/src/atoms/figma/skeleton.figma.d.ts.map +0 -1
- package/dist/src/atoms/figma/status-text.figma.d.ts.map +0 -1
- package/dist/src/atoms/figma/textarea.figma.d.ts.map +0 -1
- package/dist/src/atoms/figma/tooltip.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/accordion.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/breadcrumb.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/carousel.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/combobox.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/dialog.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/form-checkbox.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/form-input.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/form-numeric-input.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/form-textarea.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/menu.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/pagination.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/popover.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/product-card.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/radio-card.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/radio-group.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/search-form.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/select.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/slider.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/steps.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/switch.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/tabs.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/toast.figma.d.ts.map +0 -1
- package/dist/src/molecules/figma/tree-view.figma.d.ts.map +0 -1
- /package/dist/src/atoms/{figma/badge.figma.d.ts → badge.figma.d.ts} +0 -0
- /package/dist/src/atoms/{figma/button.figma.d.ts → button.figma.d.ts} +0 -0
- /package/dist/src/atoms/{figma/checkbox.figma.d.ts → checkbox.figma.d.ts} +0 -0
- /package/dist/src/atoms/{figma/icon.figma.d.ts → icon.figma.d.ts} +0 -0
- /package/dist/src/atoms/{figma/image.figma.d.ts → image.figma.d.ts} +0 -0
- /package/dist/src/atoms/{figma/input.figma.d.ts → input.figma.d.ts} +0 -0
- /package/dist/src/atoms/{figma/label.figma.d.ts → label.figma.d.ts} +0 -0
- /package/dist/src/atoms/{figma/link-button.figma.d.ts → link-button.figma.d.ts} +0 -0
- /package/dist/src/atoms/{figma/link.figma.d.ts → link.figma.d.ts} +0 -0
- /package/dist/src/atoms/{figma/numeric-input.figma.d.ts → numeric-input.figma.d.ts} +0 -0
- /package/dist/src/atoms/{figma/rating.figma.d.ts → rating.figma.d.ts} +0 -0
- /package/dist/src/atoms/{figma/skeleton.figma.d.ts → skeleton.figma.d.ts} +0 -0
- /package/dist/src/atoms/{figma/status-text.figma.d.ts → status-text.figma.d.ts} +0 -0
- /package/dist/src/atoms/{figma/textarea.figma.d.ts → textarea.figma.d.ts} +0 -0
- /package/dist/src/atoms/{figma/tooltip.figma.d.ts → tooltip.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/accordion.figma.d.ts → accordion.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/breadcrumb.figma.d.ts → breadcrumb.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/carousel.figma.d.ts → carousel.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/combobox.figma.d.ts → combobox.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/dialog.figma.d.ts → dialog.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/form-checkbox.figma.d.ts → form-checkbox.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/form-input.figma.d.ts → form-input.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/form-numeric-input.figma.d.ts → form-numeric-input.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/form-textarea.figma.d.ts → form-textarea.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/menu.figma.d.ts → menu.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/pagination.figma.d.ts → pagination.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/popover.figma.d.ts → popover.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/product-card.figma.d.ts → product-card.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/radio-card.figma.d.ts → radio-card.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/radio-group.figma.d.ts → radio-group.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/search-form.figma.d.ts → search-form.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/select.figma.d.ts → select.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/slider.figma.d.ts → slider.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/steps.figma.d.ts → steps.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/switch.figma.d.ts → switch.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/tabs.figma.d.ts → tabs.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/toast.figma.d.ts → toast.figma.d.ts} +0 -0
- /package/dist/src/molecules/{figma/tree-view.figma.d.ts → tree-view.figma.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { FormTextarea } from "
|
|
3
|
+
import { FormTextarea } from "./form-textarea.js";
|
|
4
4
|
code_connect.connect(FormTextarea, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=929-317", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { FormTextarea } from "@techsio/ui-kit/molecules/form-textarea"'
|
|
@@ -28,11 +28,11 @@ code_connect.connect(FormTextarea, "https://www.figma.com/design/12xb1pqXKwE2vbO
|
|
|
28
28
|
required: code_connect.boolean("required")
|
|
29
29
|
},
|
|
30
30
|
example: ({ size, validateStatus, disabled, required })=>/*#__PURE__*/ jsx(FormTextarea, {
|
|
31
|
+
disabled: disabled,
|
|
31
32
|
id: "field",
|
|
32
33
|
label: "Label",
|
|
34
|
+
required: required,
|
|
33
35
|
size: size,
|
|
34
|
-
validateStatus: validateStatus
|
|
35
|
-
disabled: disabled,
|
|
36
|
-
required: required
|
|
36
|
+
validateStatus: validateStatus
|
|
37
37
|
})
|
|
38
38
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Menu } from "
|
|
3
|
+
import { Menu } from "./menu.js";
|
|
4
4
|
code_connect.connect(Menu, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1183-26", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Menu } from "@libs/ui/molecules/menu"'
|
package/dist/molecules/menu.js
CHANGED
|
@@ -14,7 +14,7 @@ const menuVariants = tv({
|
|
|
14
14
|
],
|
|
15
15
|
content: [
|
|
16
16
|
"border border-menu-content-border bg-menu-content-bg",
|
|
17
|
-
"rounded-menu shadow-menu-content
|
|
17
|
+
"rounded-menu shadow-menu-content",
|
|
18
18
|
"p-menu-content",
|
|
19
19
|
"overflow-auto",
|
|
20
20
|
"focus-visible:outline-none",
|
|
@@ -28,17 +28,17 @@ const menuVariants = tv({
|
|
|
28
28
|
"px-menu-item-x py-menu-item-y",
|
|
29
29
|
"text-menu-item-fg",
|
|
30
30
|
"rounded-menu-item",
|
|
31
|
-
"hover:bg-menu-item-hover",
|
|
32
|
-
"focus:bg-menu-item-hover focus-visible:outline-none",
|
|
31
|
+
"hover:bg-menu-item-bg-hover",
|
|
32
|
+
"focus:bg-menu-item-bg-hover focus-visible:outline-none",
|
|
33
33
|
"data-[disabled]:cursor-not-allowed data-[disabled]:text-menu-fg-disabled",
|
|
34
|
-
"data-[highlighted]:bg-menu-item-hover",
|
|
34
|
+
"data-[highlighted]:bg-menu-item-bg-hover",
|
|
35
35
|
"transition-colors duration-200 motion-reduce:transition-none"
|
|
36
36
|
],
|
|
37
37
|
optionItem: [
|
|
38
38
|
"data-[state=checked]:font-semibold"
|
|
39
39
|
],
|
|
40
40
|
separator: [
|
|
41
|
-
"my-menu-separator",
|
|
41
|
+
"my-menu-separator-margin",
|
|
42
42
|
"h-menu-separator",
|
|
43
43
|
"bg-menu-separator-bg"
|
|
44
44
|
],
|
|
@@ -46,7 +46,7 @@ const menuVariants = tv({
|
|
|
46
46
|
"flex-grow"
|
|
47
47
|
],
|
|
48
48
|
itemIcon: [
|
|
49
|
-
"text-menu-item-icon-fg text-menu-item-icon
|
|
49
|
+
"text-menu-item-icon-fg text-menu-item-icon"
|
|
50
50
|
],
|
|
51
51
|
submenuIndicator: [
|
|
52
52
|
"ms-menu-submenu-indicator text-menu-submenu-indicator-fg"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Pagination } from "
|
|
3
|
+
import { Pagination } from "./pagination.js";
|
|
4
4
|
code_connect.connect(Pagination, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1143-138", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Pagination } from "@libs/ui/molecules/pagination"'
|
|
@@ -13,14 +13,14 @@ const paginationVariants = tv({
|
|
|
13
13
|
],
|
|
14
14
|
item: [
|
|
15
15
|
"grid cursor-pointer",
|
|
16
|
-
'has-[[data-part="ellipsis"]]:bg-pagination-neutral
|
|
17
|
-
'has-[[data-part="compact-text"]]:bg-pagination-neutral
|
|
16
|
+
'has-[[data-part="ellipsis"]]:bg-pagination-bg-neutral',
|
|
17
|
+
'has-[[data-part="compact-text"]]:bg-pagination-bg-neutral'
|
|
18
18
|
],
|
|
19
19
|
link: [
|
|
20
20
|
"focus-visible:outline-(style:--default-ring-style) focus-visible:outline-(length:--default-ring-width)",
|
|
21
21
|
"focus-visible:outline-pagination-ring",
|
|
22
22
|
"focus-visible:outline-offset-(length:--default-ring-offset)",
|
|
23
|
-
"border-(length:--border-pagination-width) rounded-pagination border-pagination-border",
|
|
23
|
+
"border-(length:--border-pagination-width) rounded-pagination border-pagination-border-base",
|
|
24
24
|
"aspect-square",
|
|
25
25
|
"data-disabled:text-pagination-fg-disabled data-disabled:hover:bg-pagination-bg-disabled",
|
|
26
26
|
"data-disabled:bg-pagination-bg-disabled",
|
|
@@ -45,25 +45,25 @@ const paginationVariants = tv({
|
|
|
45
45
|
variants: {
|
|
46
46
|
variant: {
|
|
47
47
|
filled: {
|
|
48
|
-
item: "bg-pagination-bg",
|
|
48
|
+
item: "bg-pagination-bg-base",
|
|
49
49
|
link: [
|
|
50
|
-
"data-selected:border-pagination-border-active data-selected:bg-pagination-bg-active data-selected:text-pagination-filled-
|
|
50
|
+
"data-selected:border-pagination-border-active data-selected:bg-pagination-bg-active data-selected:text-pagination-fg-filled-active",
|
|
51
51
|
"hover:border-pagination-border-hover hover:bg-pagination-bg-hover",
|
|
52
|
-
"hover:text-pagination-filled-
|
|
52
|
+
"hover:text-pagination-fg-filled-active"
|
|
53
53
|
]
|
|
54
54
|
},
|
|
55
55
|
outlined: {
|
|
56
|
-
item: "bg-pagination-bg",
|
|
56
|
+
item: "bg-pagination-bg-base",
|
|
57
57
|
link: [
|
|
58
|
-
"data-selected:border-pagination-border-active data-selected:text-pagination-outlined-
|
|
59
|
-
"hover:border-pagination-border-hover hover:text-pagination-outlined-
|
|
58
|
+
"data-selected:border-pagination-border-active data-selected:text-pagination-fg-outlined-active",
|
|
59
|
+
"hover:border-pagination-border-hover hover:text-pagination-fg-outlined-active"
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
62
|
minimal: {
|
|
63
63
|
link: [
|
|
64
64
|
"border-transparent",
|
|
65
|
-
"data-selected:text-pagination-minimal-
|
|
66
|
-
"hover:text-pagination-minimal-
|
|
65
|
+
"data-selected:text-pagination-fg-minimal-active",
|
|
66
|
+
"hover:text-pagination-fg-minimal-active"
|
|
67
67
|
]
|
|
68
68
|
}
|
|
69
69
|
},
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { PhoneInput } from "./phone-input.js";
|
|
4
|
+
code_connect.connect(PhoneInput, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=2541-171", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { PhoneInput } from "@techsio/ui-kit/molecules/phone-input"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
}),
|
|
14
|
+
validateStatus: code_connect["enum"]("state", {
|
|
15
|
+
default: "default",
|
|
16
|
+
error: "error",
|
|
17
|
+
success: "success",
|
|
18
|
+
warning: "warning",
|
|
19
|
+
disabled: "default",
|
|
20
|
+
readonly: "default"
|
|
21
|
+
}),
|
|
22
|
+
disabled: code_connect["enum"]("state", {
|
|
23
|
+
default: false,
|
|
24
|
+
error: false,
|
|
25
|
+
success: false,
|
|
26
|
+
warning: false,
|
|
27
|
+
disabled: true,
|
|
28
|
+
readonly: false
|
|
29
|
+
}),
|
|
30
|
+
readOnly: code_connect["enum"]("state", {
|
|
31
|
+
default: false,
|
|
32
|
+
error: false,
|
|
33
|
+
success: false,
|
|
34
|
+
warning: false,
|
|
35
|
+
disabled: false,
|
|
36
|
+
readonly: true
|
|
37
|
+
}),
|
|
38
|
+
required: code_connect.boolean("required")
|
|
39
|
+
},
|
|
40
|
+
example: ({ size, validateStatus, disabled, readOnly, required })=>/*#__PURE__*/ jsxs(PhoneInput, {
|
|
41
|
+
defaultCountry: "SK",
|
|
42
|
+
disabled: disabled,
|
|
43
|
+
readOnly: readOnly,
|
|
44
|
+
required: required,
|
|
45
|
+
size: size,
|
|
46
|
+
validateStatus: validateStatus,
|
|
47
|
+
children: [
|
|
48
|
+
/*#__PURE__*/ jsx(PhoneInput.Label, {
|
|
49
|
+
children: "Phone number"
|
|
50
|
+
}),
|
|
51
|
+
/*#__PURE__*/ jsxs(PhoneInput.Control, {
|
|
52
|
+
children: [
|
|
53
|
+
/*#__PURE__*/ jsx(PhoneInput.CountryPicker, {}),
|
|
54
|
+
/*#__PURE__*/ jsx(PhoneInput.Input, {})
|
|
55
|
+
]
|
|
56
|
+
}),
|
|
57
|
+
/*#__PURE__*/ jsx(PhoneInput.StatusText, {
|
|
58
|
+
children: "Helper text"
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
})
|
|
62
|
+
});
|
|
@@ -47,7 +47,7 @@ const defaultPhoneInputCountries = [
|
|
|
47
47
|
const phoneInputVariants = tv({
|
|
48
48
|
slots: {
|
|
49
49
|
root: [
|
|
50
|
-
"relative flex w-full flex-col gap-phone-input
|
|
50
|
+
"relative flex w-full flex-col gap-phone-input"
|
|
51
51
|
],
|
|
52
52
|
control: [
|
|
53
53
|
"form-control-base",
|
|
@@ -97,13 +97,13 @@ const phoneInputVariants = tv({
|
|
|
97
97
|
"font-medium text-phone-input-country-flag uppercase"
|
|
98
98
|
],
|
|
99
99
|
countryCallingCode: [
|
|
100
|
-
"font-medium text-phone-input-country-calling-code"
|
|
100
|
+
"font-medium text-phone-input-country-calling-code-fg"
|
|
101
101
|
],
|
|
102
102
|
input: [
|
|
103
103
|
"min-w-0 flex-1 border-0",
|
|
104
104
|
"bg-phone-input-input-bg-base",
|
|
105
105
|
"text-phone-input-fg",
|
|
106
|
-
"placeholder:text-phone-input-placeholder",
|
|
106
|
+
"placeholder:text-phone-input-fg-placeholder",
|
|
107
107
|
"hover:bg-phone-input-input-bg-hover",
|
|
108
108
|
"focus:bg-phone-input-input-bg-focus",
|
|
109
109
|
"focus-visible:outline-none",
|
|
@@ -113,7 +113,7 @@ const phoneInputVariants = tv({
|
|
|
113
113
|
"flex min-w-0 items-center gap-phone-input-item"
|
|
114
114
|
],
|
|
115
115
|
itemMeta: [
|
|
116
|
-
"shrink-0 text-phone-input-item-meta"
|
|
116
|
+
"shrink-0 text-phone-input-item-meta-fg"
|
|
117
117
|
]
|
|
118
118
|
},
|
|
119
119
|
variants: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Popover } from "
|
|
3
|
+
import { Popover } from "./popover.js";
|
|
4
4
|
code_connect.connect(Popover, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1076-666", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Popover } from "@libs/ui/molecules/popover"'
|
|
@@ -28,10 +28,10 @@ const popoverVariants = tv({
|
|
|
28
28
|
title: [
|
|
29
29
|
"font-popover-title",
|
|
30
30
|
"leading-none",
|
|
31
|
-
"mb-popover-title
|
|
31
|
+
"mb-popover-title"
|
|
32
32
|
],
|
|
33
33
|
description: [
|
|
34
|
-
"text-popover-description-fg text-popover-description
|
|
34
|
+
"text-popover-description-fg text-popover-description",
|
|
35
35
|
"leading-normal"
|
|
36
36
|
],
|
|
37
37
|
closeTrigger: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { ProductCard } from "
|
|
3
|
+
import { ProductCard } from "./product-card.js";
|
|
4
4
|
code_connect.connect(ProductCard, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1182-51", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { ProductCard } from "@libs/ui/molecules/product-card"'
|
|
@@ -19,21 +19,21 @@ const productCardVariants = tv({
|
|
|
19
19
|
"data-[stock=limited-stock]:text-product-card-stock-fg-limited-stock",
|
|
20
20
|
"data-[stock=out-of-stock]:text-product-card-stock-fg-out-of-stock"
|
|
21
21
|
],
|
|
22
|
-
badgesSlot: "flex flex-wrap gap-product-card-
|
|
22
|
+
badgesSlot: "flex flex-wrap gap-product-card-badges",
|
|
23
23
|
ratingSlot: "flex items-center",
|
|
24
|
-
actionsSlot: "flex flex-wrap gap-product-card-
|
|
24
|
+
actionsSlot: "flex flex-wrap gap-product-card-actions",
|
|
25
25
|
button: ""
|
|
26
26
|
},
|
|
27
27
|
variants: {
|
|
28
28
|
buttonVariant: {
|
|
29
29
|
cart: {
|
|
30
|
-
button: "w-max bg-product-card-button-cart-bg text-product-card-button-cart-fg hover:bg-product-card-button-cart-bg-hover"
|
|
30
|
+
button: "w-max bg-product-card-button-cart-bg-base text-product-card-button-cart-fg hover:bg-product-card-button-cart-bg-hover"
|
|
31
31
|
},
|
|
32
32
|
detail: {
|
|
33
|
-
button: "w-max bg-product-card-button-detail-bg text-product-card-button-detail-fg hover:bg-product-card-button-detail-bg-hover"
|
|
33
|
+
button: "w-max bg-product-card-button-detail-bg-base text-product-card-button-detail-fg hover:bg-product-card-button-detail-bg-hover"
|
|
34
34
|
},
|
|
35
35
|
wishlist: {
|
|
36
|
-
button: "w-max bg-product-card-button-wishlist-bg text-product-card-button-wishlist-fg hover:bg-product-card-button-wishlist-bg-hover"
|
|
36
|
+
button: "w-max bg-product-card-button-wishlist-bg-base text-product-card-button-wishlist-fg hover:bg-product-card-button-wishlist-bg-hover"
|
|
37
37
|
},
|
|
38
38
|
custom: {}
|
|
39
39
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { RadioCard } from "
|
|
3
|
+
import { RadioCard } from "./radio-card.js";
|
|
4
4
|
code_connect.connect(RadioCard, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1151-66", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { RadioCard } from "@libs/ui/molecules/radio-card"'
|
|
@@ -80,16 +80,16 @@ const radioCardVariants = tv({
|
|
|
80
80
|
],
|
|
81
81
|
itemAddon: [
|
|
82
82
|
"border-t-(length:--border-width-radio-card-addon)",
|
|
83
|
-
"border-radio-card-
|
|
84
|
-
"font-radio-card-
|
|
85
|
-
"text-radio-card-
|
|
83
|
+
"border-radio-card-addon-border",
|
|
84
|
+
"font-radio-card-addon",
|
|
85
|
+
"text-radio-card-addon-fg",
|
|
86
86
|
"transition-colors duration-200 motion-reduce:transition-none",
|
|
87
|
-
"data-disabled:border-radio-card-
|
|
88
|
-
"data-disabled:bg-radio-card-
|
|
89
|
-
"data-disabled:text-radio-card-
|
|
90
|
-
"data-disabled:data-[state=checked]:border-radio-card-
|
|
91
|
-
"data-disabled:data-[state=checked]:bg-radio-card-
|
|
92
|
-
"data-disabled:data-[state=checked]:text-radio-card-
|
|
87
|
+
"data-disabled:border-radio-card-addon-border-disabled",
|
|
88
|
+
"data-disabled:bg-radio-card-addon-bg-disabled",
|
|
89
|
+
"data-disabled:text-radio-card-addon-fg-disabled",
|
|
90
|
+
"data-disabled:data-[state=checked]:border-radio-card-addon-border-disabled",
|
|
91
|
+
"data-disabled:data-[state=checked]:bg-radio-card-addon-bg-disabled",
|
|
92
|
+
"data-disabled:data-[state=checked]:text-radio-card-addon-fg-disabled"
|
|
93
93
|
],
|
|
94
94
|
hiddenInput: "sr-only"
|
|
95
95
|
},
|
|
@@ -129,8 +129,8 @@ const radioCardVariants = tv({
|
|
|
129
129
|
"data-[state=checked]:text-radio-card-item-indicator-content-fg-subtle-checked"
|
|
130
130
|
],
|
|
131
131
|
itemAddon: [
|
|
132
|
-
"data-[state=checked]:border-radio-card-
|
|
133
|
-
"data-[state=checked]:text-radio-card-
|
|
132
|
+
"data-[state=checked]:border-radio-card-addon-border-subtle-checked",
|
|
133
|
+
"data-[state=checked]:text-radio-card-addon-fg-subtle-checked"
|
|
134
134
|
]
|
|
135
135
|
},
|
|
136
136
|
solid: {
|
|
@@ -154,14 +154,14 @@ const radioCardVariants = tv({
|
|
|
154
154
|
"data-[state=checked]:text-radio-card-item-indicator-content-fg-solid-checked"
|
|
155
155
|
],
|
|
156
156
|
itemAddon: [
|
|
157
|
-
"data-[state=checked]:border-radio-card-
|
|
158
|
-
"data-[state=checked]:text-radio-card-
|
|
157
|
+
"data-[state=checked]:border-radio-card-addon-border-solid-checked",
|
|
158
|
+
"data-[state=checked]:text-radio-card-addon-fg-solid-checked"
|
|
159
159
|
]
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
162
|
size: {
|
|
163
163
|
sm: {
|
|
164
|
-
root: "gap-radio-card-
|
|
164
|
+
root: "gap-radio-card-stack-sm",
|
|
165
165
|
itemControl: [
|
|
166
166
|
"gap-radio-card-item-control-sm",
|
|
167
167
|
"p-radio-card-item-control-sm"
|
|
@@ -172,12 +172,12 @@ const radioCardVariants = tv({
|
|
|
172
172
|
itemIndicator: "size-radio-card-indicator-sm",
|
|
173
173
|
itemIndicatorMark: "size-radio-card-indicator-mark-sm",
|
|
174
174
|
itemAddon: [
|
|
175
|
-
"p-radio-card-
|
|
176
|
-
"text-radio-card-
|
|
175
|
+
"p-radio-card-addon-sm",
|
|
176
|
+
"text-radio-card-addon-sm"
|
|
177
177
|
]
|
|
178
178
|
},
|
|
179
179
|
md: {
|
|
180
|
-
root: "gap-radio-card-
|
|
180
|
+
root: "gap-radio-card-stack-md",
|
|
181
181
|
itemControl: [
|
|
182
182
|
"gap-radio-card-item-control-md",
|
|
183
183
|
"p-radio-card-item-control-md"
|
|
@@ -188,12 +188,12 @@ const radioCardVariants = tv({
|
|
|
188
188
|
itemIndicator: "size-radio-card-indicator-md",
|
|
189
189
|
itemIndicatorMark: "size-radio-card-indicator-mark-md",
|
|
190
190
|
itemAddon: [
|
|
191
|
-
"p-radio-card-
|
|
192
|
-
"text-radio-card-
|
|
191
|
+
"p-radio-card-addon-md",
|
|
192
|
+
"text-radio-card-addon-md"
|
|
193
193
|
]
|
|
194
194
|
},
|
|
195
195
|
lg: {
|
|
196
|
-
root: "gap-radio-card-
|
|
196
|
+
root: "gap-radio-card-stack-lg",
|
|
197
197
|
itemControl: [
|
|
198
198
|
"gap-radio-card-item-control-lg",
|
|
199
199
|
"p-radio-card-item-control-lg"
|
|
@@ -204,8 +204,8 @@ const radioCardVariants = tv({
|
|
|
204
204
|
itemIndicator: "size-radio-card-indicator-lg",
|
|
205
205
|
itemIndicatorMark: "size-radio-card-indicator-mark-lg",
|
|
206
206
|
itemAddon: [
|
|
207
|
-
"p-radio-card-
|
|
208
|
-
"text-radio-card-
|
|
207
|
+
"p-radio-card-addon-lg",
|
|
208
|
+
"text-radio-card-addon-lg"
|
|
209
209
|
]
|
|
210
210
|
}
|
|
211
211
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { RadioGroup } from "
|
|
3
|
+
import { RadioGroup } from "./radio-group.js";
|
|
4
4
|
code_connect.connect(RadioGroup, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1149-66", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { RadioGroup } from "@libs/ui/molecules/radio-group"'
|
|
@@ -26,18 +26,18 @@ const radioGroupVariants = tv({
|
|
|
26
26
|
"row-start-1 self-center",
|
|
27
27
|
"inline-grid shrink-0 place-items-center rounded-radio-group-control",
|
|
28
28
|
"border-(length:--border-width-radio-group)",
|
|
29
|
-
"border-radio-group-item-
|
|
30
|
-
"bg-radio-group-item-
|
|
29
|
+
"border-radio-group-item-border-base",
|
|
30
|
+
"bg-radio-group-item-bg",
|
|
31
31
|
"transition-colors duration-200 motion-reduce:transition-none",
|
|
32
|
-
"data-hover:bg-radio-group-item-
|
|
33
|
-
"data-hover:border-radio-group-item-
|
|
34
|
-
"data-disabled:bg-radio-group-item-
|
|
35
|
-
"data-disabled:border-radio-group-item-
|
|
32
|
+
"data-hover:bg-radio-group-item-bg-hover",
|
|
33
|
+
"data-hover:border-radio-group-item-border-hover",
|
|
34
|
+
"data-disabled:bg-radio-group-item-bg-disabled",
|
|
35
|
+
"data-disabled:border-radio-group-item-border-disabled",
|
|
36
36
|
"data-focus-visible:outline-(style:--default-ring-style)",
|
|
37
37
|
"data-focus-visible:outline-(length:--default-ring-width)",
|
|
38
38
|
"data-focus-visible:outline-radio-group-ring",
|
|
39
39
|
"data-focus-visible:outline-offset-(length:--default-ring-offset)",
|
|
40
|
-
"data-invalid:border-radio-group-item-
|
|
40
|
+
"data-invalid:border-radio-group-item-border-error",
|
|
41
41
|
"data-invalid:outline-offset-(length:--default-ring-offset)"
|
|
42
42
|
],
|
|
43
43
|
itemContent: [
|
|
@@ -64,36 +64,36 @@ const radioGroupVariants = tv({
|
|
|
64
64
|
variant: {
|
|
65
65
|
outline: {
|
|
66
66
|
itemControl: [
|
|
67
|
-
"data-[state=checked]:bg-radio-group-item-
|
|
68
|
-
"data-[state=checked]:border-radio-group-item-
|
|
69
|
-
"data-hover:data-[state=checked]:bg-radio-group-item-
|
|
70
|
-
"data-hover:data-[state=checked]:border-radio-group-item-
|
|
67
|
+
"data-[state=checked]:bg-radio-group-item-bg-outline-checked",
|
|
68
|
+
"data-[state=checked]:border-radio-group-item-border-outline-checked",
|
|
69
|
+
"data-hover:data-[state=checked]:bg-radio-group-item-bg-outline-checked-hover",
|
|
70
|
+
"data-hover:data-[state=checked]:border-radio-group-item-border-outline-checked-hover"
|
|
71
71
|
],
|
|
72
72
|
itemIndicator: "text-radio-group-item-indicator-outline"
|
|
73
73
|
},
|
|
74
74
|
subtle: {
|
|
75
75
|
itemControl: [
|
|
76
|
-
"data-[state=checked]:bg-radio-group-item-
|
|
77
|
-
"data-[state=checked]:border-radio-group-item-
|
|
78
|
-
"data-hover:data-[state=checked]:bg-radio-group-item-
|
|
79
|
-
"data-hover:data-[state=checked]:border-radio-group-item-
|
|
76
|
+
"data-[state=checked]:bg-radio-group-item-bg-subtle-checked",
|
|
77
|
+
"data-[state=checked]:border-radio-group-item-border-subtle-checked",
|
|
78
|
+
"data-hover:data-[state=checked]:bg-radio-group-item-bg-subtle-checked-hover",
|
|
79
|
+
"data-hover:data-[state=checked]:border-radio-group-item-border-subtle-checked-hover"
|
|
80
80
|
],
|
|
81
81
|
itemIndicator: "text-radio-group-item-indicator-subtle"
|
|
82
82
|
},
|
|
83
83
|
solid: {
|
|
84
84
|
itemControl: [
|
|
85
|
-
"data-[state=checked]:bg-radio-group-item-
|
|
86
|
-
"data-[state=checked]:border-radio-group-item-
|
|
87
|
-
"data-hover:data-[state=checked]:bg-radio-group-item-
|
|
88
|
-
"data-hover:data-[state=checked]:border-radio-group-item-
|
|
85
|
+
"data-[state=checked]:bg-radio-group-item-bg-solid-checked",
|
|
86
|
+
"data-[state=checked]:border-radio-group-item-border-solid-checked",
|
|
87
|
+
"data-hover:data-[state=checked]:bg-radio-group-item-bg-solid-checked-hover",
|
|
88
|
+
"data-hover:data-[state=checked]:border-radio-group-item-border-solid-checked-hover"
|
|
89
89
|
],
|
|
90
90
|
itemIndicator: "text-radio-group-item-indicator-solid"
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
size: {
|
|
94
94
|
sm: {
|
|
95
|
-
root: "gap-radio-group-
|
|
96
|
-
itemGroup: "data-[orientation=horizontal]:gap-radio-group-
|
|
95
|
+
root: "gap-radio-group-stack-sm",
|
|
96
|
+
itemGroup: "data-[orientation=horizontal]:gap-radio-group-stack-horizontal-sm data-[orientation=vertical]:gap-radio-group-stack-vertical-sm",
|
|
97
97
|
item: "gap-x-radio-group-item-sm",
|
|
98
98
|
itemControl: "size-radio-group-control-sm",
|
|
99
99
|
itemContent: "gap-radio-group-item-content-sm",
|
|
@@ -102,8 +102,8 @@ const radioGroupVariants = tv({
|
|
|
102
102
|
itemDescription: "text-radio-group-item-description-sm"
|
|
103
103
|
},
|
|
104
104
|
md: {
|
|
105
|
-
root: "gap-radio-group-
|
|
106
|
-
itemGroup: "data-[orientation=horizontal]:gap-radio-group-
|
|
105
|
+
root: "gap-radio-group-stack-md",
|
|
106
|
+
itemGroup: "data-[orientation=horizontal]:gap-radio-group-stack-horizontal-md data-[orientation=vertical]:gap-radio-group-stack-vertical-md",
|
|
107
107
|
item: "gap-x-radio-group-item-md",
|
|
108
108
|
itemControl: "size-radio-group-control-md",
|
|
109
109
|
itemContent: "gap-radio-group-item-content-md",
|
|
@@ -112,8 +112,8 @@ const radioGroupVariants = tv({
|
|
|
112
112
|
itemDescription: "text-radio-group-item-description-md"
|
|
113
113
|
},
|
|
114
114
|
lg: {
|
|
115
|
-
root: "gap-radio-group-
|
|
116
|
-
itemGroup: "data-[orientation=horizontal]:gap-radio-group-
|
|
115
|
+
root: "gap-radio-group-stack-lg",
|
|
116
|
+
itemGroup: "data-[orientation=horizontal]:gap-radio-group-stack-horizontal-lg data-[orientation=vertical]:gap-radio-group-stack-vertical-lg",
|
|
117
117
|
item: "gap-x-radio-group-item-lg",
|
|
118
118
|
itemControl: "size-radio-group-control-lg",
|
|
119
119
|
itemContent: "gap-radio-group-item-content-lg",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { SearchForm } from "
|
|
3
|
+
import { SearchForm } from "./search-form.js";
|
|
4
4
|
code_connect.connect(SearchForm, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1146-48", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { SearchForm } from "@libs/ui/molecules/search-form"'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Select } from "
|
|
3
|
+
import { Select } from "./select.js";
|
|
4
4
|
code_connect.connect(Select, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=761-571", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Select } from "@techsio/ui-kit/molecules/select"'
|
|
@@ -31,11 +31,11 @@ code_connect.connect(Select, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3nt
|
|
|
31
31
|
required: code_connect.boolean("required")
|
|
32
32
|
},
|
|
33
33
|
example: ({ size, validateStatus, disabled, required })=>/*#__PURE__*/ jsxs(Select, {
|
|
34
|
-
size: size,
|
|
35
|
-
validateStatus: validateStatus,
|
|
36
34
|
disabled: disabled,
|
|
37
|
-
required: required,
|
|
38
35
|
items: [],
|
|
36
|
+
required: required,
|
|
37
|
+
size: size,
|
|
38
|
+
validateStatus: validateStatus,
|
|
39
39
|
children: [
|
|
40
40
|
/*#__PURE__*/ jsx(Select.Label, {
|
|
41
41
|
children: "Label"
|
package/dist/molecules/select.js
CHANGED
|
@@ -11,7 +11,7 @@ const selectVariants = tv({
|
|
|
11
11
|
slots: {
|
|
12
12
|
root: [
|
|
13
13
|
"relative",
|
|
14
|
-
"flex flex-col gap-select
|
|
14
|
+
"flex flex-col gap-select",
|
|
15
15
|
"w-full"
|
|
16
16
|
],
|
|
17
17
|
control: [
|
|
@@ -40,15 +40,15 @@ const selectVariants = tv({
|
|
|
40
40
|
"data-[disabled]:text-select-fg-disabled",
|
|
41
41
|
"data-[disabled]:border-select-border-disabled",
|
|
42
42
|
"data-[validation=error]:border-(length:--border-width-validation)",
|
|
43
|
-
"data-[validation=error]:border-select-
|
|
43
|
+
"data-[validation=error]:border-select-border-error data-[validation=error]:outline-select-border-error",
|
|
44
44
|
"data-[validation=error]:outline-(style:--default-ring-style) data-[validation=error]:outline-(length:--default-ring-width)",
|
|
45
45
|
"data-[validation=error]:outline-offset-(length:--default-ring-offset)",
|
|
46
46
|
"data-[validation=success]:border-(length:--border-width-validation)",
|
|
47
|
-
"data-[validation=success]:border-select-success data-[validation=success]:outline-select-success",
|
|
47
|
+
"data-[validation=success]:border-select-border-success data-[validation=success]:outline-select-border-success",
|
|
48
48
|
"data-[validation=success]:outline-(style:--default-ring-style) data-[validation=success]:outline-(length:--default-ring-width)",
|
|
49
49
|
"data-[validation=success]:outline-offset-(length:--default-ring-offset)",
|
|
50
50
|
"data-[validation=warning]:border-(length:--border-width-validation)",
|
|
51
|
-
"data-[validation=warning]:border-select-warning data-[validation=warning]:outline-select-warning",
|
|
51
|
+
"data-[validation=warning]:border-select-border-warning data-[validation=warning]:outline-select-border-warning",
|
|
52
52
|
"data-[validation=warning]:outline-(style:--default-ring-style) data-[validation=warning]:outline-(length:--default-ring-width)",
|
|
53
53
|
"data-[validation=warning]:outline-offset-(length:--default-ring-offset)",
|
|
54
54
|
"transition-colors duration-200 motion-reduce:transition-none"
|
|
@@ -78,13 +78,13 @@ const selectVariants = tv({
|
|
|
78
78
|
],
|
|
79
79
|
item: [
|
|
80
80
|
"flex items-center justify-between",
|
|
81
|
-
"cursor-pointer bg-select-item-bg",
|
|
81
|
+
"cursor-pointer bg-select-item-bg-base",
|
|
82
82
|
"p-select-item",
|
|
83
|
-
"text-select-item-fg",
|
|
83
|
+
"text-select-item-fg-base",
|
|
84
84
|
"hover:bg-select-item-bg-hover",
|
|
85
85
|
"data-[highlighted]:bg-select-item-bg-hover",
|
|
86
86
|
"data-[state=checked]:bg-select-item-bg-selected",
|
|
87
|
-
"data-[state=checked]:text-select-item-selected
|
|
87
|
+
"data-[state=checked]:text-select-item-fg-selected",
|
|
88
88
|
"data-[disabled]:cursor-not-allowed data-[disabled]:text-select-fg-disabled",
|
|
89
89
|
"transition-colors duration-200 motion-reduce:transition-none"
|
|
90
90
|
],
|
|
@@ -98,7 +98,7 @@ const selectVariants = tv({
|
|
|
98
98
|
""
|
|
99
99
|
],
|
|
100
100
|
itemGroupLabel: [
|
|
101
|
-
"px-select-item",
|
|
101
|
+
"px-select-item-x",
|
|
102
102
|
"font-medium text-select-fg-disabled"
|
|
103
103
|
],
|
|
104
104
|
valueText: [
|
|
@@ -255,7 +255,7 @@ Select.Trigger = function({ children, className, size: sizeProp, iconSize, ref,
|
|
|
255
255
|
children: [
|
|
256
256
|
children,
|
|
257
257
|
/*#__PURE__*/ jsx(Icon, {
|
|
258
|
-
className: `text-select-trigger group-hover:text-select-trigger-hover motion-safe:transition-[transform,color] motion-safe:duration-200 motion-reduce:transition-none ${api.open ? "rotate-180" : "rotate-0"}`,
|
|
258
|
+
className: `text-select-trigger-fg-base group-hover:text-select-trigger-fg-hover motion-safe:transition-[transform,color] motion-safe:duration-200 motion-reduce:transition-none ${api.open ? "rotate-180" : "rotate-0"}`,
|
|
259
259
|
icon: "token-icon-select-indicator",
|
|
260
260
|
size: iconSize ?? chevronIconSize
|
|
261
261
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Slider } from "
|
|
3
|
+
import { Slider } from "./slider.js";
|
|
4
4
|
code_connect.connect(Slider, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1141-48", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Slider } from "@techsio/ui-kit/molecules/slider"'
|
|
@@ -18,13 +18,13 @@ code_connect.connect(Slider, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3nt
|
|
|
18
18
|
})
|
|
19
19
|
},
|
|
20
20
|
example: ({ size, disabled, validateStatus })=>/*#__PURE__*/ jsx(Slider, {
|
|
21
|
-
size: size,
|
|
22
|
-
disabled: disabled,
|
|
23
|
-
validateStatus: validateStatus,
|
|
24
|
-
min: 0,
|
|
25
|
-
max: 100,
|
|
26
21
|
defaultValue: [
|
|
27
22
|
50
|
|
28
|
-
]
|
|
23
|
+
],
|
|
24
|
+
disabled: disabled,
|
|
25
|
+
max: 100,
|
|
26
|
+
min: 0,
|
|
27
|
+
size: size,
|
|
28
|
+
validateStatus: validateStatus
|
|
29
29
|
})
|
|
30
30
|
});
|