@techsio/ui-kit 0.40.1 → 0.41.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.
Files changed (133) hide show
  1. package/package.json +3 -2
  2. package/dist/atoms/action-icon.figma.js +0 -25
  3. package/dist/atoms/badge.figma.js +0 -33
  4. package/dist/atoms/button.figma.js +0 -76
  5. package/dist/atoms/checkbox.figma.js +0 -35
  6. package/dist/atoms/icon.figma.js +0 -33
  7. package/dist/atoms/image.figma.js +0 -21
  8. package/dist/atoms/input.figma.js +0 -34
  9. package/dist/atoms/label.figma.js +0 -25
  10. package/dist/atoms/link-button.figma.js +0 -42
  11. package/dist/atoms/link.figma.js +0 -15
  12. package/dist/atoms/numeric-input.figma.js +0 -52
  13. package/dist/atoms/rating.figma.js +0 -38
  14. package/dist/atoms/skeleton.figma.js +0 -119
  15. package/dist/atoms/status-text.figma.js +0 -27
  16. package/dist/atoms/textarea.figma.js +0 -38
  17. package/dist/atoms/tooltip.figma.js +0 -47
  18. package/dist/molecules/accordion.figma.js +0 -41
  19. package/dist/molecules/breadcrumb.figma.js +0 -31
  20. package/dist/molecules/carousel.figma.js +0 -34
  21. package/dist/molecules/combobox.figma.js +0 -38
  22. package/dist/molecules/dialog.figma.js +0 -24
  23. package/dist/molecules/form-checkbox.figma.js +0 -41
  24. package/dist/molecules/form-input.figma.js +0 -38
  25. package/dist/molecules/form-numeric-input.figma.js +0 -67
  26. package/dist/molecules/form-textarea.figma.js +0 -38
  27. package/dist/molecules/menu.figma.js +0 -26
  28. package/dist/molecules/pagination.figma.js +0 -22
  29. package/dist/molecules/phone-input.figma.js +0 -62
  30. package/dist/molecules/popover.figma.js +0 -38
  31. package/dist/molecules/product-card.figma.js +0 -34
  32. package/dist/molecules/radio-card.figma.js +0 -35
  33. package/dist/molecules/radio-group.figma.js +0 -45
  34. package/dist/molecules/search-form.figma.js +0 -28
  35. package/dist/molecules/select.figma.js +0 -46
  36. package/dist/molecules/slider.figma.js +0 -30
  37. package/dist/molecules/steps.figma.js +0 -33
  38. package/dist/molecules/switch.figma.js +0 -33
  39. package/dist/molecules/tabs.figma.js +0 -46
  40. package/dist/molecules/toast.figma.js +0 -34
  41. package/dist/molecules/tree-view.figma.js +0 -30
  42. package/dist/organisms/footer.figma.js +0 -51
  43. package/dist/organisms/gallery.figma.js +0 -34
  44. package/dist/organisms/header.figma.js +0 -58
  45. package/dist/organisms/table.figma.js +0 -87
  46. package/dist/src/atoms/action-icon.figma.d.ts +0 -2
  47. package/dist/src/atoms/action-icon.figma.d.ts.map +0 -1
  48. package/dist/src/atoms/badge.figma.d.ts +0 -2
  49. package/dist/src/atoms/badge.figma.d.ts.map +0 -1
  50. package/dist/src/atoms/button.figma.d.ts +0 -2
  51. package/dist/src/atoms/button.figma.d.ts.map +0 -1
  52. package/dist/src/atoms/checkbox.figma.d.ts +0 -2
  53. package/dist/src/atoms/checkbox.figma.d.ts.map +0 -1
  54. package/dist/src/atoms/icon.figma.d.ts +0 -2
  55. package/dist/src/atoms/icon.figma.d.ts.map +0 -1
  56. package/dist/src/atoms/image.figma.d.ts +0 -2
  57. package/dist/src/atoms/image.figma.d.ts.map +0 -1
  58. package/dist/src/atoms/input.figma.d.ts +0 -2
  59. package/dist/src/atoms/input.figma.d.ts.map +0 -1
  60. package/dist/src/atoms/label.figma.d.ts +0 -2
  61. package/dist/src/atoms/label.figma.d.ts.map +0 -1
  62. package/dist/src/atoms/link-button.figma.d.ts +0 -2
  63. package/dist/src/atoms/link-button.figma.d.ts.map +0 -1
  64. package/dist/src/atoms/link.figma.d.ts +0 -2
  65. package/dist/src/atoms/link.figma.d.ts.map +0 -1
  66. package/dist/src/atoms/numeric-input.figma.d.ts +0 -2
  67. package/dist/src/atoms/numeric-input.figma.d.ts.map +0 -1
  68. package/dist/src/atoms/rating.figma.d.ts +0 -2
  69. package/dist/src/atoms/rating.figma.d.ts.map +0 -1
  70. package/dist/src/atoms/skeleton.figma.d.ts +0 -2
  71. package/dist/src/atoms/skeleton.figma.d.ts.map +0 -1
  72. package/dist/src/atoms/status-text.figma.d.ts +0 -2
  73. package/dist/src/atoms/status-text.figma.d.ts.map +0 -1
  74. package/dist/src/atoms/textarea.figma.d.ts +0 -2
  75. package/dist/src/atoms/textarea.figma.d.ts.map +0 -1
  76. package/dist/src/atoms/tooltip.figma.d.ts +0 -2
  77. package/dist/src/atoms/tooltip.figma.d.ts.map +0 -1
  78. package/dist/src/molecules/accordion.figma.d.ts +0 -2
  79. package/dist/src/molecules/accordion.figma.d.ts.map +0 -1
  80. package/dist/src/molecules/breadcrumb.figma.d.ts +0 -2
  81. package/dist/src/molecules/breadcrumb.figma.d.ts.map +0 -1
  82. package/dist/src/molecules/carousel.figma.d.ts +0 -2
  83. package/dist/src/molecules/carousel.figma.d.ts.map +0 -1
  84. package/dist/src/molecules/combobox.figma.d.ts +0 -2
  85. package/dist/src/molecules/combobox.figma.d.ts.map +0 -1
  86. package/dist/src/molecules/dialog.figma.d.ts +0 -2
  87. package/dist/src/molecules/dialog.figma.d.ts.map +0 -1
  88. package/dist/src/molecules/form-checkbox.figma.d.ts +0 -2
  89. package/dist/src/molecules/form-checkbox.figma.d.ts.map +0 -1
  90. package/dist/src/molecules/form-input.figma.d.ts +0 -2
  91. package/dist/src/molecules/form-input.figma.d.ts.map +0 -1
  92. package/dist/src/molecules/form-numeric-input.figma.d.ts +0 -2
  93. package/dist/src/molecules/form-numeric-input.figma.d.ts.map +0 -1
  94. package/dist/src/molecules/form-textarea.figma.d.ts +0 -2
  95. package/dist/src/molecules/form-textarea.figma.d.ts.map +0 -1
  96. package/dist/src/molecules/menu.figma.d.ts +0 -2
  97. package/dist/src/molecules/menu.figma.d.ts.map +0 -1
  98. package/dist/src/molecules/pagination.figma.d.ts +0 -2
  99. package/dist/src/molecules/pagination.figma.d.ts.map +0 -1
  100. package/dist/src/molecules/phone-input.figma.d.ts +0 -2
  101. package/dist/src/molecules/phone-input.figma.d.ts.map +0 -1
  102. package/dist/src/molecules/popover.figma.d.ts +0 -2
  103. package/dist/src/molecules/popover.figma.d.ts.map +0 -1
  104. package/dist/src/molecules/product-card.figma.d.ts +0 -2
  105. package/dist/src/molecules/product-card.figma.d.ts.map +0 -1
  106. package/dist/src/molecules/radio-card.figma.d.ts +0 -2
  107. package/dist/src/molecules/radio-card.figma.d.ts.map +0 -1
  108. package/dist/src/molecules/radio-group.figma.d.ts +0 -2
  109. package/dist/src/molecules/radio-group.figma.d.ts.map +0 -1
  110. package/dist/src/molecules/search-form.figma.d.ts +0 -2
  111. package/dist/src/molecules/search-form.figma.d.ts.map +0 -1
  112. package/dist/src/molecules/select.figma.d.ts +0 -2
  113. package/dist/src/molecules/select.figma.d.ts.map +0 -1
  114. package/dist/src/molecules/slider.figma.d.ts +0 -2
  115. package/dist/src/molecules/slider.figma.d.ts.map +0 -1
  116. package/dist/src/molecules/steps.figma.d.ts +0 -2
  117. package/dist/src/molecules/steps.figma.d.ts.map +0 -1
  118. package/dist/src/molecules/switch.figma.d.ts +0 -2
  119. package/dist/src/molecules/switch.figma.d.ts.map +0 -1
  120. package/dist/src/molecules/tabs.figma.d.ts +0 -2
  121. package/dist/src/molecules/tabs.figma.d.ts.map +0 -1
  122. package/dist/src/molecules/toast.figma.d.ts +0 -2
  123. package/dist/src/molecules/toast.figma.d.ts.map +0 -1
  124. package/dist/src/molecules/tree-view.figma.d.ts +0 -2
  125. package/dist/src/molecules/tree-view.figma.d.ts.map +0 -1
  126. package/dist/src/organisms/footer.figma.d.ts +0 -2
  127. package/dist/src/organisms/footer.figma.d.ts.map +0 -1
  128. package/dist/src/organisms/gallery.figma.d.ts +0 -2
  129. package/dist/src/organisms/gallery.figma.d.ts.map +0 -1
  130. package/dist/src/organisms/header.figma.d.ts +0 -2
  131. package/dist/src/organisms/header.figma.d.ts.map +0 -1
  132. package/dist/src/organisms/table.figma.d.ts +0 -2
  133. package/dist/src/organisms/table.figma.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@techsio/ui-kit",
