@polastack/design-system 0.1.25 → 0.1.27

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 CHANGED
@@ -134,11 +134,11 @@ pnpm size
134
134
 
135
135
  ## ブランドカラー
136
136
 
137
- メインカラー: **#1BA491**(ティール)
137
+ メインカラー: **#13C3A0**(ティール)
138
138
 
139
139
  | カテゴリ | カラー |
140
140
  |---------|--------|
141
- | Primary | Teal (#1BA491) |
141
+ | Primary | Teal (#13C3A0) |
142
142
  | Success | Green |
143
143
  | Warning | Amber |
144
144
  | Error | Red |
package/dist/index.d.ts CHANGED
@@ -819,14 +819,14 @@ declare const ChartContainer: React.ForwardRefExoticComponent<ChartContainerProp
819
819
  */
820
820
  declare const chartColors: {
821
821
  /** Solid colors for bars, lines, dots, and legends */
822
- readonly categorical: readonly ["#1BA491", "#4E79A7", "#E8A838", "#D4687A", "#7C6BB1", "#6BA368", "#5BA4CF", "#B07A53"];
822
+ readonly categorical: readonly ["#13C3A0", "#4E79A7", "#E8A838", "#D4687A", "#7C6BB1", "#6BA368", "#5BA4CF", "#B07A53"];
823
823
  /** Subtle tints — 1:1 paired with categorical for area fills and backgrounds */
824
- readonly subtle: readonly ["#E6F7F4", "#E8EEF4", "#FDF3E0", "#FCEAED", "#EEEBF5", "#EAF3EA", "#E6F1F8", "#F4EDE6"];
824
+ readonly subtle: readonly ["#E8FAF6", "#E8EEF4", "#FDF3E0", "#FCEAED", "#EEEBF5", "#EAF3EA", "#E6F1F8", "#F4EDE6"];
825
825
  /** Dark-mode subtle tints — 1:1 paired with categorical */
826
826
  readonly subtleDark: readonly ["#0C2B26", "#1A2535", "#2C2312", "#2C1A1E", "#1E1A2C", "#1A2C1A", "#1A2535", "#2C2418"];
827
827
  /** Semantic colors for status-meaning charts (P&L, health scores, etc.) */
828
828
  readonly semantic: {
829
- readonly positive: "#1BA491";
829
+ readonly positive: "#13C3A0";
830
830
  readonly negative: "#D4687A";
831
831
  readonly neutral: "#94939B";
832
832
  readonly warning: "#E8A838";
package/dist/index.js CHANGED
@@ -875,16 +875,27 @@ function useToast() {
875
875
  // src/components/toast/toaster.tsx
876
876
  import { jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
877
877
  function Toaster() {
878
- const { toasts } = useToast();
878
+ const { toasts, dismiss } = useToast();
879
879
  return /* @__PURE__ */ jsxs3(ToastProvider, { children: [
880
- toasts.map(({ id, title, description, action, ...props }) => /* @__PURE__ */ jsxs3(Toast, { ...props, children: [
881
- /* @__PURE__ */ jsxs3("div", { className: "grid gap-1", children: [
882
- title && /* @__PURE__ */ jsx12(ToastTitle, { children: title }),
883
- description && /* @__PURE__ */ jsx12(ToastDescription, { children: description })
884
- ] }),
885
- action,
886
- /* @__PURE__ */ jsx12(ToastClose, {})
887
- ] }, id)),
880
+ toasts.map(({ id, title, description, action, open, ...props }) => /* @__PURE__ */ jsxs3(
881
+ Toast,
882
+ {
883
+ open,
884
+ onOpenChange: (isOpen) => {
885
+ if (!isOpen) dismiss(id);
886
+ },
887
+ ...props,
888
+ children: [
889
+ /* @__PURE__ */ jsxs3("div", { className: "grid gap-1", children: [
890
+ title && /* @__PURE__ */ jsx12(ToastTitle, { children: title }),
891
+ description && /* @__PURE__ */ jsx12(ToastDescription, { children: description })
892
+ ] }),
893
+ action,
894
+ /* @__PURE__ */ jsx12(ToastClose, {})
895
+ ]
896
+ },
897
+ id
898
+ )),
888
899
  /* @__PURE__ */ jsx12(ToastViewport, {})
889
900
  ] });
890
901
  }
@@ -4175,7 +4186,7 @@ ChartContainer.displayName = "ChartContainer";
4175
4186
  var chartColors = {
4176
4187
  /** Solid colors for bars, lines, dots, and legends */
4177
4188
  categorical: [
4178
- "#1BA491",
4189
+ "#13C3A0",
4179
4190
  // teal — brand anchor
4180
4191
  "#4E79A7",
4181
4192
  // slate — classic dataviz blue
@@ -4194,7 +4205,7 @@ var chartColors = {
4194
4205
  ],
4195
4206
  /** Subtle tints — 1:1 paired with categorical for area fills and backgrounds */
4196
4207
  subtle: [
4197
- "#E6F7F4",
4208
+ "#E8FAF6",
4198
4209
  // teal
4199
4210
  "#E8EEF4",
4200
4211
  // slate
@@ -4232,7 +4243,7 @@ var chartColors = {
4232
4243
  ],
4233
4244
  /** Semantic colors for status-meaning charts (P&L, health scores, etc.) */
4234
4245
  semantic: {
4235
- positive: "#1BA491",
4246
+ positive: "#13C3A0",
4236
4247
  negative: "#D4687A",
4237
4248
  neutral: "#94939B",
4238
4249
  warning: "#E8A838"