@stoa-dev/kit 1.0.2 → 1.1.0
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/CHANGELOG.md +9 -1
- package/dist/display/BarChart/index.js +147 -31
- package/dist/display/BarChart/index.js.map +1 -1
- package/dist/i18n/locales/at.json.js +16 -14
- package/dist/i18n/locales/at.json.js.map +1 -1
- package/dist/i18n/locales/de.json.js +16 -14
- package/dist/i18n/locales/de.json.js.map +1 -1
- package/dist/i18n/locales/en.json.js +12 -10
- package/dist/i18n/locales/en.json.js.map +1 -1
- package/dist/i18n/locales/it.json.js +16 -14
- package/dist/i18n/locales/it.json.js.map +1 -1
- package/dist/kit.css +1 -1
- package/dist/shell/BackButton/index.js +1 -1
- package/dist/shell/BackButton/index.js.map +1 -1
- package/dist/types/display/BarChart/index.d.ts +26 -2
- package/dist/types/display/BarChart/index.d.ts.map +1 -1
- package/dist/types/i18n/index.d.ts +56 -0
- package/dist/types/i18n/index.d.ts.map +1 -1
- package/dist/types/ui/color-picker/color.d.ts +13 -0
- package/dist/types/ui/color-picker/color.d.ts.map +1 -0
- package/dist/types/ui/color-picker/index.d.ts +10 -0
- package/dist/types/ui/color-picker/index.d.ts.map +1 -0
- package/dist/types/ui/color-picker-toggle/index.d.ts +8 -0
- package/dist/types/ui/color-picker-toggle/index.d.ts.map +1 -0
- package/dist/types/ui/index.d.ts +2 -0
- package/dist/types/ui/index.d.ts.map +1 -1
- package/dist/ui/color-picker/ColorPicker.module.scss.js +42 -0
- package/dist/ui/color-picker/ColorPicker.module.scss.js.map +1 -0
- package/dist/ui/color-picker/color.js +60 -0
- package/dist/ui/color-picker/color.js.map +1 -0
- package/dist/ui/color-picker/index.js +239 -0
- package/dist/ui/color-picker/index.js.map +1 -0
- package/dist/ui/color-picker-toggle/index.js +66 -0
- package/dist/ui/color-picker-toggle/index.js.map +1 -0
- package/dist/ui/index.js +105 -101
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/ui/color-picker/index.tsx"],"sourcesContent":["'use client'\n\nimport { type CSSProperties, type PointerEvent, useId, useState } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { STOA_NS } from '../../i18n/namespace'\nimport { cn } from '../../utils/cn'\nimport {\n\tDEFAULT_COLOR,\n\tdiscTextColor,\n\ttype Hsla,\n\thexToHsla,\n\thslaToHex,\n\tnormalizeColor,\n\tPRESETS,\n} from './color'\nimport styles from './ColorPicker.module.scss'\n\nexport interface ColorPickerProps {\n\t/** Displayed hex color. Omit to let the picker own the selection. */\n\tvalue?: string\n\tdefaultValue?: string\n\t/** Emits uppercase #RRGGBB or #RRGGBBAA. */\n\tonChange?: (color: string) => void\n\tclassName?: string\n}\n\nconst CENTER = 160\nconst RADIUS = 139\nconst CHANNELS = ['s', 'l', 'a'] as const\n\nfunction ringPoint(degrees: number, radius: number) {\n\tconst radians = ((degrees - 90) * Math.PI) / 180\n\treturn {\n\t\tx: CENTER + Math.cos(radians) * radius,\n\t\ty: CENTER + Math.sin(radians) * radius,\n\t}\n}\n\nconst TICKS = Array.from({ length: 72 }, (_, index) => {\n\tconst degrees = index * 5\n\tconst major = degrees % 30 === 0\n\tconst start = ringPoint(degrees, major ? 140 : 145)\n\tconst end = ringPoint(degrees, 151)\n\treturn { degrees, major, x1: start.x, y1: start.y, x2: end.x, y2: end.y }\n})\n\nfunction selectionFromHex(color: string) {\n\treturn { color, hsla: hexToHsla(color) }\n}\n\nexport function ColorPicker({\n\tvalue,\n\tdefaultValue,\n\tonChange,\n\tclassName,\n}: ColorPickerProps) {\n\tconst { t } = useTranslation(STOA_NS)\n\tconst id = useId()\n\tconst external =\n\t\tvalue === undefined ? undefined : (normalizeColor(value) ?? DEFAULT_COLOR)\n\tconst [selection, setSelection] = useState(() =>\n\t\tselectionFromHex(\n\t\t\texternal ?? normalizeColor(defaultValue ?? '') ?? DEFAULT_COLOR,\n\t\t),\n\t)\n\tconst [previousExternal, setPreviousExternal] = useState(external)\n\tconst [draft, setDraft] = useState<{ color: string; text: string }>()\n\tconst [copyResult, setCopyResult] = useState<{\n\t\tcolor: string\n\t\tsuccess: boolean\n\t}>()\n\n\tlet current = selection\n\tif (external !== undefined && external !== selection.color) {\n\t\tcurrent = selectionFromHex(external)\n\t}\n\tif (external !== previousExternal) {\n\t\tsetPreviousExternal(external)\n\t\tsetSelection(current)\n\t\tsetDraft(undefined)\n\t\tsetCopyResult(undefined)\n\t}\n\n\tconst { color, hsla } = current\n\tconst text = draft?.color === color ? draft.text : color\n\tconst hue = Math.round(hsla.h) % 360\n\tconst indicator = ringPoint(hsla.h, RADIUS)\n\tconst title = t('colorPicker.title', 'Color instrument')\n\n\tfunction commit(next: typeof selection) {\n\t\tsetDraft(undefined)\n\t\tsetCopyResult(undefined)\n\t\tsetSelection(next)\n\t\tif (next.color !== color) onChange?.(next.color)\n\t}\n\n\tfunction changeChannel(channel: keyof Hsla, amount: number) {\n\t\tconst next = { ...hsla, [channel]: amount }\n\t\t// Preserve the dial settings when multiple HSL values map to the same hex.\n\t\tcommit({ color: hslaToHex(next), hsla: next })\n\t}\n\n\tfunction pointToHue(event: PointerEvent<SVGCircleElement>) {\n\t\tconst bounds = event.currentTarget.ownerSVGElement?.getBoundingClientRect()\n\t\tif (!bounds) return\n\t\tconst x = event.clientX - bounds.left - bounds.width / 2\n\t\tconst y = event.clientY - bounds.top - bounds.height / 2\n\t\tif (x === 0 && y === 0) return\n\t\tchangeChannel(\n\t\t\t'h',\n\t\t\t(Math.round((Math.atan2(x, -y) * 180) / Math.PI) + 360) % 360,\n\t\t)\n\t}\n\n\tfunction finishEditing() {\n\t\tconst next = normalizeColor(text)\n\t\tif (next && next !== color) commit(selectionFromHex(next))\n\t\telse setDraft(undefined)\n\t}\n\n\tasync function copyColor() {\n\t\ttry {\n\t\t\tawait navigator.clipboard.writeText(color)\n\t\t\tsetCopyResult({ color, success: true })\n\t\t} catch {\n\t\t\tsetCopyResult({ color, success: false })\n\t\t}\n\t}\n\n\tconst channelLabels = {\n\t\ts: t('colorPicker.saturation', 'Saturation'),\n\t\tl: t('colorPicker.lightness', 'Lightness'),\n\t\ta: t('colorPicker.opacity', 'Opacity'),\n\t}\n\n\treturn (\n\t\t<section\n\t\t\tclassName={cn(styles.picker, className)}\n\t\t\tdata-slot='color-picker'\n\t\t\taria-labelledby={`${id}-title`}\n\t\t>\n\t\t\t<header className={styles.header}>\n\t\t\t\t<h2\n\t\t\t\t\tid={`${id}-title`}\n\t\t\t\t\tclassName='font-heading text-2xl leading-snug font-semibold tracking-tight'\n\t\t\t\t>\n\t\t\t\t\t{title}\n\t\t\t\t</h2>\n\t\t\t</header>\n\t\t\t<div className={styles.wheel}>\n\t\t\t\t<input\n\t\t\t\t\tclassName={styles.hueInput}\n\t\t\t\t\ttype='range'\n\t\t\t\t\tmin={0}\n\t\t\t\t\tmax={359}\n\t\t\t\t\tvalue={hue}\n\t\t\t\t\tonChange={(event) =>\n\t\t\t\t\t\tchangeChannel('h', event.currentTarget.valueAsNumber)\n\t\t\t\t\t}\n\t\t\t\t\taria-label={t('colorPicker.hue', 'Hue')}\n\t\t\t\t\taria-valuetext={`${hue}°`}\n\t\t\t\t/>\n\t\t\t\t<svg viewBox='0 0 320 320' aria-hidden='true'>\n\t\t\t\t\t<circle cx={CENTER} cy={CENTER} r={RADIUS} className={styles.track} />\n\t\t\t\t\t{TICKS.map(({ degrees, major, ...line }) => (\n\t\t\t\t\t\t<line\n\t\t\t\t\t\t\tkey={degrees}\n\t\t\t\t\t\t\t{...line}\n\t\t\t\t\t\t\tclassName={major ? styles.majorTick : styles.tick}\n\t\t\t\t\t\t/>\n\t\t\t\t\t))}\n\t\t\t\t\t<circle\n\t\t\t\t\t\tcx={CENTER}\n\t\t\t\t\t\tcy={CENTER}\n\t\t\t\t\t\tr={126}\n\t\t\t\t\t\tclassName={styles.innerTrack}\n\t\t\t\t\t/>\n\t\t\t\t\t<circle cx={CENTER} cy={CENTER} r={117} fill='white' />\n\t\t\t\t\t<circle cx={CENTER} cy={CENTER} r={117} fill={color} />\n\t\t\t\t\t<circle\n\t\t\t\t\t\tcx={indicator.x}\n\t\t\t\t\t\tcy={indicator.y}\n\t\t\t\t\t\tr={8}\n\t\t\t\t\t\tclassName={styles.indicator}\n\t\t\t\t\t/>\n\t\t\t\t\t<circle\n\t\t\t\t\t\tcx={CENTER}\n\t\t\t\t\t\tcy={CENTER}\n\t\t\t\t\t\tr={RADIUS}\n\t\t\t\t\t\tclassName={styles.hueRing}\n\t\t\t\t\t\tonPointerDown={(event) => {\n\t\t\t\t\t\t\tif (event.button !== 0 || !event.isPrimary) return\n\t\t\t\t\t\t\tevent.currentTarget.setPointerCapture(event.pointerId)\n\t\t\t\t\t\t\tpointToHue(event)\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonPointerMove={(event) => {\n\t\t\t\t\t\t\tif (event.currentTarget.hasPointerCapture(event.pointerId))\n\t\t\t\t\t\t\t\tpointToHue(event)\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.center}\n\t\t\t\t\tstyle={{ color: discTextColor(color, hsla.a) }}\n\t\t\t\t\taria-hidden='true'\n\t\t\t\t>\n\t\t\t\t\t<strong>{color.slice(0, 7)}</strong>\n\t\t\t\t\t<span>\n\t\t\t\t\t\t{t('colorPicker.hue', 'Hue')} {String(hue).padStart(3, '0')}°\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div className={styles.readout}>\n\t\t\t\t<label className={styles.caption} htmlFor={`${id}-hex`}>\n\t\t\t\t\t{t('colorPicker.hex', 'Hex color')}\n\t\t\t\t</label>\n\t\t\t\t<div className={styles.hexRow}>\n\t\t\t\t\t<input\n\t\t\t\t\t\tid={`${id}-hex`}\n\t\t\t\t\t\tvalue={text}\n\t\t\t\t\t\tonChange={(event) =>\n\t\t\t\t\t\t\tsetDraft({ color, text: event.currentTarget.value })\n\t\t\t\t\t\t}\n\t\t\t\t\t\tonBlur={finishEditing}\n\t\t\t\t\t\tonKeyDown={(event) => {\n\t\t\t\t\t\t\tif (event.key === 'Enter' && !event.nativeEvent.isComposing) {\n\t\t\t\t\t\t\t\tevent.preventDefault()\n\t\t\t\t\t\t\t\tevent.currentTarget.blur()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tspellCheck={false}\n\t\t\t\t\t/>\n\t\t\t\t\t<button type='button' onClick={copyColor}>\n\t\t\t\t\t\t{t('colorPicker.copy', 'Copy')} <span aria-hidden='true'>↗</span>\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t\t<span className={styles.caption} role='status'>\n\t\t\t\t\t{copyResult?.color === color &&\n\t\t\t\t\t\t(copyResult.success\n\t\t\t\t\t\t\t? t('colorPicker.copied', 'Color copied')\n\t\t\t\t\t\t\t: t('colorPicker.copyFailed', 'Could not copy color'))}\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t<div className={styles.controls}>\n\t\t\t\t{CHANNELS.map((channel) => {\n\t\t\t\t\tconst amount = Math.round(\n\t\t\t\t\t\tchannel === 'a' ? hsla.a * 100 : hsla[channel],\n\t\t\t\t\t)\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<div key={channel} className={styles.control}>\n\t\t\t\t\t\t\t<label htmlFor={`${id}-${channel}`}>\n\t\t\t\t\t\t\t\t{channelLabels[channel]}\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t<span aria-hidden='true'>{String(amount).padStart(2, '0')}%</span>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tid={`${id}-${channel}`}\n\t\t\t\t\t\t\t\ttype='range'\n\t\t\t\t\t\t\t\tmin={0}\n\t\t\t\t\t\t\t\tmax={100}\n\t\t\t\t\t\t\t\tvalue={amount}\n\t\t\t\t\t\t\t\taria-valuetext={`${amount}%`}\n\t\t\t\t\t\t\t\tonChange={(event) => {\n\t\t\t\t\t\t\t\t\tconst next = event.currentTarget.valueAsNumber\n\t\t\t\t\t\t\t\t\tchangeChannel(channel, channel === 'a' ? next / 100 : next)\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tstyle={{ '--progress': `${amount}%` } as CSSProperties}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)\n\t\t\t\t})}\n\t\t\t</div>\n\t\t\t<footer className={styles.footer}>\n\t\t\t\t<fieldset>\n\t\t\t\t\t<legend className={styles.caption}>\n\t\t\t\t\t\t{t('colorPicker.presets', 'Quick select')}\n\t\t\t\t\t</legend>\n\t\t\t\t\t<div className={styles.swatches}>\n\t\t\t\t\t\t{PRESETS.map((preset) => (\n\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\tkey={preset}\n\t\t\t\t\t\t\t\ttype='button'\n\t\t\t\t\t\t\t\taria-label={t('colorPicker.select', {\n\t\t\t\t\t\t\t\t\tdefaultValue: 'Select {{color}}',\n\t\t\t\t\t\t\t\t\tcolor: preset,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\taria-pressed={color === preset}\n\t\t\t\t\t\t\t\ttitle={preset}\n\t\t\t\t\t\t\t\tstyle={{ backgroundColor: preset }}\n\t\t\t\t\t\t\t\tonClick={() => commit(selectionFromHex(preset))}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\t\t\t</footer>\n\t\t</section>\n\t)\n}\n"],"names":["CENTER","RADIUS","CHANNELS","ringPoint","degrees","radius","radians","TICKS","_","index","major","start","end","selectionFromHex","color","hexToHsla","ColorPicker","value","defaultValue","onChange","className","t","useTranslation","STOA_NS","id","useId","external","normalizeColor","DEFAULT_COLOR","selection","setSelection","useState","previousExternal","setPreviousExternal","draft","setDraft","copyResult","setCopyResult","current","hsla","text","hue","indicator","title","commit","next","changeChannel","channel","amount","hslaToHex","pointToHue","event","bounds","x","y","finishEditing","copyColor","channelLabels","jsxs","cn","styles","jsx","line","discTextColor","PRESETS","preset"],"mappings":";;;;;;;AA0BA,MAAMA,IAAS,KACTC,IAAS,KACTC,IAAW,CAAC,KAAK,KAAK,GAAG;AAE/B,SAASC,EAAUC,GAAiBC,GAAgB;AACnD,QAAMC,KAAYF,IAAU,MAAM,KAAK,KAAM;AAC7C,SAAO;AAAA,IACN,GAAGJ,IAAS,KAAK,IAAIM,CAAO,IAAID;AAAA,IAChC,GAAGL,IAAS,KAAK,IAAIM,CAAO,IAAID;AAAA,EAAA;AAElC;AAEA,MAAME,IAAQ,MAAM,KAAK,EAAE,QAAQ,MAAM,CAACC,GAAGC,MAAU;AACtD,QAAML,IAAUK,IAAQ,GAClBC,IAAQN,IAAU,OAAO,GACzBO,IAAQR,EAAUC,GAASM,IAAQ,MAAM,GAAG,GAC5CE,IAAMT,EAAUC,GAAS,GAAG;AAClC,SAAO,EAAE,SAAAA,GAAS,OAAAM,GAAO,IAAIC,EAAM,GAAG,IAAIA,EAAM,GAAG,IAAIC,EAAI,GAAG,IAAIA,EAAI,EAAA;AACvE,CAAC;AAED,SAASC,EAAiBC,GAAe;AACxC,SAAO,EAAE,OAAAA,GAAO,MAAMC,EAAUD,CAAK,EAAA;AACtC;AAEO,SAASE,GAAY;AAAA,EAC3B,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AACD,GAAqB;AACpB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAeC,CAAO,GAC9BC,IAAKC,EAAA,GACLC,IACLT,MAAU,SAAY,SAAaU,EAAeV,CAAK,KAAKW,GACvD,CAACC,GAAWC,CAAY,IAAIC;AAAA,IAAS,MAC1ClB;AAAA,MACCa,KAAYC,EAAeT,KAAgB,EAAE,KAAKU;AAAA,IAAA;AAAA,EACnD,GAEK,CAACI,GAAkBC,CAAmB,IAAIF,EAASL,CAAQ,GAC3D,CAACQ,GAAO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AAA,gBACA,OAAO,EAAE,cAAc,GAAGG,CAAM,IAAA;AAAA,cAAI;AAAA,YAAA;AAAA,UACrC,EAAA,GAjBSD,CAkBV;AAAA,QAEF,CAAC,EAAA,CACF;AAAA,0BACC,UAAA,EAAO,WAAWa,EAAO,QACzB,4BAAC,YAAA,EACA,UAAA;AAAA,UAAA,gBAAAC,EAAC,YAAO,WAAWD,EAAO,SACxB,UAAAvC,EAAE,uBAAuB,cAAc,GACzC;AAAA,UACA,gBAAAwC,EAAC,SAAI,WAAWD,EAAO,UACrB,UAAAI,EAAQ,IAAI,CAACC,MACb,gBAAAJ;AAAA,YAAC;AAAA,YAAA;AAAA,cAEA,MAAK;AAAA,cACL,cAAYxC,EAAE,sBAAsB;AAAA,gBACnC,cAAc;AAAA,gBACd,OAAO4C;AAAA,cAAA,CACP;AAAA,cACD,gBAAcnD,MAAUmD;AAAA,cACxB,OAAOA;AAAA,cACP,OAAO,EAAE,iBAAiBA,EAAA;AAAA,cAC1B,SAAS,MAAMrB,EAAO/B,EAAiBoD,CAAM,CAAC;AAAA,YAAA;AAAA,YATzCA;AAAA,UAAA,CAWN,EAAA,CACF;AAAA,QAAA,EAAA,CACD,EAAA,CACD;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGH;"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as h } from "react";
|
|
3
|
+
import { useTranslation as v } from "react-i18next";
|
|
4
|
+
import { STOA_NS as C } from "../../i18n/namespace.js";
|
|
5
|
+
import { Button as g } from "../button/index.js";
|
|
6
|
+
import { ColorPicker as b } from "../color-picker/index.js";
|
|
7
|
+
import { DEFAULT_COLOR as a, normalizeColor as l } from "../color-picker/color.js";
|
|
8
|
+
import { Popover as P, PopoverTrigger as x, PopoverContent as k } from "../popover/index.js";
|
|
9
|
+
function A({
|
|
10
|
+
value: e,
|
|
11
|
+
defaultValue: s,
|
|
12
|
+
onChange: c,
|
|
13
|
+
className: m,
|
|
14
|
+
label: d,
|
|
15
|
+
disabled: p
|
|
16
|
+
}) {
|
|
17
|
+
const { t } = v(C), [f, u] = h(
|
|
18
|
+
() => l(s ?? "") ?? a
|
|
19
|
+
), r = e === void 0 ? f : l(e) ?? a;
|
|
20
|
+
return /* @__PURE__ */ n(P, { children: [
|
|
21
|
+
/* @__PURE__ */ o(x, { asChild: !0, children: /* @__PURE__ */ n(
|
|
22
|
+
g,
|
|
23
|
+
{
|
|
24
|
+
type: "button",
|
|
25
|
+
variant: "outline",
|
|
26
|
+
disabled: p,
|
|
27
|
+
className: m,
|
|
28
|
+
"aria-label": `${d ?? t("colorPicker.choose", "Choose color")}: ${r}`,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ o(
|
|
31
|
+
"span",
|
|
32
|
+
{
|
|
33
|
+
"aria-hidden": "true",
|
|
34
|
+
className: "size-5 rounded-full border border-current/25",
|
|
35
|
+
style: { backgroundColor: r }
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ o("span", { className: "font-mono", children: r })
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
) }),
|
|
42
|
+
/* @__PURE__ */ o(
|
|
43
|
+
k,
|
|
44
|
+
{
|
|
45
|
+
align: "start",
|
|
46
|
+
sideOffset: 8,
|
|
47
|
+
collisionPadding: 12,
|
|
48
|
+
"aria-label": t("colorPicker.title", "Color instrument"),
|
|
49
|
+
className: "max-h-(--radix-popover-content-available-height) w-[27.5rem] max-w-(--radix-popover-content-available-width) overflow-y-auto overscroll-contain rounded-[1.375rem] p-0",
|
|
50
|
+
children: /* @__PURE__ */ o(
|
|
51
|
+
b,
|
|
52
|
+
{
|
|
53
|
+
value: r,
|
|
54
|
+
onChange: (i) => {
|
|
55
|
+
e === void 0 && u(i), c?.(i);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
] });
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
A as ColorPickerToggle
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/ui/color-picker-toggle/index.tsx"],"sourcesContent":["'use client'\n\nimport { useState } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { STOA_NS } from '../../i18n/namespace'\nimport { Button } from '../button'\nimport { ColorPicker, type ColorPickerProps } from '../color-picker'\nimport { DEFAULT_COLOR, normalizeColor } from '../color-picker/color'\nimport { Popover, PopoverContent, PopoverTrigger } from '../popover'\n\nexport interface ColorPickerToggleProps extends ColorPickerProps {\n\t/** Accessible name for the trigger. */\n\tlabel?: string\n\tdisabled?: boolean\n}\n\nexport function ColorPickerToggle({\n\tvalue,\n\tdefaultValue,\n\tonChange,\n\tclassName,\n\tlabel,\n\tdisabled,\n}: ColorPickerToggleProps) {\n\tconst { t } = useTranslation(STOA_NS)\n\tconst [internal, setInternal] = useState(\n\t\t() => normalizeColor(defaultValue ?? '') ?? DEFAULT_COLOR,\n\t)\n\tconst color =\n\t\tvalue === undefined ? internal : (normalizeColor(value) ?? DEFAULT_COLOR)\n\n\treturn (\n\t\t<Popover>\n\t\t\t<PopoverTrigger asChild>\n\t\t\t\t<Button\n\t\t\t\t\ttype='button'\n\t\t\t\t\tvariant='outline'\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tclassName={className}\n\t\t\t\t\taria-label={`${label ?? t('colorPicker.choose', 'Choose color')}: ${color}`}\n\t\t\t\t>\n\t\t\t\t\t<span\n\t\t\t\t\t\taria-hidden='true'\n\t\t\t\t\t\tclassName='size-5 rounded-full border border-current/25'\n\t\t\t\t\t\tstyle={{ backgroundColor: color }}\n\t\t\t\t\t/>\n\t\t\t\t\t<span className='font-mono'>{color}</span>\n\t\t\t\t</Button>\n\t\t\t</PopoverTrigger>\n\t\t\t<PopoverContent\n\t\t\t\talign='start'\n\t\t\t\tsideOffset={8}\n\t\t\t\tcollisionPadding={12}\n\t\t\t\taria-label={t('colorPicker.title', 'Color instrument')}\n\t\t\t\tclassName='max-h-(--radix-popover-content-available-height) w-[27.5rem] max-w-(--radix-popover-content-available-width) overflow-y-auto overscroll-contain rounded-[1.375rem] p-0'\n\t\t\t>\n\t\t\t\t<ColorPicker\n\t\t\t\t\tvalue={color}\n\t\t\t\t\tonChange={(next) => {\n\t\t\t\t\t\tif (value === undefined) setInternal(next)\n\t\t\t\t\t\tonChange?.(next)\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</PopoverContent>\n\t\t</Popover>\n\t)\n}\n"],"names":["ColorPickerToggle","value","defaultValue","onChange","className","label","disabled","useTranslation","STOA_NS","internal","setInternal","useState","normalizeColor","DEFAULT_COLOR","color","Popover","jsx","PopoverTrigger","jsxs","Button","PopoverContent","ColorPicker","next"],"mappings":";;;;;;;;AAgBO,SAASA,EAAkB;AAAA,EACjC,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AACD,GAA2B;AAC1B,QAAM,EAAE,EAAA,IAAMC,EAAeC,CAAO,GAC9B,CAACC,GAAUC,CAAW,IAAIC;AAAA,IAC/B,MAAMC,EAAeV,KAAgB,EAAE,KAAKW;AAAA,EAAA,GAEvCC,IACLb,MAAU,SAAYQ,IAAYG,EAAeX,CAAK,KAAKY;AAE5D,2BACEE,GAAA,EACA,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAA,EAAe,SAAO,IACtB,UAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACA,MAAK;AAAA,QACL,SAAQ;AAAA,QACR,UAAAb;AAAA,QACA,WAAAF;AAAA,QACA,cAAY,GAAGC,KAAS,EAAE,sBAAsB,cAAc,CAAC,KAAKS,CAAK;AAAA,QAEzE,UAAA;AAAA,UAAA,gBAAAE;AAAA,YAAC;AAAA,YAAA;AAAA,cACA,eAAY;AAAA,cACZ,WAAU;AAAA,cACV,OAAO,EAAE,iBAAiBF,EAAA;AAAA,YAAM;AAAA,UAAA;AAAA,UAEjC,gBAAAE,EAAC,QAAA,EAAK,WAAU,aAAa,UAAAF,EAAA,CAAM;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA,GAErC;AAAA,IACA,gBAAAE;AAAA,MAACI;AAAA,MAAA;AAAA,QACA,OAAM;AAAA,QACN,YAAY;AAAA,QACZ,kBAAkB;AAAA,QAClB,cAAY,EAAE,qBAAqB,kBAAkB;AAAA,QACrD,WAAU;AAAA,QAEV,UAAA,gBAAAJ;AAAA,UAACK;AAAA,UAAA;AAAA,YACA,OAAOP;AAAA,YACP,UAAU,CAACQ,MAAS;AACnB,cAAIrB,MAAU,UAAWS,EAAYY,CAAI,GACzCnB,IAAWmB,CAAI;AAAA,YAChB;AAAA,UAAA;AAAA,QAAA;AAAA,MACD;AAAA,IAAA;AAAA,EACD,GACD;AAEF;"}
|
package/dist/ui/index.js
CHANGED
|
@@ -1,116 +1,120 @@
|
|
|
1
|
-
import { Accordion as
|
|
1
|
+
import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as p } from "./accordion/index.js";
|
|
2
2
|
import { Button as i, buttonVariants as a } from "./button/index.js";
|
|
3
3
|
import { Calendar as u, CalendarDayButton as c } from "./calendar/index.js";
|
|
4
|
-
import { Card as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
4
|
+
import { Card as m, CardAction as D, CardContent as x, CardDescription as S, CardFooter as f, CardHeader as T, CardTitle as C } from "./card/index.js";
|
|
5
|
+
import { ColorPicker as M } from "./color-picker/index.js";
|
|
6
|
+
import { ColorPickerToggle as F } from "./color-picker-toggle/index.js";
|
|
7
|
+
import { Dialog as P, DialogClose as b, DialogContent as v, DialogDescription as s, DialogFooter as A, DialogHeader as h, DialogOverlay as B, DialogPortal as L, DialogTitle as R, DialogTrigger as k } from "./dialog/index.js";
|
|
8
|
+
import { DropdownMenu as V, DropdownMenuCheckboxItem as y, DropdownMenuContent as E, DropdownMenuGroup as O, DropdownMenuItem as U, DropdownMenuLabel as j, DropdownMenuPortal as q, DropdownMenuRadioGroup as z, DropdownMenuRadioItem as J, DropdownMenuSeparator as K, DropdownMenuShortcut as N, DropdownMenuSub as Q, DropdownMenuSubContent as W, DropdownMenuSubTrigger as X, DropdownMenuTrigger as Y } from "./dropdown-menu/index.js";
|
|
9
|
+
import { Field as _, FieldContent as $, FieldDescription as oo, FieldError as ro, FieldGroup as eo, FieldLabel as to, FieldLegend as no, FieldSeparator as po, FieldSet as lo, FieldTitle as io } from "./field/index.js";
|
|
10
|
+
import { Input as uo } from "./input/index.js";
|
|
11
|
+
import { InputGroup as go, InputGroupAddon as mo, InputGroupButton as Do, InputGroupInput as xo, InputGroupText as So, InputGroupTextarea as fo } from "./input-group/index.js";
|
|
12
|
+
import { Label as Co } from "./label/index.js";
|
|
13
|
+
import { Popover as Mo, PopoverAnchor as Io, PopoverContent as Fo, PopoverDescription as Go, PopoverHeader as Po, PopoverTitle as bo, PopoverTrigger as vo } from "./popover/index.js";
|
|
14
|
+
import { RadioGroup as Ao, RadioGroupItem as ho } from "./radio-group/index.js";
|
|
15
|
+
import { ScrollArea as Lo, ScrollBar as Ro } from "./scroll-area/index.js";
|
|
16
|
+
import { Select as Ho, SelectContent as Vo, SelectGroup as yo, SelectItem as Eo, SelectLabel as Oo, SelectScrollDownButton as Uo, SelectScrollUpButton as jo, SelectSeparator as qo, SelectTrigger as zo, SelectValue as Jo } from "./select/index.js";
|
|
17
|
+
import { Separator as No } from "./separator/index.js";
|
|
18
|
+
import { Toaster as Wo } from "./sonner/index.js";
|
|
19
|
+
import { Switch as Yo } from "./switch/index.js";
|
|
20
|
+
import { Textarea as _o } from "./textarea/index.js";
|
|
21
|
+
import { ThemeSwitch as or } from "./theme-switch/index.js";
|
|
22
|
+
import { ThemeToggle as er } from "./theme-toggle/index.js";
|
|
23
|
+
import { Toggle as nr, toggleVariants as pr } from "./toggle/index.js";
|
|
24
|
+
import { Tooltip as ir, TooltipContent as ar, TooltipProvider as dr, TooltipTrigger as ur } from "./tooltip/index.js";
|
|
23
25
|
export {
|
|
24
|
-
|
|
26
|
+
e as Accordion,
|
|
25
27
|
t as AccordionContent,
|
|
26
28
|
n as AccordionItem,
|
|
27
29
|
p as AccordionTrigger,
|
|
28
30
|
i as Button,
|
|
29
31
|
u as Calendar,
|
|
30
32
|
c as CalendarDayButton,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
m as Card,
|
|
34
|
+
D as CardAction,
|
|
33
35
|
x as CardContent,
|
|
34
36
|
S as CardDescription,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
f as CardFooter,
|
|
38
|
+
T as CardHeader,
|
|
37
39
|
C as CardTitle,
|
|
38
|
-
M as
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
io as
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
Yo as
|
|
106
|
-
_o as
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
40
|
+
M as ColorPicker,
|
|
41
|
+
F as ColorPickerToggle,
|
|
42
|
+
P as Dialog,
|
|
43
|
+
b as DialogClose,
|
|
44
|
+
v as DialogContent,
|
|
45
|
+
s as DialogDescription,
|
|
46
|
+
A as DialogFooter,
|
|
47
|
+
h as DialogHeader,
|
|
48
|
+
B as DialogOverlay,
|
|
49
|
+
L as DialogPortal,
|
|
50
|
+
R as DialogTitle,
|
|
51
|
+
k as DialogTrigger,
|
|
52
|
+
V as DropdownMenu,
|
|
53
|
+
y as DropdownMenuCheckboxItem,
|
|
54
|
+
E as DropdownMenuContent,
|
|
55
|
+
O as DropdownMenuGroup,
|
|
56
|
+
U as DropdownMenuItem,
|
|
57
|
+
j as DropdownMenuLabel,
|
|
58
|
+
q as DropdownMenuPortal,
|
|
59
|
+
z as DropdownMenuRadioGroup,
|
|
60
|
+
J as DropdownMenuRadioItem,
|
|
61
|
+
K as DropdownMenuSeparator,
|
|
62
|
+
N as DropdownMenuShortcut,
|
|
63
|
+
Q as DropdownMenuSub,
|
|
64
|
+
W as DropdownMenuSubContent,
|
|
65
|
+
X as DropdownMenuSubTrigger,
|
|
66
|
+
Y as DropdownMenuTrigger,
|
|
67
|
+
_ as Field,
|
|
68
|
+
$ as FieldContent,
|
|
69
|
+
oo as FieldDescription,
|
|
70
|
+
ro as FieldError,
|
|
71
|
+
eo as FieldGroup,
|
|
72
|
+
to as FieldLabel,
|
|
73
|
+
no as FieldLegend,
|
|
74
|
+
po as FieldSeparator,
|
|
75
|
+
lo as FieldSet,
|
|
76
|
+
io as FieldTitle,
|
|
77
|
+
uo as Input,
|
|
78
|
+
go as InputGroup,
|
|
79
|
+
mo as InputGroupAddon,
|
|
80
|
+
Do as InputGroupButton,
|
|
81
|
+
xo as InputGroupInput,
|
|
82
|
+
So as InputGroupText,
|
|
83
|
+
fo as InputGroupTextarea,
|
|
84
|
+
Co as Label,
|
|
85
|
+
Mo as Popover,
|
|
86
|
+
Io as PopoverAnchor,
|
|
87
|
+
Fo as PopoverContent,
|
|
88
|
+
Go as PopoverDescription,
|
|
89
|
+
Po as PopoverHeader,
|
|
90
|
+
bo as PopoverTitle,
|
|
91
|
+
vo as PopoverTrigger,
|
|
92
|
+
Ao as RadioGroup,
|
|
93
|
+
ho as RadioGroupItem,
|
|
94
|
+
Lo as ScrollArea,
|
|
95
|
+
Ro as ScrollBar,
|
|
96
|
+
Ho as Select,
|
|
97
|
+
Vo as SelectContent,
|
|
98
|
+
yo as SelectGroup,
|
|
99
|
+
Eo as SelectItem,
|
|
100
|
+
Oo as SelectLabel,
|
|
101
|
+
Uo as SelectScrollDownButton,
|
|
102
|
+
jo as SelectScrollUpButton,
|
|
103
|
+
qo as SelectSeparator,
|
|
104
|
+
zo as SelectTrigger,
|
|
105
|
+
Jo as SelectValue,
|
|
106
|
+
No as Separator,
|
|
107
|
+
Yo as Switch,
|
|
108
|
+
_o as Textarea,
|
|
109
|
+
or as ThemeSwitch,
|
|
110
|
+
er as ThemeToggle,
|
|
111
|
+
Wo as Toaster,
|
|
112
|
+
nr as Toggle,
|
|
113
|
+
ir as Tooltip,
|
|
114
|
+
ar as TooltipContent,
|
|
115
|
+
dr as TooltipProvider,
|
|
116
|
+
ur as TooltipTrigger,
|
|
113
117
|
a as buttonVariants,
|
|
114
|
-
|
|
118
|
+
pr as toggleVariants
|
|
115
119
|
};
|
|
116
120
|
//# sourceMappingURL=index.js.map
|
package/dist/ui/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|