3
- "version": "0.40.1",
3
+ "version": "0.41.1",
4
+ "license": "MIT",
4
5
  "type": "module",
5
6
  "repository": {
6
7
  "type": "git",
@@ -122,7 +123,7 @@
122
123
  },
123
124
  "devDependencies": {
124
125
  "@eslint/js": "^9.39.1",
125
- "@figma/code-connect": "^1.4.3",
126
+ "@figma/code-connect": "^2.0.0",
126
127
  "@iconify/json": "^2.2.409",
127
128
  "@rsbuild/core": "1.6.7",
128
129
  "@rsbuild/plugin-react": "^1.4.1",
@@ -1,25 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { ActionIcon } from "./action-icon.js";
4
- code_connect.connect(ActionIcon, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=2668-36", {
5
- imports: [
6
- 'import { ActionIcon } from "@techsio/ui-kit/atoms/action-icon"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- }),
14
- tone: code_connect["enum"]("tone", {
15
- neutral: "neutral",
16
- danger: "danger"
17
- })
18
- },
19
- example: ({ size, tone })=>/*#__PURE__*/ jsx(ActionIcon, {
20
- "aria-label": "Clear",
21
- icon: "token-icon-close",
22
- size: size,
23
- tone: tone
24
- })
25
- });
@@ -1,33 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Badge } from "./badge.js";
4
- code_connect.connect(Badge, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1-7735", {
5
- imports: [
6
- 'import { Badge } from "@techsio/ui-kit/atoms/badge"'
7
- ],
8
- props: {
9
- variant: code_connect["enum"]("variant", {
10
- primary: "primary",
11
- secondary: "secondary",
12
- tertiary: "tertiary",
13
- discount: "discount",
14
- info: "info",
15
- success: "success",
16
- warning: "warning",
17
- danger: "danger",
18
- outline: "outline"
19
- }),
20
- size: code_connect["enum"]("size", {
21
- sm: "sm",
22
- md: "md",
23
- lg: "lg",
24
- xl: "xl"
25
- }),
26
- children: code_connect.string("children")
27
- },
28
- example: ({ variant, size, children })=>/*#__PURE__*/ jsx(Badge, {
29
- size: size,
30
- variant: variant,
31
- children: children
32
- })
33
- });
@@ -1,76 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Button } from "./button.js";
4
- code_connect.connect(Button, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1-5627", {
5
- imports: [
6
- 'import { Button } from "@techsio/ui-kit/atoms/button"'
7
- ],
8
- props: {
9
- variant: code_connect["enum"]("variant", {
10
- primary: "primary",
11
- secondary: "secondary",
12
- tertiary: "tertiary",
13
- warning: "warning",
14
- danger: "danger"
15
- }),
16
- theme: code_connect["enum"]("theme", {
17
- solid: "solid",
18
- light: "light",
19
- outlined: "outlined",
20
- borderless: "borderless"
21
- }),
22
- size: code_connect["enum"]("size", {
23
- sm: "sm",
24
- md: "md",
25
- lg: "lg"
26
- }),
27
- children: code_connect.string("children"),
28
- loadingText: code_connect.string("loadingText"),
29
- showLeftIcon: code_connect.boolean("showLeftIcon"),
30
- iconLeft: code_connect.instance("iconLeft"),
31
- showRightIcon: code_connect.boolean("showRightIcon"),
32
- iconRight: code_connect.instance("iconRight"),
33
- disabled: code_connect["enum"]("state", {
34
- default: false,
35
- hover: false,
36
- active: false,
37
- focus: false,
38
- disabled: true,
39
- loading: false
40
- }),
41
- isLoading: code_connect["enum"]("state", {
42
- default: false,
43
- hover: false,
44
- active: false,
45
- focus: false,
46
- disabled: false,
47
- loading: true
48
- })
49
- },
50
- example: ({ children, disabled, iconLeft, iconRight, showLeftIcon, showRightIcon, isLoading, loadingText, size, theme, variant })=>{
51
- const sharedProps = {
52
- disabled,
53
- isLoading,
54
- loadingText,
55
- size,
56
- theme,
57
- variant
58
- };
59
- if (showRightIcon) return /*#__PURE__*/ jsx(Button, {
60
- ...sharedProps,
61
- icon: iconRight,
62
- iconPosition: "right",
63
- children: children
64
- });
65
- if (showLeftIcon) return /*#__PURE__*/ jsx(Button, {
66
- ...sharedProps,
67
- icon: iconLeft,
68
- iconPosition: "left",
69
- children: children
70
- });
71
- return /*#__PURE__*/ jsx(Button, {
72
- ...sharedProps,
73
- children: children
74
- });
75
- }
76
- });
@@ -1,35 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Checkbox } from "./checkbox.js";
4
- code_connect.connect(Checkbox, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=428-9", {
5
- imports: [
6
- 'import { Checkbox } from "@techsio/ui-kit/atoms/checkbox"'
7
- ],
8
- props: {
9
- checked: code_connect["enum"]("state", {
10
- unchecked: false,
11
- checked: true,
12
- indeterminate: false,
13
- error: false
14
- }),
15
- indeterminate: code_connect["enum"]("state", {
16
- unchecked: false,
17
- checked: false,
18
- indeterminate: true,
19
- error: false
20
- }),
21
- disabled: code_connect.boolean("disabled"),
22
- invalid: code_connect["enum"]("state", {
23
- unchecked: false,
24
- checked: false,
25
- indeterminate: false,
26
- error: true
27
- })
28
- },
29
- example: ({ checked, indeterminate, disabled, invalid })=>/*#__PURE__*/ jsx(Checkbox, {
30
- checked: checked,
31
- disabled: disabled,
32
- indeterminate: indeterminate,
33
- invalid: invalid
34
- })
35
- });
@@ -1,33 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Icon } from "./icon.js";
4
- code_connect.connect(Icon, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=365-170", {
5
- imports: [
6
- 'import { Icon } from "@techsio/ui-kit/atoms/icon"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- current: "current",
11
- xs: "xs",
12
- sm: "sm",
13
- md: "md",
14
- lg: "lg",
15
- xl: "xl",
16
- "2xl": "2xl"
17
- }),
18
- color: code_connect["enum"]("color", {
19
- current: "current",
20
- primary: "primary",
21
- secondary: "secondary",
22
- danger: "danger",
23
- success: "success",
24
- warning: "warning"
25
- }),
26
- icon: code_connect.instance("icon")
27
- },
28
- example: ({ color, size, icon })=>/*#__PURE__*/ jsx(Icon, {
29
- color: color,
30
- icon: icon ?? "token-icon-plus",
31
- size: size
32
- })
33
- });
@@ -1,21 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Image } from "./image.js";
4
- code_connect.connect(Image, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=484-19", {
5
- imports: [
6
- 'import { Image } from "@techsio/ui-kit/atoms/image"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg",
13
- full: "full"
14
- })
15
- },
16
- example: ({ size })=>/*#__PURE__*/ jsx(Image, {
17
- alt: "Description",
18
- size: size,
19
- src: "/image.jpg"
20
- })
21
- });
@@ -1,34 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Input } from "./input.js";
4
- code_connect.connect(Input, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=304-107", {
5
- imports: [
6
- 'import { Input } from "@techsio/ui-kit/atoms/input"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- }),
14
- variant: code_connect["enum"]("state", {
15
- default: "default",
16
- error: "error",
17
- success: "success",
18
- warning: "warning",
19
- disabled: "default"
20
- }),
21
- disabled: code_connect["enum"]("state", {
22
- default: false,
23
- error: false,
24
- success: false,
25
- warning: false,
26
- disabled: true
27
- })
28
- },
29
- example: ({ size, variant, disabled })=>/*#__PURE__*/ jsx(Input, {
30
- disabled: disabled,
31
- size: size,
32
- variant: variant
33
- })
34
- });
@@ -1,25 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Label } from "./label.js";
4
- code_connect.connect(Label, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1-7840", {
5
- imports: [
6
- 'import { Label } from "@techsio/ui-kit/atoms/label"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg",
13
- current: "current"
14
- }),
15
- disabled: code_connect.boolean("disabled"),
16
- required: code_connect.boolean("required"),
17
- children: code_connect.string("children")
18
- },
19
- example: ({ size, disabled, required, children })=>/*#__PURE__*/ jsx(Label, {
20
- disabled: disabled,
21
- required: required,
22
- size: size,
23
- children: children
24
- })
25
- });
@@ -1,42 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { LinkButton } from "./link-button.js";
4
- code_connect.connect(LinkButton, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1358-1944", {
5
- imports: [
6
- 'import { LinkButton } from "@techsio/ui-kit/atoms/link-button"'
7
- ],
8
- props: {
9
- variant: code_connect["enum"]("variant", {
10
- primary: "primary",
11
- secondary: "secondary",
12
- tertiary: "tertiary",
13
- warning: "warning",
14
- danger: "danger"
15
- }),
16
- theme: code_connect["enum"]("theme", {
17
- solid: "solid",
18
- light: "light",
19
- outlined: "outlined",
20
- borderless: "borderless"
21
- }),
22
- size: code_connect["enum"]("size", {
23
- sm: "sm",
24
- md: "md",
25
- lg: "lg"
26
- }),
27
- children: code_connect.string("children"),
28
- disabled: code_connect["enum"]("state", {
29
- default: false,
30
- hover: false,
31
- disabled: true
32
- })
33
- },
34
- example: ({ variant, theme, size, children, disabled })=>/*#__PURE__*/ jsx(LinkButton, {
35
- disabled: disabled,
36
- href: "#",
37
- size: size,
38
- theme: theme,
39
- variant: variant,
40
- children: children
41
- })
42
- });
@@ -1,15 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Link } from "./link.js";
4
- code_connect.connect(Link, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1355-13", {
5
- imports: [
6
- 'import { Link } from "@techsio/ui-kit/atoms/link"'
7
- ],
8
- props: {
9
- children: code_connect.string("children")
10
- },
11
- example: ({ children })=>/*#__PURE__*/ jsx(Link, {
12
- href: "#",
13
- children: children
14
- })
15
- });
@@ -1,52 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { NumericInput } from "./numeric-input.js";
4
- code_connect.connect(NumericInput, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=607-107", {
5
- imports: [
6
- 'import { NumericInput } from "@techsio/ui-kit/atoms/numeric-input"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- }),
14
- invalid: code_connect["enum"]("state", {
15
- default: false,
16
- error: true,
17
- disabled: false,
18
- readonly: false
19
- }),
20
- disabled: code_connect["enum"]("state", {
21
- default: false,
22
- error: false,
23
- disabled: true,
24
- readonly: false
25
- }),
26
- readOnly: code_connect["enum"]("state", {
27
- default: false,
28
- error: false,
29
- disabled: false,
30
- readonly: true
31
- })
32
- },
33
- example: ({ disabled, invalid, readOnly, size })=>/*#__PURE__*/ jsx(NumericInput, {
34
- defaultValue: 42,
35
- disabled: disabled,
36
- id: "quantity",
37
- invalid: invalid,
38
- readOnly: readOnly,
39
- size: size,
40
- children: /*#__PURE__*/ jsxs(NumericInput.Control, {
41
- children: [
42
- /*#__PURE__*/ jsx(NumericInput.Input, {}),
43
- /*#__PURE__*/ jsxs(NumericInput.TriggerContainer, {
44
- children: [
45
- /*#__PURE__*/ jsx(NumericInput.IncrementTrigger, {}),
46
- /*#__PURE__*/ jsx(NumericInput.DecrementTrigger, {})
47
- ]
48
- })
49
- ]
50
- })
51
- })
52
- });
@@ -1,38 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Rating } from "./rating.js";
4
- code_connect.connect(Rating, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=521-336", {
5
- imports: [
6
- 'import { Rating } from "@techsio/ui-kit/atoms/rating"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- }),
14
- disabled: code_connect["enum"]("disabled", {
15
- true: true,
16
- false: false
17
- }),
18
- dir: code_connect["enum"]("dir", {
19
- ltr: "ltr",
20
- rtl: "rtl"
21
- }),
22
- allowHalf: code_connect.boolean("allowHalf"),
23
- value: code_connect.string("value"),
24
- count: code_connect.string("count"),
25
- labelText: code_connect.nestedProps("Label", {
26
- text: code_connect.string("text")
27
- })
28
- },
29
- example: ({ size, disabled, dir, allowHalf, value, count, labelText })=>/*#__PURE__*/ jsx(Rating, {
30
- allowHalf: allowHalf,
31
- count: Number(count),
32
- defaultValue: Number(value),
33
- dir: dir,
34
- disabled: disabled,
35
- labelText: labelText.text,
36
- size: size
37
- })
38
- });
@@ -1,119 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Skeleton } from "./skeleton.js";
4
- const placeholderBgClassByVariant = {
5
- primary: "bg-skeleton-bg-primary",
6
- secondary: "bg-skeleton-bg-secondary"
7
- };
8
- code_connect.connect(Skeleton.Rectangle, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=565-101", {
9
- imports: [
10
- 'import { Skeleton } from "@techsio/ui-kit/atoms/skeleton"'
11
- ],
12
- props: {
13
- variant: code_connect["enum"]("variant", {
14
- primary: "primary",
15
- secondary: "secondary"
16
- }),
17
- speed: code_connect["enum"]("speed", {
18
- slow: "slow",
19
- normal: "normal",
20
- fast: "fast"
21
- })
22
- },
23
- example: ({ speed, variant })=>{
24
- const placeholderBgClass = placeholderBgClassByVariant[variant];
25
- return /*#__PURE__*/ jsx(Skeleton.Rectangle, {
26
- speed: speed,
27
- variant: variant,
28
- children: /*#__PURE__*/ jsx("div", {
29
- className: `h-20 w-xs rounded-md ${placeholderBgClass}`
30
- })
31
- });
32
- }
33
- });
34
- code_connect.connect(Skeleton.Circle, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=565-198", {
35
- imports: [
36
- 'import { Skeleton } from "@techsio/ui-kit/atoms/skeleton"'
37
- ],
38
- props: {
39
- variant: code_connect["enum"]("variant", {
40
- primary: "primary",
41
- secondary: "secondary"
42
- }),
43
- speed: code_connect["enum"]("speed", {
44
- slow: "slow",
45
- normal: "normal",
46
- fast: "fast"
47
- }),
48
- size: code_connect["enum"]("size", {
49
- sm: "sm",
50
- md: "md",
51
- lg: "lg",
52
- xl: "xl"
53
- })
54
- },
55
- example: ({ size, speed, variant })=>{
56
- const placeholderBgClass = placeholderBgClassByVariant[variant];
57
- return /*#__PURE__*/ jsx(Skeleton.Circle, {
58
- size: size,
59
- speed: speed,
60
- variant: variant,
61
- children: /*#__PURE__*/ jsx("div", {
62
- className: `size-16 rounded-full ${placeholderBgClass}`
63
- })
64
- });
65
- }
66
- });
67
- code_connect.connect(Skeleton.Text, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=565-2143", {
68
- imports: [
69
- 'import { Skeleton } from "@techsio/ui-kit/atoms/skeleton"'
70
- ],
71
- props: {
72
- variant: code_connect["enum"]("variant", {
73
- primary: "primary",
74
- secondary: "secondary"
75
- }),
76
- speed: code_connect["enum"]("speed", {
77
- slow: "slow",
78
- normal: "normal",
79
- fast: "fast"
80
- }),
81
- size: code_connect["enum"]("size", {
82
- sm: "sm",
83
- md: "md",
84
- lg: "lg",
85
- xl: "xl"
86
- }),
87
- noOfLines: code_connect["enum"]("noOfLines", {
88
- 1: 1,
89
- 3: 3,
90
- 5: 5
91
- }),
92
- lastLineWidth: code_connect["enum"]("lastLineWidth", {
93
- "60%": "60%",
94
- "80%": "80%",
95
- "90%": "90%"
96
- })
97
- },
98
- example: ({ lastLineWidth, noOfLines, size, speed, variant })=>{
99
- const placeholderBgClass = placeholderBgClassByVariant[variant];
100
- return /*#__PURE__*/ jsx(Skeleton.Text, {
101
- lastLineWidth: lastLineWidth,
102
- noOfLines: noOfLines,
103
- size: size,
104
- speed: speed,
105
- variant: variant,
106
- children: /*#__PURE__*/ jsxs("div", {
107
- className: "w-xs space-y-150",
108
- children: [
109
- /*#__PURE__*/ jsx("div", {
110
- className: `h-4 w-full rounded-sm ${placeholderBgClass}`
111
- }),
112
- /*#__PURE__*/ jsx("div", {
113
- className: `h-4 w-4/5 rounded-sm ${placeholderBgClass}`
114
- })
115
- ]
116
- })
117
- });
118
- }
119
- });
@@ -1,27 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { StatusText } from "./status-text.js";
4
- code_connect.connect(StatusText, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=304-35", {
5
- imports: [
6
- 'import { StatusText } from "@libs/ui/atoms/status-text"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- }),
14
- status: code_connect["enum"]("status", {
15
- default: "default",
16
- error: "error",
17
- success: "success",
18
- warning: "warning"
19
- }),
20
- children: code_connect.string("children")
21
- },
22
- example: ({ size, status, children })=>/*#__PURE__*/ jsx(StatusText, {
23
- size: size,
24
- status: status,
25
- children: children
26
- })
27
- });
@@ -1,38 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Textarea } from "./textarea.js";
4
- code_connect.connect(Textarea, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=502-93", {
5
- imports: [
6
- 'import { Textarea } from "@techsio/ui-kit/atoms/textarea"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- }),
14
- variant: code_connect["enum"]("variant", {
15
- default: "default",
16
- error: "error",
17
- success: "success",
18
- warning: "warning",
19
- borderless: "borderless"
20
- }),
21
- disabled: code_connect["enum"]("state", {
22
- default: false,
23
- disabled: true,
24
- readonly: false
25
- }),
26
- readonly: code_connect["enum"]("state", {
27
- default: false,
28
- disabled: false,
29
- readonly: true
30
- })
31
- },
32
- example: ({ size, variant, disabled, readonly })=>/*#__PURE__*/ jsx(Textarea, {
33
- disabled: disabled,
34
- readonly: readonly,
35
- size: size,
36
- variant: variant
37
- })
38
- });