@techsio/ui-kit 0.10.1 → 0.12.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/organisms/footer.figma.js +51 -0
- package/dist/organisms/footer.js +11 -11
- package/dist/organisms/gallery.figma.js +34 -0
- package/dist/organisms/header.figma.js +58 -0
- package/dist/organisms/table.figma.js +87 -0
- package/dist/organisms/table.js +6 -6
- 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/dist/src/organisms/footer.d.ts.map +1 -1
- package/dist/src/organisms/footer.figma.d.ts +2 -0
- package/dist/src/organisms/footer.figma.d.ts.map +1 -0
- package/dist/src/organisms/gallery.figma.d.ts +2 -0
- package/dist/src/organisms/gallery.figma.d.ts.map +1 -0
- package/dist/src/organisms/header.figma.d.ts +2 -0
- package/dist/src/organisms/header.figma.d.ts.map +1 -0
- package/dist/src/organisms/table.figma.d.ts +2 -0
- package/dist/src/organisms/table.figma.d.ts.map +1 -0
- package/package.json +22 -22
- 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/components/organisms/_footer.css +8 -82
- package/src/tokens/components/organisms/_gallery.css +11 -33
- package/src/tokens/components/organisms/_header.css +11 -80
- package/src/tokens/components/organisms/_table.css +15 -61
- package/src/tokens/figma/dark/variables.css +521 -314
- package/src/tokens/figma/light/variables.css +520 -313
- package/src/tokens/figma/variables.css +520 -313
- 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 { Badge } from "
|
|
3
|
+
import { Badge } from "./badge.js";
|
|
4
4
|
code_connect.connect(Badge, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1-7735", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Badge } from "@techsio/ui-kit/atoms/badge"'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Button } from "
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
4
|
code_connect.connect(Button, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1-5627", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Button } from "@techsio/ui-kit/atoms/button"'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Checkbox } from "
|
|
3
|
+
import { Checkbox } from "./checkbox.js";
|
|
4
4
|
code_connect.connect(Checkbox, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=428-9", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Checkbox } from "@techsio/ui-kit/atoms/checkbox"'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Icon } from "
|
|
3
|
+
import { Icon } from "./icon.js";
|
|
4
4
|
code_connect.connect(Icon, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=365-170", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Icon } from "@techsio/ui-kit/atoms/icon"'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Image } from "
|
|
3
|
+
import { Image } from "./image.js";
|
|
4
4
|
code_connect.connect(Image, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=484-19", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Image } from "@techsio/ui-kit/atoms/image"'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Input } from "
|
|
3
|
+
import { Input } from "./input.js";
|
|
4
4
|
code_connect.connect(Input, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=304-107", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Input } from "@techsio/ui-kit/atoms/input"'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Label } from "
|
|
3
|
+
import { Label } from "./label.js";
|
|
4
4
|
code_connect.connect(Label, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1-7840", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Label } from "@techsio/ui-kit/atoms/label"'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { LinkButton } from "
|
|
3
|
+
import { LinkButton } from "./link-button.js";
|
|
4
4
|
code_connect.connect(LinkButton, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1358-1944", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { LinkButton } from "@techsio/ui-kit/atoms/link-button"'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Link } from "
|
|
3
|
+
import { Link } from "./link.js";
|
|
4
4
|
code_connect.connect(Link, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1355-13", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Link } from "@techsio/ui-kit/atoms/link"'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { NumericInput } from "
|
|
3
|
+
import { NumericInput } from "./numeric-input.js";
|
|
4
4
|
code_connect.connect(NumericInput, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=607-107", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { NumericInput } from "@techsio/ui-kit/atoms/numeric-input"'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Rating } from "
|
|
3
|
+
import { Rating } from "./rating.js";
|
|
4
4
|
code_connect.connect(Rating, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=521-336", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Rating } from "@techsio/ui-kit/atoms/rating"'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Skeleton } from "
|
|
3
|
+
import { Skeleton } from "./skeleton.js";
|
|
4
4
|
const placeholderBgClassByVariant = {
|
|
5
5
|
primary: "bg-skeleton-bg-primary",
|
|
6
6
|
secondary: "bg-skeleton-bg-secondary"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { StatusText } from "
|
|
3
|
+
import { StatusText } from "./status-text.js";
|
|
4
4
|
code_connect.connect(StatusText, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=304-35", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { StatusText } from "@libs/ui/atoms/status-text"'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Textarea } from "
|
|
3
|
+
import { Textarea } from "./textarea.js";
|
|
4
4
|
code_connect.connect(Textarea, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=502-93", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Textarea } from "@techsio/ui-kit/atoms/textarea"'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { Tooltip } from "
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
|
+
import { Tooltip } from "./tooltip.js";
|
|
5
5
|
code_connect.connect(Tooltip, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=340-436", {
|
|
6
6
|
imports: [
|
|
7
7
|
'import { Tooltip } from "@techsio/ui-kit/atoms/tooltip"',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Accordion } from "
|
|
3
|
+
import { Accordion } from "./accordion.js";
|
|
4
4
|
code_connect.connect(Accordion, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=993-936", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Accordion } from "@libs/ui/molecules/accordion"'
|
|
@@ -21,7 +21,7 @@ const accordionVariants = tv({
|
|
|
21
21
|
"font-accordion-title",
|
|
22
22
|
"bg-accordion-title-bg text-accordion-title-fg",
|
|
23
23
|
"hover:bg-accordion-title-bg-hover",
|
|
24
|
-
"pr-accordion-icon",
|
|
24
|
+
"pr-accordion-icon-right",
|
|
25
25
|
"data-[disabled=true]:cursor-not-allowed"
|
|
26
26
|
],
|
|
27
27
|
subtitle: [
|
|
@@ -57,7 +57,7 @@ const accordionVariants = tv({
|
|
|
57
57
|
size: {
|
|
58
58
|
sm: {
|
|
59
59
|
title: "p-accordion-title-sm text-accordion-title-sm",
|
|
60
|
-
content: "px-accordion-content-sm text-accordion-content-sm",
|
|
60
|
+
content: "px-accordion-content-x-sm text-accordion-content-sm",
|
|
61
61
|
subtitle: "text-accordion-subtitle-sm"
|
|
62
62
|
},
|
|
63
63
|
md: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Breadcrumb } from "
|
|
3
|
+
import { Breadcrumb } from "./breadcrumb.js";
|
|
4
4
|
code_connect.connect(Breadcrumb, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=828-162", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Breadcrumb } from "@libs/ui/molecules/breadcrumb"'
|
|
@@ -13,19 +13,19 @@ const BreadcrumbVariants = tv({
|
|
|
13
13
|
"flex flex-wrap items-center",
|
|
14
14
|
"break-words",
|
|
15
15
|
"list-none",
|
|
16
|
-
"text-breadcrumb-
|
|
16
|
+
"text-breadcrumb-item"
|
|
17
17
|
],
|
|
18
18
|
item: [
|
|
19
19
|
"inline-flex min-w-0 items-center",
|
|
20
|
-
"text-breadcrumb-item
|
|
20
|
+
"text-breadcrumb-item"
|
|
21
21
|
],
|
|
22
22
|
link: [
|
|
23
23
|
"inline-flex min-w-0 items-center",
|
|
24
24
|
"rounded-breadcrumb-link",
|
|
25
|
-
"text-breadcrumb-
|
|
25
|
+
"text-breadcrumb-item",
|
|
26
26
|
"no-underline",
|
|
27
27
|
"cursor-pointer",
|
|
28
|
-
"hover:text-breadcrumb-
|
|
28
|
+
"hover:text-breadcrumb-item-hover",
|
|
29
29
|
"focus-visible:outline-(style:--default-ring-style) focus-visible:outline-(length:--default-ring-width)",
|
|
30
30
|
"focus-visible:outline-breadcrumb-ring",
|
|
31
31
|
"focus-visible:outline-offset-(length:--default-ring-offset)",
|
|
@@ -34,7 +34,7 @@ const BreadcrumbVariants = tv({
|
|
|
34
34
|
currentLink: [
|
|
35
35
|
"inline-flex min-w-0 items-center",
|
|
36
36
|
"rounded-breadcrumb-link",
|
|
37
|
-
"text-breadcrumb-current
|
|
37
|
+
"text-breadcrumb-item-current",
|
|
38
38
|
"cursor-default"
|
|
39
39
|
],
|
|
40
40
|
icon: [
|
|
@@ -43,7 +43,7 @@ const BreadcrumbVariants = tv({
|
|
|
43
43
|
iconSize: "",
|
|
44
44
|
separator: [
|
|
45
45
|
"inline-flex shrink-0 items-center justify-center",
|
|
46
|
-
"text-breadcrumb-separator
|
|
46
|
+
"text-breadcrumb-separator",
|
|
47
47
|
"rtl:rotate-180"
|
|
48
48
|
],
|
|
49
49
|
separatorIcon: [
|
|
@@ -52,7 +52,7 @@ const BreadcrumbVariants = tv({
|
|
|
52
52
|
separatorIconSize: "",
|
|
53
53
|
ellipsis: [
|
|
54
54
|
"inline-flex shrink-0 items-center justify-center",
|
|
55
|
-
"text-breadcrumb-ellipsis
|
|
55
|
+
"text-breadcrumb-ellipsis"
|
|
56
56
|
],
|
|
57
57
|
ellipsisIcon: [
|
|
58
58
|
"inline-flex items-center justify-center"
|
|
@@ -69,8 +69,8 @@ const BreadcrumbVariants = tv({
|
|
|
69
69
|
},
|
|
70
70
|
size: {
|
|
71
71
|
sm: {
|
|
72
|
-
root: "p-breadcrumb-
|
|
73
|
-
list: "gap-breadcrumb-
|
|
72
|
+
root: "p-breadcrumb-sm text-breadcrumb-sm",
|
|
73
|
+
list: "gap-breadcrumb-sm",
|
|
74
74
|
link: "gap-breadcrumb-link-sm",
|
|
75
75
|
currentLink: "gap-breadcrumb-link-sm",
|
|
76
76
|
iconSize: "text-breadcrumb-icon-sm",
|
|
@@ -79,8 +79,8 @@ const BreadcrumbVariants = tv({
|
|
|
79
79
|
ellipsisIconSize: "text-breadcrumb-ellipsis-icon-sm"
|
|
80
80
|
},
|
|
81
81
|
md: {
|
|
82
|
-
root: "p-breadcrumb-
|
|
83
|
-
list: "gap-breadcrumb-
|
|
82
|
+
root: "p-breadcrumb-md text-breadcrumb-md",
|
|
83
|
+
list: "gap-breadcrumb-md",
|
|
84
84
|
link: "gap-breadcrumb-link-md",
|
|
85
85
|
currentLink: "gap-breadcrumb-link-md",
|
|
86
86
|
iconSize: "text-breadcrumb-icon-md",
|
|
@@ -89,8 +89,8 @@ const BreadcrumbVariants = tv({
|
|
|
89
89
|
ellipsisIconSize: "text-breadcrumb-ellipsis-icon-md"
|
|
90
90
|
},
|
|
91
91
|
lg: {
|
|
92
|
-
root: "p-breadcrumb-
|
|
93
|
-
list: "gap-breadcrumb-
|
|
92
|
+
root: "p-breadcrumb-lg text-breadcrumb-lg",
|
|
93
|
+
list: "gap-breadcrumb-lg",
|
|
94
94
|
link: "gap-breadcrumb-link-lg",
|
|
95
95
|
currentLink: "gap-breadcrumb-link-lg",
|
|
96
96
|
iconSize: "text-breadcrumb-icon-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 { Carousel } from "
|
|
3
|
+
import { Carousel } from "./carousel.js";
|
|
4
4
|
code_connect.connect(Carousel, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1190-50", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Carousel } from "@libs/ui/molecules/carousel"'
|
|
@@ -37,10 +37,10 @@ const carouselVariants = tv({
|
|
|
37
37
|
"flex w-full items-center justify-center gap-carousel-indicator"
|
|
38
38
|
],
|
|
39
39
|
indicator: [
|
|
40
|
-
"aspect-carousel-indicator w-carousel-indicator bg-carousel-indicator-bg",
|
|
40
|
+
"aspect-carousel-indicator w-carousel-indicator bg-carousel-indicator-bg-base",
|
|
41
41
|
"data-current:bg-carousel-indicator-bg-active",
|
|
42
42
|
"data-current:border-carousel-indicator-border-active",
|
|
43
|
-
"rounded-carousel-indicator border border-carousel-indicator-border",
|
|
43
|
+
"rounded-carousel-indicator border border-carousel-indicator-border-base",
|
|
44
44
|
"transition-colors duration-200 motion-reduce:transition-none"
|
|
45
45
|
],
|
|
46
46
|
autoplayIcon: [
|
|
@@ -49,7 +49,7 @@ const carouselVariants = tv({
|
|
|
49
49
|
],
|
|
50
50
|
autoplayTrigger: [
|
|
51
51
|
"absolute top-carousel-trigger-top right-carousel-trigger-right z-50",
|
|
52
|
-
"bg-carousel-trigger-bg"
|
|
52
|
+
"bg-carousel-trigger-bg-base"
|
|
53
53
|
],
|
|
54
54
|
spacer: [
|
|
55
55
|
"flex-1"
|
|
@@ -65,7 +65,7 @@ const carouselVariants = tv({
|
|
|
65
65
|
],
|
|
66
66
|
class: [
|
|
67
67
|
"p-carousel-trigger",
|
|
68
|
-
"text-carousel-trigger-fg",
|
|
68
|
+
"text-carousel-trigger-fg-base",
|
|
69
69
|
"focus-visible:outline-(style:--default-ring-style) focus-visible:outline-(length:--default-ring-width)",
|
|
70
70
|
"focus-visible:outline-carousel-ring",
|
|
71
71
|
"focus-visible:outline-offset-(length:--default-ring-offset)"
|
|
@@ -77,7 +77,7 @@ const carouselVariants = tv({
|
|
|
77
77
|
"nextTrigger"
|
|
78
78
|
],
|
|
79
79
|
class: [
|
|
80
|
-
'bg-carousel-trigger-bg hover:bg-carousel-trigger-bg-hover text-carousel-trigger
|
|
80
|
+
'bg-carousel-trigger-bg-base hover:bg-carousel-trigger-bg-hover text-carousel-trigger',
|
|
81
81
|
'hover:text-carousel-trigger-fg-hover',
|
|
82
82
|
'transition-colors duration-200 motion-reduce:transition-none'
|
|
83
83
|
]
|
|
@@ -16,7 +16,7 @@ const colorSelectVariants = tv({
|
|
|
16
16
|
"focus-visible:outline-(style:--default-ring-style) focus-visible:outline-(length:--default-ring-width)",
|
|
17
17
|
"focus-visible:outline-color-select-ring",
|
|
18
18
|
"focus-visible:outline-offset-(length:--default-ring-offset)",
|
|
19
|
-
"data-[selected=true]:border-color-select-selected data-[selected=true]:shadow-none"
|
|
19
|
+
"data-[selected=true]:border-color-select-border-selected data-[selected=true]:shadow-none"
|
|
20
20
|
],
|
|
21
21
|
color: [
|
|
22
22
|
"absolute",
|
|
@@ -56,22 +56,22 @@ const colorSelectVariants = tv({
|
|
|
56
56
|
},
|
|
57
57
|
size: {
|
|
58
58
|
sm: {
|
|
59
|
-
group: "gap-color-select-
|
|
59
|
+
group: "gap-color-select-sm",
|
|
60
60
|
atom: "h-color-select-sm",
|
|
61
61
|
icon: "text-color-select-sm"
|
|
62
62
|
},
|
|
63
63
|
md: {
|
|
64
|
-
group: "gap-color-select-
|
|
64
|
+
group: "gap-color-select-md",
|
|
65
65
|
atom: "h-color-select-md",
|
|
66
66
|
icon: "text-color-select-md"
|
|
67
67
|
},
|
|
68
68
|
lg: {
|
|
69
|
-
group: "gap-color-select-
|
|
69
|
+
group: "gap-color-select-lg",
|
|
70
70
|
atom: "h-color-select-lg",
|
|
71
71
|
icon: "text-color-select-lg"
|
|
72
72
|
},
|
|
73
73
|
full: {
|
|
74
|
-
group: "h-full w-full gap-color-select-
|
|
74
|
+
group: "h-full w-full gap-color-select-md",
|
|
75
75
|
cell: "h-full w-full",
|
|
76
76
|
atom: "h-full",
|
|
77
77
|
icon: "size-color-select-icon"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Combobox } from "
|
|
3
|
+
import { Combobox } from "./combobox.js";
|
|
4
4
|
code_connect.connect(Combobox, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1189-153", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Combobox } from "@techsio/ui-kit/molecules/combobox"'
|
|
@@ -28,11 +28,11 @@ code_connect.connect(Combobox, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3
|
|
|
28
28
|
required: code_connect.boolean("required")
|
|
29
29
|
},
|
|
30
30
|
example: ({ size, validateStatus, disabled, required })=>/*#__PURE__*/ jsx(Combobox, {
|
|
31
|
-
size: size,
|
|
32
|
-
validateStatus: validateStatus,
|
|
33
31
|
disabled: disabled,
|
|
34
|
-
required: required,
|
|
35
32
|
items: [],
|
|
36
|
-
label: "Label"
|
|
33
|
+
label: "Label",
|
|
34
|
+
required: required,
|
|
35
|
+
size: size,
|
|
36
|
+
validateStatus: validateStatus
|
|
37
37
|
})
|
|
38
38
|
});
|
|
@@ -18,7 +18,7 @@ const comboboxVariants = tv({
|
|
|
18
18
|
],
|
|
19
19
|
control: [
|
|
20
20
|
"form-control-base relative flex w-full items-center overflow-hidden",
|
|
21
|
-
"bg-combobox-bg",
|
|
21
|
+
"bg-combobox-bg-base",
|
|
22
22
|
"transition-colors duration-200 ease-in-out motion-reduce:transition-none",
|
|
23
23
|
"hover:border-combobox-border-hover hover:bg-combobox-bg-hover",
|
|
24
24
|
"data-focus:border-combobox-border-focus data-focus:bg-combobox-bg-focus",
|
|
@@ -27,17 +27,17 @@ const comboboxVariants = tv({
|
|
|
27
27
|
"data-focus-visible:outline-offset-(length:--default-ring-offset)",
|
|
28
28
|
"data-disabled:border-combobox-border-disabled data-disabled:bg-combobox-bg-disabled",
|
|
29
29
|
"data-[validation=error]:border-(length:--border-width-validation)",
|
|
30
|
-
"data-[validation=error]:border-combobox-
|
|
30
|
+
"data-[validation=error]:border-combobox-border-error",
|
|
31
31
|
"data-[validation=success]:border-(length:--border-width-validation)",
|
|
32
|
-
"data-[validation=success]:border-combobox-success
|
|
32
|
+
"data-[validation=success]:border-combobox-border-success",
|
|
33
33
|
"data-[validation=warning]:border-(length:--border-width-validation)",
|
|
34
|
-
"data-[validation=warning]:border-combobox-warning
|
|
34
|
+
"data-[validation=warning]:border-combobox-border-warning"
|
|
35
35
|
],
|
|
36
36
|
input: [
|
|
37
|
-
"relative h-full w-full border-none bg-combobox-input-bg",
|
|
37
|
+
"relative h-full w-full border-none bg-combobox-input-bg-base",
|
|
38
38
|
"hover:bg-combobox-input-bg-hover focus-visible:outline-none",
|
|
39
|
-
"focus:bg-combobox-input-bg-
|
|
40
|
-
"placeholder:text-combobox-placeholder",
|
|
39
|
+
"focus:bg-combobox-input-bg-focus",
|
|
40
|
+
"placeholder:text-combobox-fg-placeholder",
|
|
41
41
|
"data-disabled:text-combobox-fg-disabled",
|
|
42
42
|
"data-disabled:bg-combobox-bg-disabled"
|
|
43
43
|
],
|
|
@@ -56,7 +56,7 @@ const comboboxVariants = tv({
|
|
|
56
56
|
"flex flex-col overflow-clip",
|
|
57
57
|
"rounded-combobox shadow-md",
|
|
58
58
|
"bg-combobox-content-bg",
|
|
59
|
-
"z-(--z-combobox-content) border border-combobox-border",
|
|
59
|
+
"z-(--z-combobox-content) border border-combobox-border-base",
|
|
60
60
|
"duration-200 ease-out motion-safe:transition-[opacity,display,translate]",
|
|
61
61
|
"transition-discrete",
|
|
62
62
|
"starting:-translate-y-2 starting:opacity-0",
|
|
@@ -76,7 +76,12 @@ const comboboxVariants = tv({
|
|
|
76
76
|
"data-disabled:cursor-not-allowed data-disabled:text-combobox-fg-disabled"
|
|
77
77
|
],
|
|
78
78
|
emptyState: [
|
|
79
|
-
"text-combobox-placeholder"
|
|
79
|
+
"text-combobox-fg-placeholder"
|
|
80
|
+
],
|
|
81
|
+
triggerIndicator: [
|
|
82
|
+
"text-combobox-trigger-fg-base group-hover:text-combobox-trigger-fg-hover",
|
|
83
|
+
"motion-safe:transition-[transform,color] motion-safe:duration-200 motion-reduce:transition-none",
|
|
84
|
+
"rotate-0 group-data-[state=open]:rotate-180"
|
|
80
85
|
],
|
|
81
86
|
helper: [
|
|
82
87
|
"data-[validation=success]:text-combobox-success-fg",
|
|
@@ -94,8 +99,8 @@ const comboboxVariants = tv({
|
|
|
94
99
|
"focus-visible:outline-(style:--default-ring-style) focus-visible:outline-(length:--default-ring-width)",
|
|
95
100
|
"focus-visible:outline-combobox-ring",
|
|
96
101
|
"focus-visible:outline-offset-(length:--default-ring-offset)",
|
|
97
|
-
"text-combobox-trigger text-combobox-trigger
|
|
98
|
-
"hover:text-combobox-trigger-hover",
|
|
102
|
+
"text-combobox-trigger-fg-base text-combobox-trigger",
|
|
103
|
+
"hover:text-combobox-trigger-fg-hover",
|
|
99
104
|
"motion-safe:transition-colors motion-safe:duration-200 motion-reduce:transition-none",
|
|
100
105
|
"hover:bg-combobox-trigger-bg-hover",
|
|
101
106
|
"active:bg-combobox-trigger-bg-active"
|
|
@@ -105,28 +110,28 @@ const comboboxVariants = tv({
|
|
|
105
110
|
variants: {
|
|
106
111
|
size: {
|
|
107
112
|
sm: {
|
|
108
|
-
root: "gap-combobox-
|
|
113
|
+
root: "gap-combobox-sm",
|
|
109
114
|
control: "h-form-control-sm rounded-combobox-sm text-input-sm",
|
|
110
115
|
item: "p-combobox-item-sm text-combobox-item-sm",
|
|
111
116
|
emptyState: "p-combobox-item-sm text-combobox-item-sm",
|
|
112
117
|
input: "p-combobox-input-sm",
|
|
113
|
-
content: "text-combobox-
|
|
118
|
+
content: "text-combobox-sm"
|
|
114
119
|
},
|
|
115
120
|
md: {
|
|
116
|
-
root: "gap-combobox-
|
|
121
|
+
root: "gap-combobox-md",
|
|
117
122
|
control: "h-form-control-md rounded-combobox-md text-input-md",
|
|
118
123
|
item: "p-combobox-item-md text-combobox-item-md",
|
|
119
124
|
emptyState: "p-combobox-item-md text-combobox-item-md",
|
|
120
125
|
input: "p-combobox-input-md",
|
|
121
|
-
content: "text-combobox-
|
|
126
|
+
content: "text-combobox-md"
|
|
122
127
|
},
|
|
123
128
|
lg: {
|
|
124
|
-
root: "gap-combobox-
|
|
129
|
+
root: "gap-combobox-lg",
|
|
125
130
|
control: "rounded-combobox text-input-lg",
|
|
126
131
|
item: "p-combobox-item-lg text-combobox-item-lg",
|
|
127
132
|
emptyState: "p-combobox-item-lg text-combobox-item-lg",
|
|
128
133
|
input: "p-combobox-input-lg",
|
|
129
|
-
content: "text-combobox-
|
|
134
|
+
content: "text-combobox-lg"
|
|
130
135
|
}
|
|
131
136
|
}
|
|
132
137
|
},
|
|
@@ -187,7 +192,7 @@ function Combobox({ id, name, label, size, placeholder = "Select option", disabl
|
|
|
187
192
|
const api = connect(service, normalizeProps);
|
|
188
193
|
const inputProps = api.getInputProps();
|
|
189
194
|
const { ...restInputProps } = inputProps;
|
|
190
|
-
const { root, label: labelStyles, control, input, trigger, positioner, content, list, clearTrigger, item: itemSlot, emptyState } = comboboxVariants({
|
|
195
|
+
const { root, label: labelStyles, control, input, trigger, positioner, content, list, clearTrigger, item: itemSlot, emptyState, triggerIndicator } = comboboxVariants({
|
|
191
196
|
size
|
|
192
197
|
});
|
|
193
198
|
const hasOptions = api.collection.size > 0;
|
|
@@ -231,7 +236,7 @@ function Combobox({ id, name, label, size, placeholder = "Select option", disabl
|
|
|
231
236
|
size: "current",
|
|
232
237
|
theme: "unstyled",
|
|
233
238
|
children: /*#__PURE__*/ jsx(Icon, {
|
|
234
|
-
className:
|
|
239
|
+
className: triggerIndicator(),
|
|
235
240
|
icon: triggerIcon,
|
|
236
241
|
size: triggerIconSize ?? resolvedChevronIconSize
|
|
237
242
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { Dialog } from "
|
|
3
|
+
import { Dialog } from "./dialog.js";
|
|
4
4
|
code_connect.connect(Dialog, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1034-67", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Dialog } from "@techsio/ui-kit/molecules/dialog"'
|
|
@@ -15,9 +15,9 @@ code_connect.connect(Dialog, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3nt
|
|
|
15
15
|
})
|
|
16
16
|
},
|
|
17
17
|
example: ({ placement })=>/*#__PURE__*/ jsx(Dialog, {
|
|
18
|
+
description: "Description",
|
|
18
19
|
placement: placement,
|
|
19
20
|
title: "Title",
|
|
20
|
-
description: "Description",
|
|
21
21
|
triggerText: "Open",
|
|
22
22
|
children: "Content"
|
|
23
23
|
})
|
package/dist/molecules/dialog.js
CHANGED
|
@@ -23,44 +23,44 @@ const dialogVariants = tv({
|
|
|
23
23
|
"focus-visible:outline-offset-(length:--default-ring-offset)"
|
|
24
24
|
],
|
|
25
25
|
title: [
|
|
26
|
-
"font-dialog-title text-dialog-title-fg text-dialog-title
|
|
26
|
+
"font-dialog-title text-dialog-title-fg text-dialog-title"
|
|
27
27
|
],
|
|
28
28
|
description: [
|
|
29
|
-
"text-dialog-description-fg text-dialog-description
|
|
29
|
+
"text-dialog-description-fg text-dialog-description"
|
|
30
30
|
],
|
|
31
31
|
trigger: [],
|
|
32
32
|
closeTrigger: [
|
|
33
33
|
"absolute top-dialog-close-trigger-offset right-dialog-close-trigger-offset",
|
|
34
34
|
"flex items-center justify-center",
|
|
35
|
-
"rounded-dialog-close-trigger p-dialog-close-trigger
|
|
35
|
+
"rounded-dialog-close-trigger p-dialog-close-trigger",
|
|
36
36
|
"text-dialog-close-trigger-fg",
|
|
37
37
|
"focus-visible:outline-(style:--default-ring-style) focus-visible:outline-(length:--default-ring-width)",
|
|
38
38
|
"focus-visible:outline-dialog-ring",
|
|
39
39
|
"focus-visible:outline-offset-(length:--default-ring-offset)"
|
|
40
40
|
],
|
|
41
|
-
actions: "mt-auto flex shrink-0 justify-end gap-dialog-actions pt-dialog-actions"
|
|
41
|
+
actions: "mt-auto flex shrink-0 justify-end gap-dialog-actions pt-dialog-actions-top"
|
|
42
42
|
},
|
|
43
43
|
variants: {
|
|
44
44
|
placement: {
|
|
45
45
|
center: {
|
|
46
46
|
positioner: "items-center justify-center",
|
|
47
|
-
content: "max-h-dialog-center-h-max max-w-dialog-center-w-max rounded-dialog-center"
|
|
47
|
+
content: "max-h-dialog-center-h-max max-w-dialog-center-w-max rounded-dialog-content-center"
|
|
48
48
|
},
|
|
49
49
|
left: {
|
|
50
50
|
positioner: "items-stretch justify-start",
|
|
51
|
-
content: "h-full rounded-dialog-
|
|
51
|
+
content: "h-full rounded-dialog-content-side border-l-0"
|
|
52
52
|
},
|
|
53
53
|
right: {
|
|
54
54
|
positioner: "items-stretch justify-end",
|
|
55
|
-
content: "h-full rounded-dialog-
|
|
55
|
+
content: "h-full rounded-dialog-content-side border-r-0"
|
|
56
56
|
},
|
|
57
57
|
top: {
|
|
58
58
|
positioner: "items-start justify-stretch",
|
|
59
|
-
content: "w-full rounded-dialog-
|
|
59
|
+
content: "w-full rounded-dialog-content-edge border-t-0"
|
|
60
60
|
},
|
|
61
61
|
bottom: {
|
|
62
62
|
positioner: "items-end justify-stretch",
|
|
63
|
-
content: "w-full rounded-dialog-
|
|
63
|
+
content: "w-full rounded-dialog-content-edge border-b-0"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
position: {
|
|
@@ -91,7 +91,7 @@ const dialogVariants = tv({
|
|
|
91
91
|
},
|
|
92
92
|
behavior: {
|
|
93
93
|
modal: {
|
|
94
|
-
backdrop: "bg-dialog-backdrop-bg"
|
|
94
|
+
backdrop: "bg-dialog-backdrop-bg-modal"
|
|
95
95
|
},
|
|
96
96
|
modeless: {
|
|
97
97
|
backdrop: "bg-transparent",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { FormCheckbox } from "
|
|
3
|
+
import { FormCheckbox } from "./form-checkbox.js";
|
|
4
4
|
code_connect.connect(FormCheckbox, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=916-487", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { FormCheckbox } from "@techsio/ui-kit/molecules/form-checkbox"'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { FormInput } from "
|
|
3
|
+
import { FormInput } from "./form-input.js";
|
|
4
4
|
code_connect.connect(FormInput, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=306-266", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { FormInput } from "@techsio/ui-kit/molecules/form-input"'
|
|
@@ -28,11 +28,11 @@ code_connect.connect(FormInput, "https://www.figma.com/design/12xb1pqXKwE2vbOByN
|
|
|
28
28
|
required: code_connect.boolean("required")
|
|
29
29
|
},
|
|
30
30
|
example: ({ size, validateStatus, disabled, required })=>/*#__PURE__*/ jsx(FormInput, {
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
|
-
import { NumericInput } from "
|
|
4
|
-
import { FormNumericInput } from "
|
|
3
|
+
import { NumericInput } from "../atoms/numeric-input.js";
|
|
4
|
+
import { FormNumericInput } from "./form-numeric-input.js";
|
|
5
5
|
code_connect.connect(FormNumericInput, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=603-143", {
|
|
6
6
|
imports: [
|
|
7
7
|
'import { NumericInput } from "@techsio/ui-kit/atoms/numeric-input"',
|
|
@@ -43,11 +43,11 @@ code_connect.connect(FormNumericInput, "https://www.figma.com/design/12xb1pqXKwE
|
|
|
43
43
|
})
|
|
44
44
|
},
|
|
45
45
|
example: ({ disabled, readOnly, required, size, validateStatus })=>/*#__PURE__*/ jsx(FormNumericInput, {
|
|
46
|
-
id: "quantity",
|
|
47
|
-
helpText: "Enter value between 0-100",
|
|
48
|
-
label: "Quantity",
|
|
49
46
|
defaultValue: 42,
|
|
50
47
|
disabled: disabled,
|
|
48
|
+
helpText: "Enter value between 0-100",
|
|
49
|
+
id: "quantity",
|
|
50
|
+
label: "Quantity",
|
|
51
51
|
readOnly: readOnly,
|
|
52
52
|
required: required,
|
|
53
53
|
size: size,
|