@techsio/ui-kit 0.40.0 → 0.41.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.
Files changed (133) hide show
  1. package/package.json +2 -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
@@ -1,47 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Button } from "./button.js";
4
- import { Tooltip } from "./tooltip.js";
5
- code_connect.connect(Tooltip, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=340-436", {
6
- imports: [
7
- 'import { Tooltip } from "@techsio/ui-kit/atoms/tooltip"',
8
- 'import { Button } from "@techsio/ui-kit/atoms/button"'
9
- ],
10
- props: {
11
- size: code_connect["enum"]("size", {
12
- sm: "sm",
13
- md: "md",
14
- lg: "lg"
15
- }),
16
- variant: code_connect["enum"]("variant", {
17
- default: "default",
18
- outline: "outline"
19
- }),
20
- placement: code_connect["enum"]("placement", {
21
- top: "top",
22
- "top-start": "top-start",
23
- "top-end": "top-end",
24
- right: "right",
25
- "right-start": "right-start",
26
- "right-end": "right-end",
27
- bottom: "bottom",
28
- "bottom-start": "bottom-start",
29
- "bottom-end": "bottom-end",
30
- left: "left",
31
- "left-start": "left-start",
32
- "left-end": "left-end"
33
- })
34
- },
35
- example: ({ placement, size, variant })=>/*#__PURE__*/ jsx(Tooltip, {
36
- content: "Tooltip content",
37
- open: true,
38
- placement: placement,
39
- size: size,
40
- variant: variant,
41
- children: /*#__PURE__*/ jsx(Button, {
42
- size: "sm",
43
- variant: "secondary",
44
- children: "Hover me"
45
- })
46
- })
47
- });
@@ -1,41 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Accordion } from "./accordion.js";
4
- code_connect.connect(Accordion, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=993-936", {
5
- imports: [
6
- 'import { Accordion } from "@libs/ui/molecules/accordion"'
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
- borderless: "borderless",
17
- child: "child"
18
- }),
19
- shadow: code_connect["enum"]("shadow", {
20
- none: "none",
21
- sm: "sm",
22
- md: "md"
23
- })
24
- },
25
- example: ({ size, variant, shadow })=>/*#__PURE__*/ jsx(Accordion, {
26
- shadow: shadow,
27
- size: size,
28
- variant: variant,
29
- children: /*#__PURE__*/ jsxs(Accordion.Item, {
30
- value: "item-1",
31
- children: [
32
- /*#__PURE__*/ jsx(Accordion.Header, {
33
- children: "Title"
34
- }),
35
- /*#__PURE__*/ jsx(Accordion.Content, {
36
- children: "Content"
37
- })
38
- ]
39
- })
40
- })
41
- });
@@ -1,31 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Breadcrumb } from "./breadcrumb.js";
4
- code_connect.connect(Breadcrumb, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=828-162", {
5
- imports: [
6
- 'import { Breadcrumb } from "@libs/ui/molecules/breadcrumb"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- })
14
- },
15
- example: ({ size })=>/*#__PURE__*/ jsxs(Breadcrumb, {
16
- size: size,
17
- children: [
18
- /*#__PURE__*/ jsx(Breadcrumb.Item, {
19
- children: /*#__PURE__*/ jsx(Breadcrumb.Link, {
20
- href: "/",
21
- children: "Home"
22
- })
23
- }),
24
- /*#__PURE__*/ jsx(Breadcrumb.Item, {
25
- children: /*#__PURE__*/ jsx(Breadcrumb.CurrentLink, {
26
- children: "Current"
27
- })
28
- })
29
- ]
30
- })
31
- });
@@ -1,34 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Carousel } from "./carousel.js";
4
- code_connect.connect(Carousel, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1190-50", {
5
- imports: [
6
- 'import { Carousel } from "@libs/ui/molecules/carousel"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- }),
14
- orientation: code_connect["enum"]("orientation", {
15
- horizontal: "horizontal",
16
- vertical: "vertical"
17
- })
18
- },
19
- example: ({ size, orientation })=>/*#__PURE__*/ jsxs(Carousel, {
20
- orientation: orientation,
21
- size: size,
22
- slideCount: 2,
23
- children: [
24
- /*#__PURE__*/ jsx(Carousel.Slide, {
25
- index: 0,
26
- children: "Slide 1"
27
- }),
28
- /*#__PURE__*/ jsx(Carousel.Slide, {
29
- index: 1,
30
- children: "Slide 2"
31
- })
32
- ]
33
- })
34
- });
@@ -1,38 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Combobox } from "./combobox.js";
4
- code_connect.connect(Combobox, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1189-153", {
5
- imports: [
6
- 'import { Combobox } from "@techsio/ui-kit/molecules/combobox"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- }),
14
- validateStatus: code_connect["enum"]("state", {
15
- default: "default",
16
- error: "error",
17
- success: "success",
18
- warning: "warning",
19
- disabled: "default"
20
- }),
21
- disabled: code_connect["enum"]("state", {
22
- default: false,
23
- error: false,
24
- success: false,
25
- warning: false,
26
- disabled: true
27
- }),
28
- required: code_connect.boolean("required")
29
- },
30
- example: ({ size, validateStatus, disabled, required })=>/*#__PURE__*/ jsx(Combobox, {
31
- disabled: disabled,
32
- items: [],
33
- label: "Label",
34
- required: required,
35
- size: size,
36
- validateStatus: validateStatus
37
- })
38
- });
@@ -1,24 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Dialog } from "./dialog.js";
4
- code_connect.connect(Dialog, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1034-67", {
5
- imports: [
6
- 'import { Dialog } from "@techsio/ui-kit/molecules/dialog"'
7
- ],
8
- props: {
9
- placement: code_connect["enum"]("placement", {
10
- center: "center",
11
- left: "left",
12
- right: "right",
13
- top: "top",
14
- bottom: "bottom"
15
- })
16
- },
17
- example: ({ placement })=>/*#__PURE__*/ jsx(Dialog, {
18
- description: "Description",
19
- placement: placement,
20
- title: "Title",
21
- triggerText: "Open",
22
- children: "Content"
23
- })
24
- });
@@ -1,41 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { FormCheckbox } from "./form-checkbox.js";
4
- code_connect.connect(FormCheckbox, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=916-487", {
5
- imports: [
6
- 'import { FormCheckbox } from "@techsio/ui-kit/molecules/form-checkbox"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- }),
14
- checked: code_connect["enum"]("state", {
15
- unchecked: false,
16
- checked: true,
17
- indeterminate: false,
18
- disabled: false
19
- }),
20
- indeterminate: code_connect["enum"]("state", {
21
- unchecked: false,
22
- checked: false,
23
- indeterminate: true,
24
- disabled: false
25
- }),
26
- disabled: code_connect["enum"]("state", {
27
- unchecked: false,
28
- checked: false,
29
- indeterminate: false,
30
- disabled: true
31
- }),
32
- children: code_connect.string("label")
33
- },
34
- example: ({ size, checked, indeterminate, disabled, children })=>/*#__PURE__*/ jsx(FormCheckbox, {
35
- checked: checked,
36
- disabled: disabled,
37
- indeterminate: indeterminate,
38
- size: size,
39
- children: children
40
- })
41
- });
@@ -1,38 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { FormInput } from "./form-input.js";
4
- code_connect.connect(FormInput, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=306-266", {
5
- imports: [
6
- 'import { FormInput } from "@techsio/ui-kit/molecules/form-input"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- }),
14
- validateStatus: code_connect["enum"]("state", {
15
- default: "default",
16
- error: "error",
17
- success: "success",
18
- warning: "warning",
19
- disabled: "default"
20
- }),
21
- disabled: code_connect["enum"]("state", {
22
- default: false,
23
- error: false,
24
- success: false,
25
- warning: false,
26
- disabled: true
27
- }),
28
- required: code_connect.boolean("required")
29
- },
30
- example: ({ size, validateStatus, disabled, required })=>/*#__PURE__*/ jsx(FormInput, {
31
- disabled: disabled,
32
- id: "field",
33
- label: "Label",
34
- required: required,
35
- size: size,
36
- validateStatus: validateStatus
37
- })
38
- });
@@ -1,67 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { NumericInput } from "../atoms/numeric-input.js";
4
- import { FormNumericInput } from "./form-numeric-input.js";
5
- code_connect.connect(FormNumericInput, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=603-143", {
6
- imports: [
7
- 'import { NumericInput } from "@techsio/ui-kit/atoms/numeric-input"',
8
- 'import { FormNumericInput } from "@techsio/ui-kit/molecules/form-numeric-input"'
9
- ],
10
- props: {
11
- size: code_connect["enum"]("size", {
12
- sm: "sm",
13
- md: "md",
14
- lg: "lg"
15
- }),
16
- validateStatus: code_connect["enum"]("state", {
17
- default: "default",
18
- error: "error",
19
- success: "success",
20
- warning: "warning",
21
- disabled: "default",
22
- readonly: "default"
23
- }),
24
- required: code_connect["enum"]("required", {
25
- true: true,
26
- false: false
27
- }),
28
- disabled: code_connect["enum"]("state", {
29
- default: false,
30
- error: false,
31
- success: false,
32
- warning: false,
33
- disabled: true,
34
- readonly: false
35
- }),
36
- readOnly: code_connect["enum"]("state", {
37
- default: false,
38
- error: false,
39
- success: false,
40
- warning: false,
41
- disabled: false,
42
- readonly: true
43
- })
44
- },
45
- example: ({ disabled, readOnly, required, size, validateStatus })=>/*#__PURE__*/ jsx(FormNumericInput, {
46
- defaultValue: 42,
47
- disabled: disabled,
48
- helpText: "Enter value between 0-100",
49
- id: "quantity",
50
- label: "Quantity",
51
- readOnly: readOnly,
52
- required: required,
53
- size: size,
54
- validateStatus: validateStatus,
55
- children: /*#__PURE__*/ jsxs(NumericInput.Control, {
56
- children: [
57
- /*#__PURE__*/ jsx(NumericInput.Input, {}),
58
- /*#__PURE__*/ jsxs(NumericInput.TriggerContainer, {
59
- children: [
60
- /*#__PURE__*/ jsx(NumericInput.IncrementTrigger, {}),
61
- /*#__PURE__*/ jsx(NumericInput.DecrementTrigger, {})
62
- ]
63
- })
64
- ]
65
- })
66
- })
67
- });
@@ -1,38 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { FormTextarea } from "./form-textarea.js";
4
- code_connect.connect(FormTextarea, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=929-317", {
5
- imports: [
6
- 'import { FormTextarea } from "@techsio/ui-kit/molecules/form-textarea"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- }),
14
- validateStatus: code_connect["enum"]("state", {
15
- default: "default",
16
- error: "error",
17
- success: "success",
18
- warning: "warning",
19
- disabled: "default"
20
- }),
21
- disabled: code_connect["enum"]("state", {
22
- default: false,
23
- error: false,
24
- success: false,
25
- warning: false,
26
- disabled: true
27
- }),
28
- required: code_connect.boolean("required")
29
- },
30
- example: ({ size, validateStatus, disabled, required })=>/*#__PURE__*/ jsx(FormTextarea, {
31
- disabled: disabled,
32
- id: "field",
33
- label: "Label",
34
- required: required,
35
- size: size,
36
- validateStatus: validateStatus
37
- })
38
- });
@@ -1,26 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Menu } from "./menu.js";
4
- code_connect.connect(Menu, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1183-26", {
5
- imports: [
6
- 'import { Menu } from "@libs/ui/molecules/menu"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- })
14
- },
15
- example: ({ size })=>/*#__PURE__*/ jsx(Menu, {
16
- items: [
17
- {
18
- type: "action",
19
- value: "item-1",
20
- label: "Item 1"
21
- }
22
- ],
23
- size: size,
24
- triggerText: "Open"
25
- })
26
- });
@@ -1,22 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Pagination } from "./pagination.js";
4
- code_connect.connect(Pagination, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1143-138", {
5
- imports: [
6
- 'import { Pagination } from "@libs/ui/molecules/pagination"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- })
14
- },
15
- example: ({ size })=>/*#__PURE__*/ jsx(Pagination, {
16
- count: 100,
17
- defaultPage: 1,
18
- getPageUrl: (page)=>`?page=${page}`,
19
- pageSize: 10,
20
- size: size
21
- })
22
- });
@@ -1,62 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { PhoneInput } from "./phone-input.js";
4
- code_connect.connect(PhoneInput, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=2541-171", {
5
- imports: [
6
- 'import { PhoneInput } from "@techsio/ui-kit/molecules/phone-input"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- }),
14
- validateStatus: code_connect["enum"]("state", {
15
- default: "default",
16
- error: "error",
17
- success: "success",
18
- warning: "warning",
19
- disabled: "default",
20
- readonly: "default"
21
- }),
22
- disabled: code_connect["enum"]("state", {
23
- default: false,
24
- error: false,
25
- success: false,
26
- warning: false,
27
- disabled: true,
28
- readonly: false
29
- }),
30
- readOnly: code_connect["enum"]("state", {
31
- default: false,
32
- error: false,
33
- success: false,
34
- warning: false,
35
- disabled: false,
36
- readonly: true
37
- }),
38
- required: code_connect.boolean("required")
39
- },
40
- example: ({ size, validateStatus, disabled, readOnly, required })=>/*#__PURE__*/ jsxs(PhoneInput, {
41
- defaultCountry: "SK",
42
- disabled: disabled,
43
- readOnly: readOnly,
44
- required: required,
45
- size: size,
46
- validateStatus: validateStatus,
47
- children: [
48
- /*#__PURE__*/ jsx(PhoneInput.Label, {
49
- children: "Phone number"
50
- }),
51
- /*#__PURE__*/ jsxs(PhoneInput.Control, {
52
- children: [
53
- /*#__PURE__*/ jsx(PhoneInput.CountryPicker, {}),
54
- /*#__PURE__*/ jsx(PhoneInput.Input, {})
55
- ]
56
- }),
57
- /*#__PURE__*/ jsx(PhoneInput.StatusText, {
58
- children: "Helper text"
59
- })
60
- ]
61
- })
62
- });
@@ -1,38 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { Popover } from "./popover.js";
4
- code_connect.connect(Popover, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1076-666", {
5
- imports: [
6
- 'import { Popover } from "@libs/ui/molecules/popover"'
7
- ],
8
- props: {
9
- placement: code_connect["enum"]("placement", {
10
- top: "top",
11
- right: "right",
12
- bottom: "bottom",
13
- left: "left",
14
- "top-start": "top-start",
15
- "top-end": "top-end",
16
- "bottom-start": "bottom-start",
17
- "bottom-end": "bottom-end"
18
- })
19
- },
20
- example: ({ placement })=>/*#__PURE__*/ jsxs(Popover, {
21
- defaultOpen: true,
22
- id: "popover",
23
- placement: placement,
24
- children: [
25
- /*#__PURE__*/ jsx(Popover.Trigger, {
26
- children: "Open"
27
- }),
28
- /*#__PURE__*/ jsx(Popover.Positioner, {
29
- children: /*#__PURE__*/ jsxs(Popover.Content, {
30
- children: [
31
- /*#__PURE__*/ jsx(Popover.Arrow, {}),
32
- "Popover content"
33
- ]
34
- })
35
- })
36
- ]
37
- })
38
- });
@@ -1,34 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { ProductCard } from "./product-card.js";
4
- code_connect.connect(ProductCard, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1182-51", {
5
- imports: [
6
- 'import { ProductCard } from "@libs/ui/molecules/product-card"'
7
- ],
8
- props: {
9
- layout: code_connect["enum"]("layout", {
10
- column: "column",
11
- row: "row"
12
- })
13
- },
14
- example: ({ layout })=>/*#__PURE__*/ jsxs(ProductCard, {
15
- layout: layout,
16
- children: [
17
- /*#__PURE__*/ jsx(ProductCard.Image, {
18
- alt: "Product",
19
- src: "/product.jpg"
20
- }),
21
- /*#__PURE__*/ jsx(ProductCard.Name, {
22
- children: "Product Name"
23
- }),
24
- /*#__PURE__*/ jsx(ProductCard.Price, {
25
- children: "$99.00"
26
- }),
27
- /*#__PURE__*/ jsx(ProductCard.Actions, {
28
- children: /*#__PURE__*/ jsx(ProductCard.Button, {
29
- children: "Add to cart"
30
- })
31
- })
32
- ]
33
- })
34
- });
@@ -1,35 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import code_connect from "@figma/code-connect";
3
- import { RadioCard } from "./radio-card.js";
4
- code_connect.connect(RadioCard, "https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System-vol.-2?node-id=1151-66", {
5
- imports: [
6
- 'import { RadioCard } from "@libs/ui/molecules/radio-card"'
7
- ],
8
- props: {
9
- size: code_connect["enum"]("size", {
10
- sm: "sm",
11
- md: "md",
12
- lg: "lg"
13
- }),
14
- orientation: code_connect["enum"]("orientation", {
15
- horizontal: "horizontal",
16
- vertical: "vertical"
17
- }),
18
- disabled: code_connect.boolean("disabled")
19
- },
20
- example: ({ size, orientation, disabled })=>/*#__PURE__*/ jsx(RadioCard, {
21
- disabled: disabled,
22
- orientation: orientation,
23
- size: size,
24
- children: /*#__PURE__*/ jsx(RadioCard.Item, {
25
- value: "a",
26
- children: /*#__PURE__*/ jsx(RadioCard.ItemControl, {
27
- children: /*#__PURE__*/ jsx(RadioCard.ItemContent, {
28
- children: /*#__PURE__*/ jsx(RadioCard.ItemText, {
29
- children: "Option A"
30
- })
31
- })
32
- })
33
- })
34
- })
35
- });