@nice2dev/ui 1.1.5 → 1.1.6
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 +50 -0
- package/dist/NiceMention-BjeLN4Jx.cjs +430 -0
- package/dist/NiceMention-OaCi-GNO.js +11094 -0
- package/dist/NiceMention.css +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +24 -8
- package/dist/editors.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +24 -8
- package/dist/index.mjs +2 -2
- package/dist/pickerCommons.css +1 -1
- package/dist/style.css +3 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -11373,14 +11373,30 @@ export declare const NiceDateRangeBox: default_2.FC<NiceDateRangeBoxProps>;
|
|
|
11373
11373
|
|
|
11374
11374
|
/** Props for the {@link NiceDateRangeBox} component — a pair of date pickers for selecting a date range. */
|
|
11375
11375
|
export declare interface NiceDateRangeBoxProps extends NiceFormFieldProps {
|
|
11376
|
-
/**
|
|
11377
|
-
|
|
11378
|
-
|
|
11379
|
-
|
|
11380
|
-
|
|
11381
|
-
|
|
11382
|
-
|
|
11383
|
-
|
|
11376
|
+
/**
|
|
11377
|
+
* Start date (ISO string) — **controlled**. Omit it (and pass
|
|
11378
|
+
* `defaultStartDate`, or nothing at all) to let the control keep its own copy.
|
|
11379
|
+
*/
|
|
11380
|
+
startDate?: string;
|
|
11381
|
+
/**
|
|
11382
|
+
* End date (ISO string) — **controlled**. Omit it (and pass `defaultEndDate`,
|
|
11383
|
+
* or nothing at all) to let the control keep its own copy.
|
|
11384
|
+
*/
|
|
11385
|
+
endDate?: string;
|
|
11386
|
+
/**
|
|
11387
|
+
* Initial start date for the **uncontrolled** mode. Ignored when `startDate`
|
|
11388
|
+
* is supplied.
|
|
11389
|
+
*/
|
|
11390
|
+
defaultStartDate?: string;
|
|
11391
|
+
/**
|
|
11392
|
+
* Initial end date for the **uncontrolled** mode. Ignored when `endDate` is
|
|
11393
|
+
* supplied.
|
|
11394
|
+
*/
|
|
11395
|
+
defaultEndDate?: string;
|
|
11396
|
+
/** Called when the start date changes — in both controlled and uncontrolled mode. */
|
|
11397
|
+
onStartChange?: (date: string) => void;
|
|
11398
|
+
/** Called when the end date changes — in both controlled and uncontrolled mode. */
|
|
11399
|
+
onEndChange?: (date: string) => void;
|
|
11384
11400
|
/** Earliest selectable date. */
|
|
11385
11401
|
min?: string;
|
|
11386
11402
|
/** Latest selectable date. */
|
package/dist/index.mjs
CHANGED
|
@@ -9,8 +9,8 @@ import { i as oi, k as Fi, j as lr, l as Is, f as Bd, h as Od, e as Fd, d as Ps,
|
|
|
9
9
|
import { C as OA, n as FA, b as jA } from "./NiceForm-CCyfWgIs.js";
|
|
10
10
|
import { N as jt } from "./NiceSelect-DHowflmX.js";
|
|
11
11
|
import { N as zn, a as Fe } from "./NiceColorPicker-C8NZZcXE.js";
|
|
12
|
-
import { d as zs, n as Ud, x as qd, C as Wd, v as Hd, r as Gd, o as Kd, h as Jd, u as Yd, i as Qd, g as Xd, t as Zd, k as ep, y as tp } from "./NiceMention-
|
|
13
|
-
import { E as UA, F as qA, G as WA, N as HA, a as GA, b as KA, c as JA, e as YA, f as QA, j as XA, l as ZA, m as e5, p as t5, q as n5, s as i5, w as a5, z as r5, A as o5, B as s5, D as c5, H as l5, I as d5, J as p5, K as u5, L as m5, M as h5, O as g5, P as f5, Q as b5, R as v5, S as y5, T as _5, U as N5, V as w5, W as x5 } from "./NiceMention-
|
|
12
|
+
import { d as zs, n as Ud, x as qd, C as Wd, v as Hd, r as Gd, o as Kd, h as Jd, u as Yd, i as Qd, g as Xd, t as Zd, k as ep, y as tp } from "./NiceMention-OaCi-GNO.js";
|
|
13
|
+
import { E as UA, F as qA, G as WA, N as HA, a as GA, b as KA, c as JA, e as YA, f as QA, j as XA, l as ZA, m as e5, p as t5, q as n5, s as i5, w as a5, z as r5, A as o5, B as s5, D as c5, H as l5, I as d5, J as p5, K as u5, L as m5, M as h5, O as g5, P as f5, Q as b5, R as v5, S as y5, T as _5, U as N5, V as w5, W as x5 } from "./NiceMention-OaCi-GNO.js";
|
|
14
14
|
import { NiceHtmlEditor as np } from "./NiceHtmlEditor-B8B8AcSC.js";
|
|
15
15
|
import { NiceCodeDiffEditor as ip } from "./NiceCodeEditor-BVUwp9yX.js";
|
|
16
16
|
import { NiceCodeEditor as C5, NiceSimpleCodeEditor as S5 } from "./NiceCodeEditor-BVUwp9yX.js";
|
package/dist/pickerCommons.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nice-country-picker{position:relative;display:inline-block;width:100%;max-width:320px;font-family:inherit}.nice-country-picker--sm{font-size:12px}.nice-country-picker--md{font-size:14px}.nice-country-picker--lg{font-size:16px}.nice-country-picker__trigger{display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--nice-space-2, 8px) var(--nice-space-3, 12px);border:1px solid var(--border-color, var(--border-color, #e5e7eb));border-radius:var(--nice-radius-md, 6px);background:var(--bg-primary, var(--bg-primary, #ffffff));cursor:pointer;text-align:left;font-size:inherit;color:var(--text-primary, var(--text-primary, #0f172a));transition:border-color .2s,box-shadow .2s}.nice-country-picker--sm .nice-country-picker__trigger{padding:var(--nice-space-1-5, 6px) var(--nice-space-2-5, 10px)}.nice-country-picker--lg .nice-country-picker__trigger{padding:var(--nice-space-2-5, 10px) var(--nice-space-3-5, 14px)}.nice-country-picker__trigger:hover:not(:disabled){border-color:var(--color-primary, #6366f1)}.nice-country-picker__trigger:focus{outline:none;border-color:var(--color-primary, #6366f1);box-shadow:0 0 0 3px var(--color-primary, #6366f1)
|
|
1
|
+
.nice-country-picker{position:relative;display:inline-block;width:100%;max-width:320px;font-family:inherit}.nice-country-picker--sm{font-size:12px}.nice-country-picker--md{font-size:14px}.nice-country-picker--lg{font-size:16px}.nice-country-picker__trigger{display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--nice-space-2, 8px) var(--nice-space-3, 12px);border:1px solid var(--border-color, var(--border-color, #e5e7eb));border-radius:var(--nice-radius-md, 6px);background:var(--bg-primary, var(--bg-primary, #ffffff));cursor:pointer;text-align:left;font-size:inherit;color:var(--text-primary, var(--text-primary, #0f172a));transition:border-color .2s,box-shadow .2s}.nice-country-picker--sm .nice-country-picker__trigger{padding:var(--nice-space-1-5, 6px) var(--nice-space-2-5, 10px)}.nice-country-picker--lg .nice-country-picker__trigger{padding:var(--nice-space-2-5, 10px) var(--nice-space-3-5, 14px)}.nice-country-picker__trigger:hover:not(:disabled){border-color:var(--color-primary, #6366f1)}.nice-country-picker__trigger:focus{outline:none;border-color:var(--color-primary, #6366f1);box-shadow:0 0 0 3px var(--color-primary, #6366f1)}.nice-country-picker--open .nice-country-picker__trigger{border-color:var(--color-primary, #6366f1);box-shadow:0 0 0 3px var(--color-primary, #6366f1)}.nice-country-picker--disabled .nice-country-picker__trigger{background:var(--nice-disabled-bg, #f3f4f6);color:var(--nice-disabled-text, #9ca3af);cursor:not-allowed}.nice-country-picker__value{display:flex;align-items:center;gap:var(--nice-space-2, 8px);flex:1;overflow:hidden}.nice-country-picker__flag{font-size:1.2em;line-height:1;flex-shrink:0}.nice-country-picker__name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nice-country-picker__dial-code{color:var(--text-secondary, #475569);font-size:.9em;flex-shrink:0}.nice-country-picker__code{color:var(--text-secondary, #475569);font-size:.85em;font-variant:tabular-nums;text-transform:uppercase;letter-spacing:.04em;flex-shrink:0}.nice-country-picker__placeholder{color:var(--text-muted, #94a3b8)}.nice-country-picker__icons{display:flex;align-items:center;gap:var(--nice-space-1, 4px);margin-left:var(--nice-space-2, 8px);flex-shrink:0}.nice-country-picker__clear{display:flex;align-items:center;justify-content:center;width:18px;height:18px;font-size:10px;color:var(--text-secondary, #475569);background:var(--hover-bg, color-mix(in srgb, var(--text-primary, #000) 4%, transparent));border-radius:var(--nice-radius-full, 50%);cursor:pointer;transition:background .2s,color .2s}.nice-country-picker__clear:hover{background:var(--color-danger, #ef4444);color:#fff}.nice-country-picker__arrow{font-size:10px;color:var(--text-secondary, #475569);transition:transform .2s}.nice-country-picker__dropdown{position:absolute;top:100%;left:0;right:0;margin-top:var(--nice-space-1, 4px);background:var(--bg-primary, var(--bg-primary, #ffffff));color:var(--text-primary, var(--text-primary, #0f172a));border:1px solid var(--border-color, var(--border-color, #e5e7eb));border-radius:var(--nice-radius-md, 6px);box-shadow:0 10px 25px var(--nice-overlay-15, color-mix(in srgb, var(--text-primary, #000) 15%, transparent));z-index:1000;max-height:320px;display:flex;flex-direction:column;overflow:hidden}.nice-country-picker__search{padding:var(--nice-space-2, 8px);border-bottom:1px solid var(--border-color, var(--border-color, #e5e7eb));flex-shrink:0;background:transparent}.nice-country-picker__search-input{width:100%;padding:var(--nice-space-2, 8px) var(--nice-space-3, 12px);border:1px solid var(--border-color, var(--border-color, #e5e7eb));border-radius:var(--nice-radius-sm, 4px);font-size:inherit;background:var(--bg-primary, var(--bg-primary, #ffffff));color:var(--text-primary, var(--text-primary, #0f172a))}.nice-country-picker__search-input:focus{outline:none;border-color:var(--color-primary, var(--color-primary, #6366f1));box-shadow:0 0 0 2px color-mix(in srgb,var(--color-primary, var(--color-primary, #6366f1)) 18%,transparent)}.nice-country-picker__search-input::placeholder{color:var(--text-muted, var(--text-muted, #94a3b8))}.nice-country-picker__list{flex:1;overflow-y:auto;padding:var(--nice-space-1, 4px)}.nice-country-picker__option{display:flex;align-items:center;gap:var(--nice-space-2, 8px);padding:var(--nice-space-2, 8px) var(--nice-space-3, 12px);cursor:pointer;border-radius:var(--nice-radius-sm, 4px);transition:background .15s}.nice-country-picker__option:hover,.nice-country-picker__option--highlighted{background:color-mix(in srgb,var(--color-primary, #3b82f6) 14%,transparent);color:var(--text-primary, var(--text-primary, #0f172a))}.nice-country-picker__option--selected{background:color-mix(in srgb,var(--color-primary, #3b82f6) 22%,transparent);color:var(--text-primary, var(--text-primary, #0f172a));font-weight:600}.nice-country-picker__option--selected:hover,.nice-country-picker__option--selected.nice-country-picker__option--highlighted{background:color-mix(in srgb,var(--color-primary, #3b82f6) 30%,transparent)}.nice-country-picker__option .nice-country-picker__dial-code{margin-left:auto}.nice-country-picker__empty{padding:var(--nice-space-4, 16px);text-align:center;color:var(--text-secondary, #475569)}.nice-country-picker__list::-webkit-scrollbar{width:8px}.nice-country-picker__list::-webkit-scrollbar-track{background:transparent}.nice-country-picker__list::-webkit-scrollbar-thumb{background:var(--border-color, #e5e7eb);border-radius:var(--nice-radius-sm, 4px)}.nice-country-picker__list::-webkit-scrollbar-thumb:hover{background:var(--text-secondary, #475569)}.nice-country-picker--compact{display:inline-block;width:auto;max-width:none}.nice-country-picker--compact .nice-country-picker__trigger{width:auto;min-width:0;min-height:32px;padding:var(--nice-space-1, 4px) var(--nice-space-2, 8px);gap:var(--nice-space-1, 4px)}.nice-country-picker--compact .nice-country-picker__flag{display:inline-flex;align-items:center;justify-content:center;line-height:1}.nice-country-picker--compact .nice-country-picker__value{gap:var(--nice-space-1, 4px);flex:0 0 auto}.nice-country-picker--compact .nice-country-picker__icons{margin-left:var(--nice-space-1, 4px)}.nice-country-picker__dropdown--align-left{left:0;right:auto;min-width:100%}.nice-country-picker__dropdown--align-right{right:0;left:auto;min-width:240px}.nice-theme-picker__option{position:relative}.nice-theme-picker__edit-btn{margin-left:auto;background:transparent;border:1px solid transparent;color:var(--text-secondary, #475569);cursor:pointer;width:22px;height:22px;border-radius:var(--nice-radius-sm, 4px);display:inline-flex;align-items:center;justify-content:center;font-size:12px;opacity:0;transition:opacity .15s,background .15s,color .15s}.nice-theme-picker__option:hover .nice-theme-picker__edit-btn,.nice-theme-picker__option--highlighted .nice-theme-picker__edit-btn,.nice-theme-picker__edit-btn:focus{opacity:1}.nice-theme-picker__edit-btn:hover{background:var(--hover-bg, color-mix(in srgb, var(--text-primary, #000) 4%, transparent));color:var(--color-primary, #6366f1);border-color:var(--border-color, #e5e7eb)}.nice-theme-picker__add-btn{display:flex;align-items:center;justify-content:center;gap:var(--nice-space-1, 4px);width:100%;padding:var(--nice-space-2, 8px) var(--nice-space-3, 12px);border:none;border-top:1px solid var(--border-color, var(--border-color, #e5e7eb));background:transparent;color:var(--color-primary, var(--color-primary, #6366f1));font-size:inherit;font-weight:600;cursor:pointer;flex-shrink:0;transition:background .15s}.nice-theme-picker__add-btn:hover{background:color-mix(in srgb,var(--color-primary, var(--color-primary, #6366f1)) 14%,transparent)}.nice-theme-picker__add-btn--top{border-top:none;border-bottom:1px solid var(--border-color, var(--border-color, #e5e7eb))}.nice-country-picker--ghost{display:inline-block;width:auto}.nice-country-picker--ghost .nice-country-picker__trigger{background:transparent;border:0;padding:var(--nice-space-1, 4px);box-shadow:none;border-radius:var(--nice-radius-md, 6px);min-width:0}.nice-country-picker--ghost .nice-country-picker__trigger:hover:not(:disabled),.nice-country-picker--ghost .nice-country-picker__trigger:focus-visible{background:transparent;border:0;box-shadow:none}.nice-country-picker--ghost.nice-country-picker--open .nice-country-picker__trigger{background:transparent;border:0;box-shadow:none}
|