@digilogiclabs/saas-factory-ui 2.8.1 → 2.8.2
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/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +44 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +44 -2
- package/dist/index.mjs.map +1 -1
- package/dist/web/index.d.mts +4 -3
- package/dist/web/index.d.ts +4 -3
- package/dist/web/index.js +44 -2
- package/dist/web/index.js.map +1 -1
- package/dist/web/index.mjs +44 -2
- package/dist/web/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4612,9 +4612,10 @@ declare function TiltCard({ accent, accentSecondary, topLabel, icon, title, subt
|
|
|
4612
4612
|
* Features:
|
|
4613
4613
|
* - 1 to 6 dice; d6 renders as a full 3D cube (six faces, CSS
|
|
4614
4614
|
* transforms, standard layout — opposite faces sum to 7); d4/d8/
|
|
4615
|
-
* d10/d12/d20 render as
|
|
4616
|
-
* front + shaded back
|
|
4617
|
-
* axis with the same chaos-snap-then-settle
|
|
4615
|
+
* d10/d12/d20 render as extruded 3D polyhedron slabs (numeral
|
|
4616
|
+
* front + shaded back + stacked edge layers for real thickness)
|
|
4617
|
+
* that tumble on every axis with the same chaos-snap-then-settle
|
|
4618
|
+
* motion as the cube
|
|
4618
4619
|
* - Displayed face is structurally guaranteed to match the recorded
|
|
4619
4620
|
* value: the d6 landing rotation is DERIVED as the inverse of the
|
|
4620
4621
|
* face placement (one source of truth), and non-cube dice render
|
package/dist/index.d.ts
CHANGED
|
@@ -4612,9 +4612,10 @@ declare function TiltCard({ accent, accentSecondary, topLabel, icon, title, subt
|
|
|
4612
4612
|
* Features:
|
|
4613
4613
|
* - 1 to 6 dice; d6 renders as a full 3D cube (six faces, CSS
|
|
4614
4614
|
* transforms, standard layout — opposite faces sum to 7); d4/d8/
|
|
4615
|
-
* d10/d12/d20 render as
|
|
4616
|
-
* front + shaded back
|
|
4617
|
-
* axis with the same chaos-snap-then-settle
|
|
4615
|
+
* d10/d12/d20 render as extruded 3D polyhedron slabs (numeral
|
|
4616
|
+
* front + shaded back + stacked edge layers for real thickness)
|
|
4617
|
+
* that tumble on every axis with the same chaos-snap-then-settle
|
|
4618
|
+
* motion as the cube
|
|
4618
4619
|
* - Displayed face is structurally guaranteed to match the recorded
|
|
4619
4620
|
* value: the d6 landing rotation is DERIVED as the inverse of the
|
|
4620
4621
|
* face placement (one source of truth), and non-cube dice render
|
package/dist/index.js
CHANGED
|
@@ -31154,6 +31154,8 @@ function DiceRoller({
|
|
|
31154
31154
|
)) : (() => {
|
|
31155
31155
|
const shape = POLY_SHAPES[sides];
|
|
31156
31156
|
const shown = results?.[d] ?? sides;
|
|
31157
|
+
const depth = effectiveSize * 0.18;
|
|
31158
|
+
const edgeLayers = 16;
|
|
31157
31159
|
const cardFaceStyle = {
|
|
31158
31160
|
position: "absolute",
|
|
31159
31161
|
inset: 0,
|
|
@@ -31162,13 +31164,53 @@ function DiceRoller({
|
|
|
31162
31164
|
backfaceVisibility: "hidden"
|
|
31163
31165
|
};
|
|
31164
31166
|
return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_jsx_runtime114.Fragment, { children: [
|
|
31167
|
+
Array.from({ length: edgeLayers }, (_2, li) => {
|
|
31168
|
+
const z = -depth / 2 + depth * (li + 0.5) / edgeLayers;
|
|
31169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
|
|
31170
|
+
"svg",
|
|
31171
|
+
{
|
|
31172
|
+
viewBox: "0 0 100 100",
|
|
31173
|
+
width: "100%",
|
|
31174
|
+
height: "100%",
|
|
31175
|
+
style: {
|
|
31176
|
+
position: "absolute",
|
|
31177
|
+
inset: 0,
|
|
31178
|
+
display: "block",
|
|
31179
|
+
overflow: "visible",
|
|
31180
|
+
transform: `translateZ(${z}px)`
|
|
31181
|
+
},
|
|
31182
|
+
"aria-hidden": "true",
|
|
31183
|
+
children: [
|
|
31184
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
31185
|
+
"polygon",
|
|
31186
|
+
{
|
|
31187
|
+
points: shape.points,
|
|
31188
|
+
fill: colors.face
|
|
31189
|
+
}
|
|
31190
|
+
),
|
|
31191
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
31192
|
+
"polygon",
|
|
31193
|
+
{
|
|
31194
|
+
points: shape.points,
|
|
31195
|
+
fill: "#000",
|
|
31196
|
+
opacity: 0.22
|
|
31197
|
+
}
|
|
31198
|
+
)
|
|
31199
|
+
]
|
|
31200
|
+
},
|
|
31201
|
+
li
|
|
31202
|
+
);
|
|
31203
|
+
}),
|
|
31165
31204
|
/* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
|
|
31166
31205
|
"svg",
|
|
31167
31206
|
{
|
|
31168
31207
|
viewBox: "0 0 100 100",
|
|
31169
31208
|
width: "100%",
|
|
31170
31209
|
height: "100%",
|
|
31171
|
-
style:
|
|
31210
|
+
style: {
|
|
31211
|
+
...cardFaceStyle,
|
|
31212
|
+
transform: `translateZ(${depth / 2}px)`
|
|
31213
|
+
},
|
|
31172
31214
|
"aria-hidden": "true",
|
|
31173
31215
|
children: [
|
|
31174
31216
|
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
@@ -31224,7 +31266,7 @@ function DiceRoller({
|
|
|
31224
31266
|
height: "100%",
|
|
31225
31267
|
style: {
|
|
31226
31268
|
...cardFaceStyle,
|
|
31227
|
-
transform:
|
|
31269
|
+
transform: `rotateY(180deg) translateZ(${depth / 2}px)`
|
|
31228
31270
|
},
|
|
31229
31271
|
"aria-hidden": "true",
|
|
31230
31272
|
children: [
|