+
+ {rows.map(({ id, label, value, emphasis, note }) => (
+
+
- {label}
+ -
+ {value}
+ {note ? {note} : null}
+
+
+ ))}
+
+
- {totalLabel}
+ - {totalValue}
+
+
+ {pending ? (
+
+ {pendingLabel}
+
+ ) : null}
+ {footer ?
{footer}
: null}
+ {actions ? (
+
+ {actions}
+
+ ) : null}
+
+ )
+}
diff --git a/libs/ui/src/organisms/line-item.figma.ts b/libs/ui/src/organisms/line-item.figma.ts
new file mode 100644
index 0000000000..4af1169bbf
--- /dev/null
+++ b/libs/ui/src/organisms/line-item.figma.ts
@@ -0,0 +1,47 @@
+// url=https://www.figma.com/design/gi5GUSWwAeXknaKEeLqK5w/New-Design-System?node-id=3900-594
+// source=https://github.com/TechsioCZ/new-engine/blob/feat/ui-kit-cart-presentation/libs/ui/src/organisms/line-item.tsx
+// component=LineItem
+
+import figma from "figma"
+
+const instance = figma.selectedInstance
+const title = instance.getString("title")
+const layout = instance.getEnum("layout", {
+ default: "default",
+ compact: "compact",
+})
+const readOnly = instance.getEnum("readOnly", { false: false, true: true })
+const pending = instance.getEnum("pending", { false: false, true: true })
+const pendingLabel = instance.getString("pendingLabel")
+const readOnlyLabel = instance.getString("readOnlyLabel")
+const image = instance.getBoolean("showImage") ? instance.getSlot("Image") : []
+const price = instance.getBoolean("showPrice") ? instance.getSlot("Price") : []
+const options = instance.getBoolean("showOptions")
+ ? instance.getString("options")
+ : undefined
+const feedback = instance.getBoolean("showFeedback")
+ ? instance.getSlot("Feedback")
+ : []
+const quantity = instance.getSlot("Quantity")
+const actions = instance.getSlot("Actions")
+
+export default {
+ id: "LineItem",
+ imports: ['import { LineItem } from "@techsio/ui-kit/organisms/line-item"'],
+ example: figma.code`