@seed-design/react 0.0.29 → 0.0.31
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/lib/components/ContextualFloatingButton/ContextualFloatingButton.cjs +54 -0
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.d.ts +8 -0
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.d.ts.map +1 -0
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.js +31 -0
- package/lib/components/ContextualFloatingButton/index.cjs +9 -0
- package/lib/components/ContextualFloatingButton/index.d.ts +2 -0
- package/lib/components/ContextualFloatingButton/index.d.ts.map +1 -0
- package/lib/components/ContextualFloatingButton/index.js +1 -0
- package/lib/components/ExtendedFab/ExtendedFab.d.ts +6 -0
- package/lib/components/ExtendedFab/ExtendedFab.d.ts.map +1 -1
- package/lib/components/Fab/Fab.d.ts +6 -0
- package/lib/components/Fab/Fab.d.ts.map +1 -1
- package/lib/components/Float/Float.cjs +97 -0
- package/lib/components/Float/Float.d.ts +17 -0
- package/lib/components/Float/Float.d.ts.map +1 -0
- package/lib/components/Float/Float.js +74 -0
- package/lib/components/Float/index.cjs +9 -0
- package/lib/components/Float/index.d.ts +2 -0
- package/lib/components/Float/index.d.ts.map +1 -0
- package/lib/components/Float/index.js +1 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.cjs +18 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.d.ts +14 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.d.ts.map +1 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.js +12 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.cjs +11 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.d.ts +2 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.d.ts.map +1 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.js +1 -0
- package/lib/components/FloatingActionButton/index.cjs +13 -0
- package/lib/components/FloatingActionButton/index.d.ts +3 -0
- package/lib/components/FloatingActionButton/index.d.ts.map +1 -0
- package/lib/components/FloatingActionButton/index.js +3 -0
- package/lib/components/Icon/Icon.d.ts +1 -1
- package/lib/components/Icon/Icon.d.ts.map +1 -1
- package/lib/components/Tabs/Tabs.namespace.cjs +5 -0
- package/lib/components/Tabs/Tabs.namespace.d.ts +1 -0
- package/lib/components/Tabs/Tabs.namespace.d.ts.map +1 -1
- package/lib/components/Tabs/Tabs.namespace.js +1 -0
- package/lib/components/Tabs/index.cjs +5 -0
- package/lib/components/Tabs/index.d.ts +1 -0
- package/lib/components/Tabs/index.d.ts.map +1 -1
- package/lib/components/Tabs/index.js +1 -0
- package/lib/components/index.cjs +15 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +6 -0
- package/lib/index.cjs +15 -0
- package/lib/index.js +6 -0
- package/lib/utils/styled.cjs +4 -0
- package/lib/utils/styled.d.ts +3 -1
- package/lib/utils/styled.d.ts.map +1 -1
- package/lib/utils/styled.js +4 -0
- package/package.json +5 -5
- package/src/components/ContextualFloatingButton/ContextualFloatingButton.tsx +49 -0
- package/src/components/ContextualFloatingButton/index.ts +4 -0
- package/src/components/ExtendedFab/ExtendedFab.tsx +6 -0
- package/src/components/Fab/Fab.tsx +6 -0
- package/src/components/Float/Float.tsx +116 -0
- package/src/components/Float/index.ts +1 -0
- package/src/components/FloatingActionButton/FloatingActionButton.namespace.tsx +8 -0
- package/src/components/FloatingActionButton/FloatingActionButton.tsx +38 -0
- package/src/components/FloatingActionButton/index.ts +10 -0
- package/src/components/Icon/Icon.tsx +1 -1
- package/src/components/Tabs/Tabs.namespace.ts +2 -0
- package/src/components/Tabs/index.ts +2 -0
- package/src/components/index.ts +3 -0
- package/src/utils/styled.tsx +10 -1
package/src/utils/styled.tsx
CHANGED
|
@@ -20,7 +20,7 @@ export function handleColor(color: string | undefined) {
|
|
|
20
20
|
return vars.$color[type]?.[value] ?? color;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export function handleDimension(dimension: string | 0 | undefined) {
|
|
23
|
+
export function handleDimension(dimension: string | 0 | undefined): string | undefined {
|
|
24
24
|
if (dimension == null) {
|
|
25
25
|
return undefined;
|
|
26
26
|
}
|
|
@@ -266,6 +266,8 @@ export interface StyleProps {
|
|
|
266
266
|
|
|
267
267
|
overflowY?: "visible" | "hidden" | "scroll" | "auto";
|
|
268
268
|
|
|
269
|
+
zIndex?: number | (string & {});
|
|
270
|
+
|
|
269
271
|
flexGrow?: 0 | 1 | (number & {});
|
|
270
272
|
|
|
271
273
|
flexShrink?: 0 | (number & {});
|
|
@@ -317,6 +319,9 @@ export interface StyleProps {
|
|
|
317
319
|
| "flexEnd"; // @deprecated Use `flex-end` instead.
|
|
318
320
|
|
|
319
321
|
gap?: Dimension | `spacingX.${SpacingX}` | `spacingY.${SpacingY}` | 0 | (string & {});
|
|
322
|
+
|
|
323
|
+
// NOTE: Not sure how to treat transform/translate right now, mark as unstable until we have a better solution.
|
|
324
|
+
unstable_transform?: string;
|
|
320
325
|
}
|
|
321
326
|
|
|
322
327
|
interface UseStyleProps extends StyleProps {
|
|
@@ -372,6 +377,7 @@ export function useStyleProps<T extends UseStyleProps>(
|
|
|
372
377
|
position,
|
|
373
378
|
overflowX,
|
|
374
379
|
overflowY,
|
|
380
|
+
zIndex,
|
|
375
381
|
flexGrow,
|
|
376
382
|
flexShrink,
|
|
377
383
|
flexDirection,
|
|
@@ -381,6 +387,7 @@ export function useStyleProps<T extends UseStyleProps>(
|
|
|
381
387
|
alignContent,
|
|
382
388
|
alignSelf,
|
|
383
389
|
gap,
|
|
390
|
+
unstable_transform,
|
|
384
391
|
style,
|
|
385
392
|
...restProps
|
|
386
393
|
} = props;
|
|
@@ -426,6 +433,7 @@ export function useStyleProps<T extends UseStyleProps>(
|
|
|
426
433
|
"--seed-box-position": position,
|
|
427
434
|
"--seed-box-overflow-x": overflowX,
|
|
428
435
|
"--seed-box-overflow-y": overflowY,
|
|
436
|
+
"--seed-box-z-index": zIndex,
|
|
429
437
|
"--seed-box-flex-grow": flexGrow,
|
|
430
438
|
"--seed-box-flex-shrink": flexShrink,
|
|
431
439
|
"--seed-box-flex-direction": handleFlexDirection(flexDirection),
|
|
@@ -434,6 +442,7 @@ export function useStyleProps<T extends UseStyleProps>(
|
|
|
434
442
|
"--seed-box-align-items": handleAlignItems(alignItems),
|
|
435
443
|
"--seed-box-align-content": handleAlignItems(alignContent),
|
|
436
444
|
"--seed-box-align-self": handleAlignItems(alignSelf),
|
|
445
|
+
"--seed-box-unstable-transform": unstable_transform,
|
|
437
446
|
...style,
|
|
438
447
|
} as React.CSSProperties,
|
|
439
448
|
restProps,
|