@polastack/design-system 0.1.11 → 0.1.13
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/README.md +4 -1
- package/dist/index.js +22 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/styles/globals.css +6 -0
package/README.md
CHANGED
|
@@ -63,7 +63,7 @@ function App() {
|
|
|
63
63
|
## コンポーネント一覧
|
|
64
64
|
|
|
65
65
|
### コアアトム
|
|
66
|
-
Button, Badge, Avatar, Separator, Skeleton, Spinner, Card, Tooltip, Toast
|
|
66
|
+
Button, Badge, Avatar, AvatarGroup, Separator, Skeleton, Spinner, Card, Tooltip, Toast
|
|
67
67
|
|
|
68
68
|
### フォーム
|
|
69
69
|
Label, Input, Textarea, Checkbox, RadioGroup, Switch, Select, Combobox, DatePicker, NumberInput, FormField, DynamicFormField, FormLayout
|
|
@@ -77,6 +77,9 @@ Popover, DropdownMenu, Dialog, CommandPalette, Drawer, AppShell
|
|
|
77
77
|
### PWA
|
|
78
78
|
BottomNavigation, OfflineIndicator, InstallPrompt, PullToRefresh
|
|
79
79
|
|
|
80
|
+
### チャート / ダッシュボード
|
|
81
|
+
StatCard, ChartContainer, chartColors (tokens)
|
|
82
|
+
|
|
80
83
|
### テーマ
|
|
81
84
|
ThemeProvider, useTheme
|
|
82
85
|
|
package/dist/index.js
CHANGED
|
@@ -572,11 +572,11 @@ Skeleton.displayName = "Skeleton";
|
|
|
572
572
|
import * as React9 from "react";
|
|
573
573
|
import { cva as cva4 } from "class-variance-authority";
|
|
574
574
|
import { jsx as jsx8, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
575
|
-
var spinnerVariants = cva4("
|
|
575
|
+
var spinnerVariants = cva4("", {
|
|
576
576
|
variants: {
|
|
577
577
|
size: {
|
|
578
578
|
sm: "h-4 w-4",
|
|
579
|
-
md: "h-
|
|
579
|
+
md: "h-5 w-5",
|
|
580
580
|
lg: "h-8 w-8"
|
|
581
581
|
}
|
|
582
582
|
},
|
|
@@ -584,36 +584,33 @@ var spinnerVariants = cva4("animate-spin", {
|
|
|
584
584
|
size: "md"
|
|
585
585
|
}
|
|
586
586
|
});
|
|
587
|
+
var BARS = 8;
|
|
587
588
|
var Spinner = React9.forwardRef(
|
|
588
589
|
({ className, size, ...props }, ref) => /* @__PURE__ */ jsxs2("div", { ref, role: "status", "aria-label": "Loading", ...props, children: [
|
|
589
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ jsx8(
|
|
590
591
|
"svg",
|
|
591
592
|
{
|
|
592
593
|
className: cn(spinnerVariants({ size }), className),
|
|
593
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
594
|
-
fill: "none",
|
|
595
594
|
viewBox: "0 0 24 24",
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
className: "opacity-75",
|
|
612
|
-
fill: "currentColor",
|
|
613
|
-
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
595
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
596
|
+
fill: "currentColor",
|
|
597
|
+
children: Array.from({ length: BARS }, (_, i) => /* @__PURE__ */ jsx8(
|
|
598
|
+
"rect",
|
|
599
|
+
{
|
|
600
|
+
x: "11",
|
|
601
|
+
y: "2",
|
|
602
|
+
width: "2",
|
|
603
|
+
height: "6",
|
|
604
|
+
rx: "1",
|
|
605
|
+
opacity: 1 - i * (0.85 / BARS),
|
|
606
|
+
transform: `rotate(${i * (360 / BARS)} 12 12)`,
|
|
607
|
+
style: {
|
|
608
|
+
animation: "spinner-fade 0.8s ease-in-out infinite",
|
|
609
|
+
animationDelay: `${-i * 0.1}s`
|
|
614
610
|
}
|
|
615
|
-
|
|
616
|
-
|
|
611
|
+
},
|
|
612
|
+
i
|
|
613
|
+
))
|
|
617
614
|
}
|
|
618
615
|
),
|
|
619
616
|
/* @__PURE__ */ jsx8("span", { className: "sr-only", children: "Loading..." })
|