@techsio/ui-kit 0.39.0 → 0.40.1
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/.storybook/manager.d.ts +2 -0
- package/dist/.storybook/manager.d.ts.map +1 -0
- package/dist/.storybook/preview.d.ts.map +1 -1
- package/dist/atoms/action-icon.figma.js +1 -1
- package/dist/atoms/badge.figma.js +1 -1
- package/dist/atoms/button.figma.js +1 -1
- package/dist/atoms/checkbox.figma.js +1 -1
- package/dist/atoms/icon.figma.js +1 -1
- package/dist/atoms/image.figma.js +1 -1
- package/dist/atoms/input.figma.js +1 -1
- package/dist/atoms/label.figma.js +1 -1
- package/dist/atoms/link-button.figma.js +1 -1
- package/dist/atoms/link.figma.js +1 -1
- package/dist/atoms/numeric-input.figma.js +1 -1
- package/dist/atoms/rating.figma.js +1 -1
- package/dist/atoms/skeleton.figma.js +3 -3
- package/dist/atoms/status-text.figma.js +1 -1
- package/dist/atoms/textarea.figma.js +1 -1
- package/dist/atoms/tooltip.figma.js +1 -1
- package/dist/molecules/accordion.figma.js +1 -1
- package/dist/molecules/breadcrumb.figma.js +1 -1
- package/dist/molecules/carousel.figma.js +1 -1
- package/dist/molecules/combobox.figma.js +1 -1
- package/dist/molecules/combobox.js +47 -32
- package/dist/molecules/dialog.figma.js +1 -1
- package/dist/molecules/form-checkbox.figma.js +1 -1
- package/dist/molecules/form-input.figma.js +1 -1
- package/dist/molecules/form-numeric-input.figma.js +1 -1
- package/dist/molecules/form-textarea.figma.js +1 -1
- package/dist/molecules/menu.figma.js +1 -1
- package/dist/molecules/menu.js +44 -38
- package/dist/molecules/pagination.figma.js +1 -1
- package/dist/molecules/phone-input.figma.js +1 -1
- package/dist/molecules/popover.figma.js +1 -1
- package/dist/molecules/product-card.figma.js +1 -1
- package/dist/molecules/radio-card.figma.js +1 -1
- package/dist/molecules/radio-group.figma.js +1 -1
- package/dist/molecules/search-form.figma.js +1 -1
- package/dist/molecules/select.figma.js +1 -1
- package/dist/molecules/select.js +24 -28
- package/dist/molecules/slider.figma.js +1 -1
- package/dist/molecules/steps.figma.js +1 -1
- package/dist/molecules/switch.figma.js +1 -1
- package/dist/molecules/tabs.figma.js +1 -1
- package/dist/molecules/toast.figma.js +1 -1
- package/dist/molecules/tree-view.figma.js +1 -1
- package/dist/organisms/footer.figma.js +1 -1
- package/dist/organisms/gallery.figma.js +1 -1
- package/dist/organisms/header.figma.js +1 -1
- package/dist/organisms/table.figma.js +1 -1
- package/dist/organisms/table.js +4 -1
- package/dist/src/molecules/combobox.d.ts +6 -18
- package/dist/src/molecules/combobox.d.ts.map +1 -1
- package/dist/src/molecules/menu.d.ts +12 -9
- package/dist/src/molecules/menu.d.ts.map +1 -1
- package/dist/src/molecules/select.d.ts +12 -12
- package/dist/src/molecules/select.d.ts.map +1 -1
- package/dist/src/organisms/table.d.ts +1 -1
- package/dist/src/organisms/table.d.ts.map +1 -1
- package/dist/src/templates/select.d.ts +1 -1
- package/dist/src/theme/theme-config.d.ts +5 -0
- package/dist/src/theme/theme-config.d.ts.map +1 -1
- package/dist/stories/changelog/changelog.stories.d.ts.map +1 -1
- package/dist/theme/theme-config.js +7 -0
- package/package.json +1 -1
- package/src/tokens/components/_popup-surface.css +163 -0
- package/src/tokens/components/components.css +1 -2
- package/src/tokens/components/molecules/_combobox.css +0 -12
- package/src/tokens/components/molecules/_menu.css +4 -0
- package/src/tokens/components/molecules/_select.css +0 -11
- package/src/tokens/components/organisms/_table.css +17 -0
- package/src/tokens/figma/brand-overrides.css +141 -19
- package/src/tokens/figma/business/variables.css +437 -0
- package/src/tokens/figma/dark/variables.css +100 -1455
- package/src/tokens/figma/light/variables.css +213 -179
- package/src/tokens/figma/neo/variables.css +87 -1442
- package/src/tokens/figma/neo-dark/variables.css +84 -1439
- package/src/tokens/figma/variables.css +217 -183
- package/src/tokens/components/_icon-button.css +0 -39
- package/src/tokens/components/molecules/_search-form.css +0 -12
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../.storybook/manager.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../.storybook/preview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAU1D,OAAO,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../.storybook/preview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAU1D,OAAO,yBAAyB,CAAA;AAqChC,QAAA,MAAM,OAAO,EAAE,OAyDd,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { ActionIcon } from "./action-icon.js";
|
|
4
|
-
code_connect.connect(ActionIcon, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(ActionIcon, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=2668-36", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { ActionIcon } from "@techsio/ui-kit/atoms/action-icon"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Badge } from "./badge.js";
|
|
4
|
-
code_connect.connect(Badge, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Badge, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1-7735", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Badge } from "@techsio/ui-kit/atoms/badge"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Button } from "./button.js";
|
|
4
|
-
code_connect.connect(Button, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Button, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1-5627", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Button } from "@techsio/ui-kit/atoms/button"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Checkbox } from "./checkbox.js";
|
|
4
|
-
code_connect.connect(Checkbox, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Checkbox, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=428-9", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Checkbox } from "@techsio/ui-kit/atoms/checkbox"'
|
|
7
7
|
],
|
package/dist/atoms/icon.figma.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Icon } from "./icon.js";
|
|
4
|
-
code_connect.connect(Icon, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Icon, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=365-170", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Icon } from "@techsio/ui-kit/atoms/icon"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Image } from "./image.js";
|
|
4
|
-
code_connect.connect(Image, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Image, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=484-19", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Image } from "@techsio/ui-kit/atoms/image"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Input } from "./input.js";
|
|
4
|
-
code_connect.connect(Input, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Input, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=304-107", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Input } from "@techsio/ui-kit/atoms/input"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Label } from "./label.js";
|
|
4
|
-
code_connect.connect(Label, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Label, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1-7840", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Label } from "@techsio/ui-kit/atoms/label"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { LinkButton } from "./link-button.js";
|
|
4
|
-
code_connect.connect(LinkButton, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(LinkButton, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1358-1944", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { LinkButton } from "@techsio/ui-kit/atoms/link-button"'
|
|
7
7
|
],
|
package/dist/atoms/link.figma.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Link } from "./link.js";
|
|
4
|
-
code_connect.connect(Link, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Link, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1355-13", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Link } from "@techsio/ui-kit/atoms/link"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { NumericInput } from "./numeric-input.js";
|
|
4
|
-
code_connect.connect(NumericInput, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(NumericInput, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=607-107", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { NumericInput } from "@techsio/ui-kit/atoms/numeric-input"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Rating } from "./rating.js";
|
|
4
|
-
code_connect.connect(Rating, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Rating, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=521-336", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Rating } from "@techsio/ui-kit/atoms/rating"'
|
|
7
7
|
],
|
|
@@ -5,7 +5,7 @@ const placeholderBgClassByVariant = {
|
|
|
5
5
|
primary: "bg-skeleton-bg-primary",
|
|
6
6
|
secondary: "bg-skeleton-bg-secondary"
|
|
7
7
|
};
|
|
8
|
-
code_connect.connect(Skeleton.Rectangle, "https://www.figma.com/design/
|
|
8
|
+
code_connect.connect(Skeleton.Rectangle, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=565-101", {
|
|
9
9
|
imports: [
|
|
10
10
|
'import { Skeleton } from "@techsio/ui-kit/atoms/skeleton"'
|
|
11
11
|
],
|
|
@@ -31,7 +31,7 @@ code_connect.connect(Skeleton.Rectangle, "https://www.figma.com/design/12xb1pqXK
|
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
code_connect.connect(Skeleton.Circle, "https://www.figma.com/design/
|
|
34
|
+
code_connect.connect(Skeleton.Circle, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=565-198", {
|
|
35
35
|
imports: [
|
|
36
36
|
'import { Skeleton } from "@techsio/ui-kit/atoms/skeleton"'
|
|
37
37
|
],
|
|
@@ -64,7 +64,7 @@ code_connect.connect(Skeleton.Circle, "https://www.figma.com/design/12xb1pqXKwE2
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
code_connect.connect(Skeleton.Text, "https://www.figma.com/design/
|
|
67
|
+
code_connect.connect(Skeleton.Text, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=565-2143", {
|
|
68
68
|
imports: [
|
|
69
69
|
'import { Skeleton } from "@techsio/ui-kit/atoms/skeleton"'
|
|
70
70
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { StatusText } from "./status-text.js";
|
|
4
|
-
code_connect.connect(StatusText, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(StatusText, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=304-35", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { StatusText } from "@libs/ui/atoms/status-text"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Textarea } from "./textarea.js";
|
|
4
|
-
code_connect.connect(Textarea, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Textarea, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=502-93", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Textarea } from "@techsio/ui-kit/atoms/textarea"'
|
|
7
7
|
],
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Button } from "./button.js";
|
|
4
4
|
import { Tooltip } from "./tooltip.js";
|
|
5
|
-
code_connect.connect(Tooltip, "https://www.figma.com/design/
|
|
5
|
+
code_connect.connect(Tooltip, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=340-436", {
|
|
6
6
|
imports: [
|
|
7
7
|
'import { Tooltip } from "@techsio/ui-kit/atoms/tooltip"',
|
|
8
8
|
'import { Button } from "@techsio/ui-kit/atoms/button"'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Accordion } from "./accordion.js";
|
|
4
|
-
code_connect.connect(Accordion, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Accordion, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=993-936", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Accordion } from "@libs/ui/molecules/accordion"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Breadcrumb } from "./breadcrumb.js";
|
|
4
|
-
code_connect.connect(Breadcrumb, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Breadcrumb, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=828-162", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Breadcrumb } from "@libs/ui/molecules/breadcrumb"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Carousel } from "./carousel.js";
|
|
4
|
-
code_connect.connect(Carousel, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Carousel, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1190-50", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Carousel } from "@libs/ui/molecules/carousel"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Combobox } from "./combobox.js";
|
|
4
|
-
code_connect.connect(Combobox, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Combobox, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1189-153", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Combobox } from "@techsio/ui-kit/molecules/combobox"'
|
|
7
7
|
],
|
|
@@ -48,33 +48,42 @@ const comboboxVariants = tv({
|
|
|
48
48
|
"p-combobox-trigger"
|
|
49
49
|
],
|
|
50
50
|
positioner: [
|
|
51
|
-
"
|
|
51
|
+
"isolate w-(--reference-width)"
|
|
52
52
|
],
|
|
53
53
|
content: [
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"duration-200 ease-out motion-safe:transition-[opacity,display,translate]",
|
|
54
|
+
"popup-surface-base",
|
|
55
|
+
"w-full",
|
|
56
|
+
"flex flex-col",
|
|
57
|
+
"duration-200 ease-out motion-safe:transition-[opacity,display,translate,scale]",
|
|
59
58
|
"transition-discrete",
|
|
60
|
-
"starting
|
|
61
|
-
"data-[state=open]:starting
|
|
62
|
-
"data-[state=open]:
|
|
63
|
-
"data-[state=closed]
|
|
59
|
+
"starting:scale-98 starting:opacity-0",
|
|
60
|
+
"data-[state=open]:starting:scale-98 data-[state=open]:starting:opacity-0",
|
|
61
|
+
"data-[state=open]:scale-100 data-[state=open]:opacity-100",
|
|
62
|
+
"data-[state=closed]:scale-98 data-[state=closed]:opacity-0"
|
|
64
63
|
],
|
|
65
64
|
list: [
|
|
66
65
|
"m-0 flex list-none flex-col"
|
|
67
66
|
],
|
|
67
|
+
itemText: [
|
|
68
|
+
"min-w-0 flex-grow truncate"
|
|
69
|
+
],
|
|
68
70
|
item: [
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"data-
|
|
73
|
-
"data-[state=checked]:
|
|
74
|
-
"data-disabled:cursor-not-allowed data-disabled:text-
|
|
71
|
+
"popup-item-base",
|
|
72
|
+
"hover:bg-popup-item-bg-hover",
|
|
73
|
+
"data-highlighted:bg-popup-item-bg-hover",
|
|
74
|
+
"data-[state=checked]:bg-popup-item-bg-selected",
|
|
75
|
+
"data-[state=checked]:text-popup-item-fg-selected",
|
|
76
|
+
"data-disabled:cursor-not-allowed data-disabled:text-popup-item-fg-disabled",
|
|
77
|
+
"transition-colors duration-200 motion-reduce:transition-none"
|
|
78
|
+
],
|
|
79
|
+
itemIndicator: [
|
|
80
|
+
"-translate-y-1/2 absolute end-(--popup-item-x) top-1/2",
|
|
81
|
+
"flex items-center justify-center",
|
|
82
|
+
"size-(--size-popup-indicator) text-popup-item-fg-selected"
|
|
75
83
|
],
|
|
76
84
|
emptyState: [
|
|
77
|
-
"
|
|
85
|
+
"px-(--popup-item-x) py-(--popup-item-y)",
|
|
86
|
+
"text-popup-item-fg-muted"
|
|
78
87
|
],
|
|
79
88
|
triggerIndicator: [
|
|
80
89
|
"text-combobox-trigger-fg-base group-hover:text-combobox-trigger-fg-hover",
|
|
@@ -109,28 +118,22 @@ const comboboxVariants = tv({
|
|
|
109
118
|
sm: {
|
|
110
119
|
root: "gap-combobox-sm",
|
|
111
120
|
control: "h-form-control-sm rounded-combobox-sm text-input-sm",
|
|
112
|
-
item: "p-combobox-item-sm text-combobox-item-sm",
|
|
113
|
-
emptyState: "p-combobox-item-sm text-combobox-item-sm",
|
|
114
121
|
input: "p-combobox-input-sm",
|
|
115
|
-
content: "text-combobox-sm",
|
|
122
|
+
content: "popup-size-sm text-combobox-item-sm",
|
|
116
123
|
triggerIndicator: "text-icon-control-sm"
|
|
117
124
|
},
|
|
118
125
|
md: {
|
|
119
126
|
root: "gap-combobox-md",
|
|
120
127
|
control: "h-form-control-md rounded-combobox-md text-input-md",
|
|
121
|
-
item: "p-combobox-item-md text-combobox-item-md",
|
|
122
|
-
emptyState: "p-combobox-item-md text-combobox-item-md",
|
|
123
128
|
input: "p-combobox-input-md",
|
|
124
|
-
content: "text-combobox-md",
|
|
129
|
+
content: "popup-size-md text-combobox-item-md",
|
|
125
130
|
triggerIndicator: "text-icon-control-md"
|
|
126
131
|
},
|
|
127
132
|
lg: {
|
|
128
133
|
root: "gap-combobox-lg",
|
|
129
134
|
control: "rounded-combobox text-input-lg",
|
|
130
|
-
item: "p-combobox-item-lg text-combobox-item-lg",
|
|
131
|
-
emptyState: "p-combobox-item-lg text-combobox-item-lg",
|
|
132
135
|
input: "p-combobox-input-lg",
|
|
133
|
-
content: "text-combobox-lg",
|
|
136
|
+
content: "popup-size-lg text-combobox-item-lg",
|
|
134
137
|
triggerIndicator: "text-icon-control-lg"
|
|
135
138
|
}
|
|
136
139
|
}
|
|
@@ -191,7 +194,7 @@ function Combobox({ id, name, label, size, placeholder = "Select option", disabl
|
|
|
191
194
|
const api = connect(service, normalizeProps);
|
|
192
195
|
const inputProps = api.getInputProps();
|
|
193
196
|
const { ...restInputProps } = inputProps;
|
|
194
|
-
const { root, label: labelStyles, control, input, trigger, positioner, content, list, item: itemSlot, emptyState, triggerIndicator } = comboboxVariants({
|
|
197
|
+
const { root, label: labelStyles, control, input, trigger, positioner, content, list, item: itemSlot, itemText, itemIndicator, emptyState, triggerIndicator } = comboboxVariants({
|
|
195
198
|
size
|
|
196
199
|
});
|
|
197
200
|
const hasOptions = api.collection.size > 0;
|
|
@@ -249,15 +252,27 @@ function Combobox({ id, name, label, size, placeholder = "Select option", disabl
|
|
|
249
252
|
hasOptions && /*#__PURE__*/ jsx("ul", {
|
|
250
253
|
...api.getListProps(),
|
|
251
254
|
className: list(),
|
|
252
|
-
children: options.map((item)=>/*#__PURE__*/
|
|
255
|
+
children: options.map((item)=>/*#__PURE__*/ jsxs("li", {
|
|
253
256
|
...api.getItemProps({
|
|
254
257
|
item
|
|
255
258
|
}),
|
|
256
259
|
className: itemSlot(),
|
|
257
|
-
children:
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
260
|
+
children: [
|
|
261
|
+
/*#__PURE__*/ jsx("span", {
|
|
262
|
+
className: itemText(),
|
|
263
|
+
children: item.label
|
|
264
|
+
}),
|
|
265
|
+
/*#__PURE__*/ jsx("span", {
|
|
266
|
+
...api.getItemIndicatorProps({
|
|
267
|
+
item
|
|
268
|
+
}),
|
|
269
|
+
className: itemIndicator(),
|
|
270
|
+
children: /*#__PURE__*/ jsx(Icon, {
|
|
271
|
+
icon: "token-icon-check",
|
|
272
|
+
size: "current"
|
|
273
|
+
})
|
|
274
|
+
})
|
|
275
|
+
]
|
|
261
276
|
}, item.value))
|
|
262
277
|
}),
|
|
263
278
|
showEmptyState && /*#__PURE__*/ jsx("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Dialog } from "./dialog.js";
|
|
4
|
-
code_connect.connect(Dialog, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Dialog, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1034-67", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Dialog } from "@techsio/ui-kit/molecules/dialog"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { FormCheckbox } from "./form-checkbox.js";
|
|
4
|
-
code_connect.connect(FormCheckbox, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(FormCheckbox, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=916-487", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { FormCheckbox } from "@techsio/ui-kit/molecules/form-checkbox"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { FormInput } from "./form-input.js";
|
|
4
|
-
code_connect.connect(FormInput, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(FormInput, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=306-266", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { FormInput } from "@techsio/ui-kit/molecules/form-input"'
|
|
7
7
|
],
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { NumericInput } from "../atoms/numeric-input.js";
|
|
4
4
|
import { FormNumericInput } from "./form-numeric-input.js";
|
|
5
|
-
code_connect.connect(FormNumericInput, "https://www.figma.com/design/
|
|
5
|
+
code_connect.connect(FormNumericInput, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=603-143", {
|
|
6
6
|
imports: [
|
|
7
7
|
'import { NumericInput } from "@techsio/ui-kit/atoms/numeric-input"',
|
|
8
8
|
'import { FormNumericInput } from "@techsio/ui-kit/molecules/form-numeric-input"'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { FormTextarea } from "./form-textarea.js";
|
|
4
|
-
code_connect.connect(FormTextarea, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(FormTextarea, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=929-317", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { FormTextarea } from "@techsio/ui-kit/molecules/form-textarea"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Menu } from "./menu.js";
|
|
4
|
-
code_connect.connect(Menu, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Menu, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1183-26", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Menu } from "@libs/ui/molecules/menu"'
|
|
7
7
|
],
|
package/dist/molecules/menu.js
CHANGED
|
@@ -9,33 +9,28 @@ const menuVariants = tv({
|
|
|
9
9
|
slots: {
|
|
10
10
|
trigger: "",
|
|
11
11
|
positioner: [
|
|
12
|
-
"w-(--reference-width)"
|
|
13
|
-
"isolate z-(--z-index)"
|
|
12
|
+
"isolate w-(--reference-width)"
|
|
14
13
|
],
|
|
15
14
|
content: [
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"data-[state=open]:
|
|
22
|
-
"data-[state=
|
|
23
|
-
"
|
|
15
|
+
"popup-surface-base",
|
|
16
|
+
"w-full",
|
|
17
|
+
"duration-200 ease-out motion-safe:transition-[opacity,display,translate,scale]",
|
|
18
|
+
"transition-discrete",
|
|
19
|
+
"starting:scale-98 starting:opacity-0",
|
|
20
|
+
"data-[state=open]:starting:scale-98 data-[state=open]:starting:opacity-0",
|
|
21
|
+
"data-[state=open]:scale-100 data-[state=open]:opacity-100",
|
|
22
|
+
"data-[state=closed]:scale-98 data-[state=closed]:opacity-0"
|
|
24
23
|
],
|
|
25
24
|
item: [
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"hover:bg-menu-item-bg-hover",
|
|
32
|
-
"focus:bg-menu-item-bg-hover focus-visible:outline-none",
|
|
33
|
-
"data-[disabled]:cursor-not-allowed data-[disabled]:text-menu-fg-disabled",
|
|
34
|
-
"data-[highlighted]:bg-menu-item-bg-hover",
|
|
25
|
+
"popup-item-base",
|
|
26
|
+
"hover:bg-popup-item-bg-hover",
|
|
27
|
+
"focus:bg-popup-item-bg-hover",
|
|
28
|
+
"data-[highlighted]:bg-popup-item-bg-hover",
|
|
29
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:text-popup-item-fg-disabled",
|
|
35
30
|
"transition-colors duration-200 motion-reduce:transition-none"
|
|
36
31
|
],
|
|
37
32
|
optionItem: [
|
|
38
|
-
"data-[state=checked]:
|
|
33
|
+
"data-[state=checked]:text-popup-item-fg-checked"
|
|
39
34
|
],
|
|
40
35
|
separator: [
|
|
41
36
|
"my-menu-separator-margin",
|
|
@@ -43,10 +38,15 @@ const menuVariants = tv({
|
|
|
43
38
|
"bg-menu-separator-bg"
|
|
44
39
|
],
|
|
45
40
|
itemText: [
|
|
46
|
-
"flex-grow"
|
|
41
|
+
"min-w-0 flex-grow truncate"
|
|
42
|
+
],
|
|
43
|
+
itemIndicator: [
|
|
44
|
+
"-translate-y-1/2 absolute end-(--popup-item-x) top-1/2",
|
|
45
|
+
"flex items-center justify-center",
|
|
46
|
+
"size-(--size-popup-indicator) text-popup-item-fg-checked"
|
|
47
47
|
],
|
|
48
48
|
itemIcon: [
|
|
49
|
-
"text-menu-item-icon
|
|
49
|
+
"shrink-0 text-menu-item-icon text-popup-item-fg-muted"
|
|
50
50
|
],
|
|
51
51
|
submenuIndicator: [
|
|
52
52
|
"ms-menu-submenu-indicator text-menu-submenu-indicator-fg"
|
|
@@ -54,17 +54,17 @@ const menuVariants = tv({
|
|
|
54
54
|
},
|
|
55
55
|
variants: {
|
|
56
56
|
size: {
|
|
57
|
+
xs: {
|
|
58
|
+
content: "popup-size-xs text-menu-xs"
|
|
59
|
+
},
|
|
57
60
|
sm: {
|
|
58
|
-
content: "text-sm"
|
|
59
|
-
item: "text-sm"
|
|
61
|
+
content: "popup-size-sm text-menu-sm"
|
|
60
62
|
},
|
|
61
63
|
md: {
|
|
62
|
-
content: "text-md"
|
|
63
|
-
item: "text-md"
|
|
64
|
+
content: "popup-size-md text-menu-md"
|
|
64
65
|
},
|
|
65
66
|
lg: {
|
|
66
|
-
content: "text-lg"
|
|
67
|
-
item: "text-lg"
|
|
67
|
+
content: "popup-size-lg text-menu-lg"
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
},
|
|
@@ -88,7 +88,7 @@ function SubmenuItem({ item, parentApi, parentService, size = "md", onCheckedCha
|
|
|
88
88
|
submenuService,
|
|
89
89
|
parentService
|
|
90
90
|
]);
|
|
91
|
-
const { positioner, content, separator, optionItem, item: itemSlot, itemIcon, itemText, submenuIndicator } = menuVariants({
|
|
91
|
+
const { positioner, content, separator, optionItem, item: itemSlot, itemIcon, itemText, itemIndicator, submenuIndicator } = menuVariants({
|
|
92
92
|
size
|
|
93
93
|
});
|
|
94
94
|
const renderMenuItem = (menuItem)=>{
|
|
@@ -115,13 +115,16 @@ function SubmenuItem({ item, parentApi, parentService, size = "md", onCheckedCha
|
|
|
115
115
|
}
|
|
116
116
|
}),
|
|
117
117
|
children: [
|
|
118
|
-
menuItem.checked && /*#__PURE__*/ jsx(Icon, {
|
|
119
|
-
className: itemIcon(),
|
|
120
|
-
icon: "token-icon-check"
|
|
121
|
-
}),
|
|
122
118
|
/*#__PURE__*/ jsx("span", {
|
|
123
119
|
className: itemText(),
|
|
124
120
|
children: menuItem.label
|
|
121
|
+
}),
|
|
122
|
+
/*#__PURE__*/ jsx("span", {
|
|
123
|
+
className: itemIndicator(),
|
|
124
|
+
children: menuItem.checked && /*#__PURE__*/ jsx(Icon, {
|
|
125
|
+
icon: "token-icon-check",
|
|
126
|
+
size: "current"
|
|
127
|
+
})
|
|
125
128
|
})
|
|
126
129
|
]
|
|
127
130
|
}, menuItem.value);
|
|
@@ -205,7 +208,7 @@ function Menu({ "aria-label": ariaLabel, dir, id, closeOnSelect = true, loopFocu
|
|
|
205
208
|
"aria-label": ariaLabel
|
|
206
209
|
});
|
|
207
210
|
const api = connect(service, normalizeProps);
|
|
208
|
-
const { trigger, positioner, content, separator, optionItem, item: itemSlot, itemIcon, itemText } = menuVariants({
|
|
211
|
+
const { trigger, positioner, content, separator, optionItem, item: itemSlot, itemIcon, itemText, itemIndicator } = menuVariants({
|
|
209
212
|
size
|
|
210
213
|
});
|
|
211
214
|
const renderMenuItem = (item)=>{
|
|
@@ -232,13 +235,16 @@ function Menu({ "aria-label": ariaLabel, dir, id, closeOnSelect = true, loopFocu
|
|
|
232
235
|
}
|
|
233
236
|
}),
|
|
234
237
|
children: [
|
|
235
|
-
item.checked && /*#__PURE__*/ jsx(Icon, {
|
|
236
|
-
className: itemIcon(),
|
|
237
|
-
icon: "token-icon-check"
|
|
238
|
-
}),
|
|
239
238
|
/*#__PURE__*/ jsx("span", {
|
|
240
239
|
className: itemText(),
|
|
241
240
|
children: item.label
|
|
241
|
+
}),
|
|
242
|
+
/*#__PURE__*/ jsx("span", {
|
|
243
|
+
className: itemIndicator(),
|
|
244
|
+
children: item.checked && /*#__PURE__*/ jsx(Icon, {
|
|
245
|
+
icon: "token-icon-check",
|
|
246
|
+
size: "current"
|
|
247
|
+
})
|
|
242
248
|
})
|
|
243
249
|
]
|
|
244
250
|
}, item.value);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Pagination } from "./pagination.js";
|
|
4
|
-
code_connect.connect(Pagination, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Pagination, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1143-138", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Pagination } from "@libs/ui/molecules/pagination"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { PhoneInput } from "./phone-input.js";
|
|
4
|
-
code_connect.connect(PhoneInput, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(PhoneInput, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=2541-171", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { PhoneInput } from "@techsio/ui-kit/molecules/phone-input"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { Popover } from "./popover.js";
|
|
4
|
-
code_connect.connect(Popover, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(Popover, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1076-666", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { Popover } from "@libs/ui/molecules/popover"'
|
|
7
7
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import code_connect from "@figma/code-connect";
|
|
3
3
|
import { ProductCard } from "./product-card.js";
|
|
4
|
-
code_connect.connect(ProductCard, "https://www.figma.com/design/
|
|
4
|
+
code_connect.connect(ProductCard, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1182-51", {
|
|
5
5
|
imports: [
|
|
6
6
|
'import { ProductCard } from "@libs/ui/molecules/product-card"'
|
|
7
7
|
],
|