@atme-lab/ui-kit 0.1.20 → 0.1.22
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/dist/components/content/ArticlePreview/components/ArticlePreviewContent/ArticlePreviewContent.d.ts +2 -1
- package/dist/components/content/DecorativeFrame/utils/patternGenerator.d.ts +2 -0
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs25.js.map +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs28.js.map +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs38.js.map +1 -1
- package/dist/index.cjs385.js +1 -1
- package/dist/index.cjs388.js +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs390.js +1 -1
- package/dist/index.cjs391.js +1 -1
- package/dist/index.cjs40.js +9 -1
- package/dist/index.cjs40.js.map +1 -1
- package/dist/index.cjs41.js +22 -1
- package/dist/index.cjs41.js.map +1 -1
- package/dist/index.cjs411.js +6 -1
- package/dist/index.cjs411.js.map +1 -1
- package/dist/index.cjs412.js +6 -1
- package/dist/index.cjs412.js.map +1 -1
- package/dist/index.cjs413.js +2 -2
- package/dist/index.cjs413.js.map +1 -1
- package/dist/index.cjs414.js +2 -2
- package/dist/index.cjs414.js.map +1 -1
- package/dist/index.cjs415.js +1 -6
- package/dist/index.cjs415.js.map +1 -1
- package/dist/index.cjs416.js +1 -6
- package/dist/index.cjs416.js.map +1 -1
- package/dist/index.cjs42.js +1 -9
- package/dist/index.cjs42.js.map +1 -1
- package/dist/index.cjs420.js +1 -1
- package/dist/index.cjs421.js +1 -1
- package/dist/index.cjs422.js +1 -1
- package/dist/index.cjs423.js +1 -1
- package/dist/index.cjs424.js +1 -1
- package/dist/index.cjs425.js +1 -1
- package/dist/index.cjs426.js +1 -1
- package/dist/index.cjs428.js +1 -1
- package/dist/index.cjs43.js +1 -22
- package/dist/index.cjs43.js.map +1 -1
- package/dist/index.cjs430.js +1 -1
- package/dist/index.cjs433.js +1 -1
- package/dist/index.cjs434.js +1 -6
- package/dist/index.cjs434.js.map +1 -1
- package/dist/index.cjs435.js +1 -6
- package/dist/index.cjs435.js.map +1 -1
- package/dist/index.cjs436.js +1 -6
- package/dist/index.cjs436.js.map +1 -1
- package/dist/index.cjs437.js +1 -6
- package/dist/index.cjs437.js.map +1 -1
- package/dist/index.cjs438.js +1 -1
- package/dist/index.cjs438.js.map +1 -1
- package/dist/index.cjs439.js +1 -1
- package/dist/index.cjs439.js.map +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs440.js +1 -1
- package/dist/index.cjs440.js.map +1 -1
- package/dist/index.cjs441.js +1 -1
- package/dist/index.cjs441.js.map +1 -1
- package/dist/index.cjs442.js +1 -1
- package/dist/index.cjs442.js.map +1 -1
- package/dist/index.cjs443.js +1 -1
- package/dist/index.cjs443.js.map +1 -1
- package/dist/index.cjs444.js +1 -1
- package/dist/index.cjs444.js.map +1 -1
- package/dist/index.cjs445.js +1 -1
- package/dist/index.cjs445.js.map +1 -1
- package/dist/index.cjs446.js +1 -1
- package/dist/index.cjs446.js.map +1 -1
- package/dist/index.cjs447.js +1 -1
- package/dist/index.cjs447.js.map +1 -1
- package/dist/index.cjs448.js +1 -1
- package/dist/index.cjs448.js.map +1 -1
- package/dist/index.cjs449.js +6 -1
- package/dist/index.cjs449.js.map +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs450.js +6 -1
- package/dist/index.cjs450.js.map +1 -1
- package/dist/index.cjs451.js +6 -1
- package/dist/index.cjs451.js.map +1 -1
- package/dist/index.cjs452.js +6 -1
- package/dist/index.cjs452.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs46.js.map +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs48.js.map +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs52.js.map +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs54.js.map +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs59.js.map +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs60.js.map +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs62.js.map +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs63.js.map +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs64.js.map +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs65.js.map +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs66.js.map +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.esm10.js +3 -3
- package/dist/index.esm11.js +2 -2
- package/dist/index.esm12.js +4 -4
- package/dist/index.esm13.js +2 -2
- package/dist/index.esm14.js +2 -2
- package/dist/index.esm15.js +2 -2
- package/dist/index.esm16.js +2 -2
- package/dist/index.esm17.js +2 -2
- package/dist/index.esm18.js +2 -2
- package/dist/index.esm19.js +2 -2
- package/dist/index.esm20.js +2 -2
- package/dist/index.esm21.js +3 -3
- package/dist/index.esm22.js +3 -3
- package/dist/index.esm23.js +2 -2
- package/dist/index.esm24.js +3 -3
- package/dist/index.esm25.js +26 -26
- package/dist/index.esm25.js.map +1 -1
- package/dist/index.esm26.js +2 -2
- package/dist/index.esm27.js +2 -2
- package/dist/index.esm28.js +49 -29
- package/dist/index.esm28.js.map +1 -1
- package/dist/index.esm29.js +2 -2
- package/dist/index.esm30.js +4 -4
- package/dist/index.esm36.js +1 -1
- package/dist/index.esm38.js +8 -5
- package/dist/index.esm38.js.map +1 -1
- package/dist/index.esm385.js +2 -2
- package/dist/index.esm388.js +45 -45
- package/dist/index.esm389.js +1 -1
- package/dist/index.esm39.js +2 -41
- package/dist/index.esm39.js.map +1 -1
- package/dist/index.esm390.js +1 -1
- package/dist/index.esm391.js +30 -22
- package/dist/index.esm391.js.map +1 -1
- package/dist/index.esm40.js +25 -7
- package/dist/index.esm40.js.map +1 -1
- package/dist/index.esm41.js +602 -2
- package/dist/index.esm41.js.map +1 -1
- package/dist/index.esm411.js +9 -5
- package/dist/index.esm411.js.map +1 -1
- package/dist/index.esm412.js +18 -5
- package/dist/index.esm412.js.map +1 -1
- package/dist/index.esm413.js +9 -3
- package/dist/index.esm413.js.map +1 -1
- package/dist/index.esm414.js +6 -7
- package/dist/index.esm414.js.map +1 -1
- package/dist/index.esm415.js +5 -15
- package/dist/index.esm415.js.map +1 -1
- package/dist/index.esm416.js +5 -17
- package/dist/index.esm416.js.map +1 -1
- package/dist/index.esm42.js +5 -26
- package/dist/index.esm42.js.map +1 -1
- package/dist/index.esm420.js +1 -1
- package/dist/index.esm421.js +2 -2
- package/dist/index.esm422.js +3 -3
- package/dist/index.esm423.js +3 -3
- package/dist/index.esm424.js +1 -1
- package/dist/index.esm425.js +2 -2
- package/dist/index.esm426.js +1 -1
- package/dist/index.esm428.js +1 -1
- package/dist/index.esm43.js +29 -602
- package/dist/index.esm43.js.map +1 -1
- package/dist/index.esm430.js +7 -7
- package/dist/index.esm433.js +1 -1
- package/dist/index.esm434.js +19 -21
- package/dist/index.esm434.js.map +1 -1
- package/dist/index.esm435.js +17 -9
- package/dist/index.esm435.js.map +1 -1
- package/dist/index.esm436.js +12 -38
- package/dist/index.esm436.js.map +1 -1
- package/dist/index.esm437.js +5 -18
- package/dist/index.esm437.js.map +1 -1
- package/dist/index.esm438.js +3 -18
- package/dist/index.esm438.js.map +1 -1
- package/dist/index.esm439.js +29 -15
- package/dist/index.esm439.js.map +1 -1
- package/dist/index.esm44.js +5 -42
- package/dist/index.esm44.js.map +1 -1
- package/dist/index.esm440.js +33 -11
- package/dist/index.esm440.js.map +1 -1
- package/dist/index.esm441.js +25 -4
- package/dist/index.esm441.js.map +1 -1
- package/dist/index.esm442.js +3 -3
- package/dist/index.esm442.js.map +1 -1
- package/dist/index.esm443.js +5 -30
- package/dist/index.esm443.js.map +1 -1
- package/dist/index.esm444.js +9 -33
- package/dist/index.esm444.js.map +1 -1
- package/dist/index.esm445.js +6 -25
- package/dist/index.esm445.js.map +1 -1
- package/dist/index.esm446.js +3 -3
- package/dist/index.esm446.js.map +1 -1
- package/dist/index.esm447.js +84 -5
- package/dist/index.esm447.js.map +1 -1
- package/dist/index.esm448.js +37 -9
- package/dist/index.esm448.js.map +1 -1
- package/dist/index.esm449.js +21 -7
- package/dist/index.esm449.js.map +1 -1
- package/dist/index.esm45.js +10 -28
- package/dist/index.esm45.js.map +1 -1
- package/dist/index.esm450.js +9 -4
- package/dist/index.esm450.js.map +1 -1
- package/dist/index.esm451.js +38 -85
- package/dist/index.esm451.js.map +1 -1
- package/dist/index.esm452.js +18 -38
- package/dist/index.esm452.js.map +1 -1
- package/dist/index.esm46.js +30 -65
- package/dist/index.esm46.js.map +1 -1
- package/dist/index.esm47.js +64 -10
- package/dist/index.esm47.js.map +1 -1
- package/dist/index.esm48.js +41 -30
- package/dist/index.esm48.js.map +1 -1
- package/dist/index.esm49.js +36 -39
- package/dist/index.esm49.js.map +1 -1
- package/dist/index.esm50.js +4 -16
- package/dist/index.esm50.js.map +1 -1
- package/dist/index.esm51.js +7 -16
- package/dist/index.esm51.js.map +1 -1
- package/dist/index.esm52.js +9 -5
- package/dist/index.esm52.js.map +1 -1
- package/dist/index.esm53.js +7 -14
- package/dist/index.esm53.js.map +1 -1
- package/dist/index.esm54.js +40 -87
- package/dist/index.esm54.js.map +1 -1
- package/dist/index.esm55.js +47 -33
- package/dist/index.esm55.js.map +1 -1
- package/dist/index.esm56.js +10 -40
- package/dist/index.esm56.js.map +1 -1
- package/dist/index.esm57.js +8 -36
- package/dist/index.esm57.js.map +1 -1
- package/dist/index.esm58.js +58 -6
- package/dist/index.esm58.js.map +1 -1
- package/dist/index.esm59.js +16 -9
- package/dist/index.esm59.js.map +1 -1
- package/dist/index.esm60.js +97 -7
- package/dist/index.esm60.js.map +1 -1
- package/dist/index.esm61.js +40 -8
- package/dist/index.esm61.js.map +1 -1
- package/dist/index.esm62.js +88 -9
- package/dist/index.esm62.js.map +1 -1
- package/dist/index.esm63.js +35 -85
- package/dist/index.esm63.js.map +1 -1
- package/dist/index.esm64.js +127 -35
- package/dist/index.esm64.js.map +1 -1
- package/dist/index.esm65.js +9 -120
- package/dist/index.esm65.js.map +1 -1
- package/dist/index.esm66.js +28 -47
- package/dist/index.esm66.js.map +1 -1
- package/dist/index.esm67.js +16 -10
- package/dist/index.esm67.js.map +1 -1
- package/dist/index.esm68.js +16 -6
- package/dist/index.esm68.js.map +1 -1
- package/dist/index.esm69.js +32 -40
- package/dist/index.esm69.js.map +1 -1
- package/dist/index.esm70.js +15 -8
- package/dist/index.esm70.js.map +1 -1
- package/dist/index.esm71.js +43 -28
- package/dist/index.esm71.js.map +1 -1
- package/dist/index.esm72.js +8 -58
- package/dist/index.esm72.js.map +1 -1
- package/dist/index.esm73.js +40 -15
- package/dist/index.esm73.js.map +1 -1
- package/dist/index.esm9.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/ui-kit.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs63.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_root_mptdu_1",o="_root--edge-top_mptdu_6",r="_root--edge-bottom_mptdu_10",e="_root--edge-left_mptdu_14",p="_root--edge-right_mptdu_18",_="_content_mptdu_22",i="_strip_mptdu_28",s="_strip--top_mptdu_36",d="_strip--bottom_mptdu_37",g="_strip--left_mptdu_42",m="_strip--right_mptdu_43",u="_stripMirror_mptdu_48",n={root:t,"root--edge-top":"_root--edge-top_mptdu_6",rootEdgeTop:o,"root--edge-bottom":"_root--edge-bottom_mptdu_10",rootEdgeBottom:r,"root--edge-left":"_root--edge-left_mptdu_14",rootEdgeLeft:e,"root--edge-right":"_root--edge-right_mptdu_18",rootEdgeRight:p,content:_,strip:i,"strip--top":"_strip--top_mptdu_36",stripTop:s,"strip--bottom":"_strip--bottom_mptdu_37",stripBottom:d,"strip--left":"_strip--left_mptdu_42",stripLeft:g,"strip--right":"_strip--right_mptdu_43",stripRight:m,stripMirror:u};exports.content=_;exports.default=n;exports.root=t;exports.rootEdgeBottom=r;exports.rootEdgeLeft=e;exports.rootEdgeRight=p;exports.rootEdgeTop=o;exports.strip=i;exports.stripBottom=d;exports.stripLeft=g;exports.stripMirror=u;exports.stripRight=m;exports.stripTop=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs63.js.map
|
package/dist/index.cjs63.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs63.js","sources":["../src/components/content/DecorativeFrame/utils/patternGenerator.ts"],"sourcesContent":["export type Point2D = [number, number];\n\nexport const TRIANGLE_TEMPLATES: Point2D[][] = [\n [[0, 0], [1, 0], [0, 1]],\n [[0, 0], [1, 0], [1, 1]],\n [[0, 0], [0, 1], [1, 1]],\n [[0, 1], [1, 0], [1, 1]],\n];\n\nexport type ShapeType =\n | 'circle'\n | 'dot'\n | 'triangle'\n | 'diamond'\n | 'cross'\n | 'stripes'\n | null;\n\nexport interface CellConfig {\n x: number;\n y: number;\n width: number;\n height: number;\n bgColorIndex: number;\n shapeColorIndex: number;\n shapeType: ShapeType;\n triangleIndex?: number;\n stripeDirection?: 0 | 1;\n stripeCount?: number;\n stripeMask?: boolean[];\n animationDelay: number;\n animationDuration: number;\n animationScaleFrom?: number;\n dotScale?: number;\n}\n\nconst RNG_MULTIPLIER = 9301;\nconst RNG_INCREMENT = 49297;\nconst RNG_MODULUS = 233280;\n\nconst MIN_BOX_SIZE = 4;\nconst STRIP_LINES_MIN = 1;\nconst STRIP_LINES_MAX = 8;\nconst EMPTY_ROW_CHANCE = 0.12;\nconst FILL_COUNT_MIN_RATIO = 0.3;\n\nconst SHAPE_PROB = { circle: 0.2, dot: 0.35, triangle: 0.5, diamond: 0.62, cross: 0.75 } as const;\nconst DOT_SCALE_MIN = 0.3;\nconst DOT_SCALE_RANGE = 0.3;\nconst ANIM_DELAY_MAX = 450;\nconst ANIM_DURATION_MIN = 320;\nconst ANIM_DURATION_RANGE = 300;\nconst ANIM_SCALE_FROM_MIN = 0.8;\nconst ANIM_SCALE_FROM_RANGE = 0.17;\nconst STRIPE_COUNT_MIN = 2;\nconst STRIPE_COUNT_MAX = 5;\nconst STRIPE_VISIBLE_CHANCE = 0.75;\n\nexport function getRandomInt(min: number, max: number, rng: () => number): number {\n return Math.floor(rng() * (max - min + 1)) + min;\n}\n\nexport function createSeededRandom(seed: number): () => number {\n return () => {\n seed = (seed * RNG_MULTIPLIER + RNG_INCREMENT) % RNG_MODULUS;\n return seed / RNG_MODULUS;\n };\n}\n\nexport type PatternEdge = 'top' | 'right' | 'bottom' | 'left';\n\nexport function generatePattern(\n stripWidth: number,\n stripHeight: number,\n boxSize: number,\n colorCount: number,\n rng: () => number,\n edge: PatternEdge = 'right',\n stripDensity: number = 2\n): CellConfig[] {\n return generateEdgePattern(stripWidth, stripHeight, boxSize, colorCount, rng, edge, stripDensity);\n}\n\nfunction generateEdgePattern(\n stripWidth: number,\n stripHeight: number,\n boxSize: number,\n colorCount: number,\n rng: () => number,\n edge: PatternEdge,\n stripDensity: number\n): CellConfig[] {\n if (stripWidth <= 0 || stripHeight <= 0) return [];\n\n const safeBoxSize = Math.max(MIN_BOX_SIZE, boxSize);\n const maxRows = Math.max(STRIP_LINES_MIN, Math.floor(stripHeight / safeBoxSize));\n const minLines = Math.min(STRIP_LINES_MAX, Math.max(STRIP_LINES_MIN, stripDensity));\n\n let rowCount = 1;\n while (rowCount < maxRows && stripHeight / (rowCount + 1) >= safeBoxSize) {\n rowCount++;\n }\n\n let cellSize = stripHeight / rowCount;\n if (cellSize > stripWidth) {\n cellSize = stripWidth;\n rowCount = Math.max(STRIP_LINES_MIN, Math.floor(stripHeight / cellSize));\n }\n\n const maxCellByWidth = stripWidth / minLines;\n const maxCellByHeight = stripHeight / minLines;\n cellSize = Math.min(cellSize, maxCellByWidth, maxCellByHeight);\n if (cellSize <= 0) return [];\n\n rowCount = Math.max(STRIP_LINES_MIN, Math.floor(stripHeight / cellSize));\n const colCount = Math.max(STRIP_LINES_MIN, Math.floor(stripWidth / cellSize));\n\n const shouldFill = () => rng() > EMPTY_ROW_CHANCE;\n const fillCount = (max: number) =>\n getRandomInt(Math.max(STRIP_LINES_MIN, Math.floor(max * FILL_COUNT_MIN_RATIO)), max, rng);\n\n const isVerticalStrip = edge === 'right' || edge === 'left';\n const primaryCount = isVerticalStrip ? rowCount : colCount;\n const secondaryCount = isVerticalStrip ? colCount : rowCount;\n const isEndEdge = edge === 'right' || edge === 'bottom';\n\n const cells: CellConfig[] = [];\n\n for (let i = 0; i < primaryCount; i++) {\n if (!shouldFill()) continue;\n\n const count = fillCount(secondaryCount);\n const start = isEndEdge ? secondaryCount - count : 0;\n const end = isEndEdge ? secondaryCount : count;\n\n for (let j = start; j < end; j++) {\n const col = isVerticalStrip ? j : i;\n const row = isVerticalStrip ? i : j;\n pushCell(cells, col * cellSize, row * cellSize, cellSize, cellSize, colorCount, rng);\n }\n }\n\n return cells;\n}\n\nfunction pickShapeType(rng: () => number): {\n shapeType: ShapeType;\n triangleIndex?: number;\n stripeDirection?: 0 | 1;\n stripeCount?: number;\n stripeMask?: boolean[];\n dotScale?: number;\n} {\n const roll = rng();\n\n if (roll < SHAPE_PROB.circle) return { shapeType: 'circle' };\n if (roll < SHAPE_PROB.dot) {\n return { shapeType: 'dot', dotScale: DOT_SCALE_MIN + rng() * DOT_SCALE_RANGE };\n }\n if (roll < SHAPE_PROB.triangle) {\n return {\n shapeType: 'triangle',\n triangleIndex: getRandomInt(0, TRIANGLE_TEMPLATES.length - 1, rng),\n };\n }\n if (roll < SHAPE_PROB.diamond) return { shapeType: 'diamond' };\n if (roll < SHAPE_PROB.cross) return { shapeType: 'cross' };\n\n const stripeCount = getRandomInt(STRIPE_COUNT_MIN, STRIPE_COUNT_MAX, rng);\n return {\n shapeType: 'stripes',\n stripeDirection: rng() > 0.35 ? 1 : 0,\n stripeCount,\n stripeMask: Array.from({ length: stripeCount }, () => rng() > 1 - STRIPE_VISIBLE_CHANCE),\n };\n}\n\nfunction pushCell(\n cells: CellConfig[],\n x: number,\n y: number,\n width: number,\n height: number,\n colorCount: number,\n rng: () => number\n): void {\n const bgColorIndex = getRandomInt(0, colorCount - 1, rng);\n let shapeColorIndex = getRandomInt(0, colorCount - 1, rng);\n while (shapeColorIndex === bgColorIndex) {\n shapeColorIndex = getRandomInt(0, colorCount - 1, rng);\n }\n\n const shape = pickShapeType(rng);\n\n cells.push({\n x,\n y,\n width,\n height,\n bgColorIndex,\n shapeColorIndex,\n shapeType: shape.shapeType,\n triangleIndex: shape.triangleIndex,\n stripeDirection: shape.stripeDirection,\n stripeCount: shape.stripeCount,\n stripeMask: shape.stripeMask,\n animationDelay: Math.floor(rng() * ANIM_DELAY_MAX),\n animationDuration: ANIM_DURATION_MIN + Math.floor(rng() * ANIM_DURATION_RANGE),\n animationScaleFrom: ANIM_SCALE_FROM_MIN + rng() * ANIM_SCALE_FROM_RANGE,\n dotScale: shape.dotScale,\n });\n}\n"],"names":["TRIANGLE_TEMPLATES","RNG_MULTIPLIER","RNG_INCREMENT","RNG_MODULUS","MIN_BOX_SIZE","STRIP_LINES_MIN","STRIP_LINES_MAX","EMPTY_ROW_CHANCE","FILL_COUNT_MIN_RATIO","SHAPE_PROB","DOT_SCALE_MIN","DOT_SCALE_RANGE","ANIM_DELAY_MAX","ANIM_DURATION_MIN","ANIM_DURATION_RANGE","ANIM_SCALE_FROM_MIN","ANIM_SCALE_FROM_RANGE","STRIPE_COUNT_MIN","STRIPE_COUNT_MAX","STRIPE_VISIBLE_CHANCE","getRandomInt","min","max","rng","createSeededRandom","seed","generatePattern","stripWidth","stripHeight","boxSize","colorCount","edge","stripDensity","generateEdgePattern","safeBoxSize","maxRows","minLines","rowCount","cellSize","maxCellByWidth","maxCellByHeight","colCount","shouldFill","fillCount","isVerticalStrip","primaryCount","secondaryCount","isEndEdge","cells","i","count","start","end","j","col","row","pushCell","pickShapeType","roll","stripeCount","x","y","width","height","bgColorIndex","shapeColorIndex","shape"],"mappings":"6FAEO,MAAMA,EAAkC,CAC7C,CAAC,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,CAAC,EACvB,CAAC,CAAC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EAAsBQ,EAAA,EAAQP,EAClD,SAAUkD,EAAM,QAAA,CACjB,CACH"}
|
|
1
|
+
{"version":3,"file":"index.cjs63.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs64.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs36.js"),k=require("./index.cjs42.js"),g=require("./index.cjs62.js"),e=require("./index.cjs391.js");function S(l){return`polygon(${l.map(([d,s])=>`${d*100}% ${s*100}%`).join(", ")})`}function j({cell:l,colors:o}){const d=o[l.bgColorIndex]??o[0],s=o[l.shapeColorIndex]??o[1],a=Math.min(l.width,l.height),{x:f,y,width:C,height:E,shapeType:i,triangleIndex:c,stripeDirection:u,stripeCount:r=4,stripeMask:b,animationDelay:v,animationDuration:N,animationScaleFrom:R=.9,dotScale:m=.45,animationType:p,animationPhase:$=0}=l,h=u===1?a:a/(r*2-1),x=u===1?a/(r*2-1):a,P=b??Array(r).fill(!0),T={position:"absolute",left:f,top:y,width:C,height:E,"--cell-delay":`${v}ms`,"--cell-duration":`${N}ms`,"--cell-scale-from":R,"--cell-animation-phase":`${$}ms`};return t.jsxRuntimeExports.jsx("div",{className:e.default.cell,style:T,"aria-hidden":!0,children:t.jsxRuntimeExports.jsxs("div",{className:k(e.default.cellInner,p==="breathe"&&e.default.cellBreathes,p==="pulse"&&e.default.cellPulses,p==="opacity"&&e.default.cellOpacity),children:[t.jsxRuntimeExports.jsx("div",{className:e.default.bg,style:{backgroundColor:d}}),i==="circle"&&t.jsxRuntimeExports.jsx("div",{className:e.default.shapeCircle,style:{backgroundColor:s}}),i==="dot"&&t.jsxRuntimeExports.jsx("div",{className:e.default.shapeDot,style:{backgroundColor:s,width:`${m*100}%`,height:`${m*100}%`}}),i==="triangle"&&c!==void 0&&g.TRIANGLE_TEMPLATES[c]&&t.jsxRuntimeExports.jsx("div",{className:e.default.shapeTriangle,style:{backgroundColor:s,clipPath:S(g.TRIANGLE_TEMPLATES[c])}}),i==="diamond"&&t.jsxRuntimeExports.jsx("div",{className:e.default.shapeDiamond,style:{backgroundColor:s}}),i==="cross"&&t.jsxRuntimeExports.jsxs("div",{className:e.default.shapeCross,children:[t.jsxRuntimeExports.jsx("div",{className:e.default.crossBar,style:{backgroundColor:s}}),t.jsxRuntimeExports.jsx("div",{className:e.default.crossBarVertical,style:{backgroundColor:s}})]}),i==="stripes"&&t.jsxRuntimeExports.jsx("div",{className:e.default.stripes,children:Array.from({length:r},(w,n)=>P[n]?t.jsxRuntimeExports.jsx("div",{className:e.default.stripe,style:{backgroundColor:s,...u===1?{top:`${2*n*x/a*100}%`,left:0,width:"100%",height:`${x/a*100}%`}:{left:`${2*n*h/a*100}%`,top:0,width:`${h/a*100}%`,height:"100%"}}},n):null)})]})})}j.displayName="PatternCell";exports.PatternCell=j;
|
|
2
2
|
//# sourceMappingURL=index.cjs64.js.map
|
package/dist/index.cjs64.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs64.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.cjs64.js","sources":["../src/components/content/DecorativeFrame/components/PatternCell/PatternCell.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport type { CellConfig, Point2D } from '../../utils/patternGenerator';\nimport { TRIANGLE_TEMPLATES } from '../../utils/patternGenerator';\nimport styles from './PatternCell.module.pcss';\n\nexport interface PatternCellProps {\n cell: CellConfig;\n colors: string[];\n}\n\nfunction polygonClipPath(template: Point2D[]): string {\n const points = template.map(([px, py]) => `${px * 100}% ${py * 100}%`).join(', ');\n return `polygon(${points})`;\n}\n\nexport function PatternCell({ cell, colors }: PatternCellProps) {\n const bgColor = colors[cell.bgColorIndex] ?? colors[0];\n const shapeColor = colors[cell.shapeColorIndex] ?? colors[1];\n const size = Math.min(cell.width, cell.height);\n const {\n x,\n y,\n width: cellWidth,\n height: cellHeight,\n shapeType,\n triangleIndex,\n stripeDirection,\n stripeCount = 4,\n stripeMask,\n animationDelay,\n animationDuration,\n animationScaleFrom = 0.9,\n dotScale = 0.45,\n animationType,\n animationPhase = 0,\n } = cell;\n\n const stripeWidth =\n stripeDirection === 1 ? size : size / (stripeCount * 2 - 1);\n const stripeHeight =\n stripeDirection === 1 ? size / (stripeCount * 2 - 1) : size;\n const visibleStripes = stripeMask ?? Array(stripeCount).fill(true);\n\n const cellStyle: React.CSSProperties = {\n position: 'absolute',\n left: x,\n top: y,\n width: cellWidth,\n height: cellHeight,\n '--cell-delay': `${animationDelay}ms`,\n '--cell-duration': `${animationDuration}ms`,\n '--cell-scale-from': animationScaleFrom,\n '--cell-animation-phase': `${animationPhase}ms`,\n } as React.CSSProperties;\n\n return (\n <div className={styles.cell} style={cellStyle} aria-hidden>\n <div\n className={cn(\n styles.cellInner,\n animationType === 'breathe' && styles.cellBreathes,\n animationType === 'pulse' && styles.cellPulses,\n animationType === 'opacity' && styles.cellOpacity\n )}\n >\n <div className={styles.bg} style={{ backgroundColor: bgColor }} />\n\n {shapeType === 'circle' && (\n <div\n className={styles.shapeCircle}\n style={{ backgroundColor: shapeColor }}\n />\n )}\n\n {shapeType === 'dot' && (\n <div\n className={styles.shapeDot}\n style={{\n backgroundColor: shapeColor,\n width: `${dotScale * 100}%`,\n height: `${dotScale * 100}%`,\n }}\n />\n )}\n\n {shapeType === 'triangle' &&\n triangleIndex !== undefined &&\n TRIANGLE_TEMPLATES[triangleIndex] && (\n <div\n className={styles.shapeTriangle}\n style={{\n backgroundColor: shapeColor,\n clipPath: polygonClipPath(TRIANGLE_TEMPLATES[triangleIndex]!),\n }}\n />\n )}\n\n {shapeType === 'diamond' && (\n <div\n className={styles.shapeDiamond}\n style={{ backgroundColor: shapeColor }}\n />\n )}\n\n {shapeType === 'cross' && (\n <div className={styles.shapeCross}>\n <div\n className={styles.crossBar}\n style={{ backgroundColor: shapeColor }}\n />\n <div\n className={styles.crossBarVertical}\n style={{ backgroundColor: shapeColor }}\n />\n </div>\n )}\n\n {shapeType === 'stripes' && (\n <div className={styles.stripes}>\n {Array.from({ length: stripeCount }, (_, i) =>\n visibleStripes[i] ? (\n <div\n key={i}\n className={styles.stripe}\n style={{\n backgroundColor: shapeColor,\n ...(stripeDirection === 1\n ? {\n top: `${((2 * i * stripeHeight) / size) * 100}%`,\n left: 0,\n width: '100%',\n height: `${(stripeHeight / size) * 100}%`,\n }\n : {\n left: `${((2 * i * stripeWidth) / size) * 100}%`,\n top: 0,\n width: `${(stripeWidth / size) * 100}%`,\n height: '100%',\n }),\n }}\n />\n ) : null\n )}\n </div>\n )}\n </div>\n </div>\n );\n}\n\nPatternCell.displayName = 'PatternCell';\n"],"names":["polygonClipPath","template","px","py","PatternCell","cell","colors","bgColor","shapeColor","size","x","cellWidth","cellHeight","shapeType","triangleIndex","stripeDirection","stripeCount","stripeMask","animationDelay","animationDuration","animationScaleFrom","dotScale","animationType","animationPhase","stripeWidth","stripeHeight","visibleStripes","cellStyle","jsx","styles","jsxs","cn","TRIANGLE_TEMPLATES","_","i"],"mappings":"4NAWA,SAASA,EAAgBC,EAA6B,CAEpD,MAAO,WADQA,EAAS,IAAI,CAAC,CAACC,EAAIC,CAAE,IAAM,GAAGD,EAAK,GAAG,KAAKC,EAAK,GAAG,GAAG,EAAE,KAAK,IAAI,CACxD,GAC1B,CAEO,SAASC,EAAY,CAAE,KAAAC,EAAM,OAAAC,GAA4B,CAC9D,MAAMC,EAAUD,EAAOD,EAAK,YAAY,GAAKC,EAAO,CAAC,EAC/CE,EAAaF,EAAOD,EAAK,eAAe,GAAKC,EAAO,CAAC,EACrDG,EAAO,KAAK,IAAIJ,EAAK,MAAOA,EAAK,MAAM,EACvC,CACJ,EAAAK,EACA,EACA,MAAOC,EACP,OAAQC,EACR,UAAAC,EACA,cAAAC,EACA,gBAAAC,EACA,YAAAC,EAAc,EACd,WAAAC,EACA,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"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_link_10e20_1",n="_linkText_10e20_33",l="_linkIcon_10e20_38",t={link:e,linkText:n,linkIcon:l};exports.default=t;exports.link=e;exports.linkIcon=l;exports.linkText=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs65.js.map
|
package/dist/index.cjs65.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs65.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs65.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs66.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs36.js"),o=require("react"),a=require("./index.cjs42.js"),c=require("./index.cjs415.js"),t=o.forwardRef(({decorative:n=!0,className:r,...s},i)=>e.jsxRuntimeExports.jsxs("svg",{ref:i,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":n,className:a(c.default.root,r),...s,children:[e.jsxRuntimeExports.jsx("g",{"data-chain":"left",children:e.jsxRuntimeExports.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"})}),e.jsxRuntimeExports.jsx("g",{"data-chain":"right",children:e.jsxRuntimeExports.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})})]}));t.displayName="LinkIcon";exports.LinkIcon=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs66.js.map
|
package/dist/index.cjs66.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs66.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.cjs66.js","sources":["../src/components/primitives/Icon/Icons/custom/LinkIcon/LinkIcon.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport cn from \"classnames\";\nimport styles from \"./LinkIcon.module.pcss\";\n\nexport interface LinkIconProps extends React.SVGProps<SVGSVGElement> {\n decorative?: boolean;\n}\n\nexport const LinkIcon = forwardRef<SVGSVGElement, LinkIconProps>(\n ({ decorative = true, className, ...props }, ref) => (\n <svg\n ref={ref}\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden={decorative}\n className={cn(styles.root, className)}\n {...props}\n >\n <g data-chain=\"left\">\n <path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\" />\n </g>\n <g data-chain=\"right\">\n <path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\" />\n </g>\n </svg>\n )\n);\n\nLinkIcon.displayName = \"LinkIcon\";\n"],"names":["LinkIcon","forwardRef","decorative","className","props","ref","jsxs","cn","styles","jsx"],"mappings":"iNAQaA,EAAWC,EAAAA,WACtB,CAAC,CAAE,WAAAC,EAAa,GAAM,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC3CC,EAAAA,kBAAAA,KAAC,MAAA,CACC,IAAAD,EACA,MAAM,6BACN,QAAQ,YACR,KAAK,OACL,OAAO,eACP,YAAa,EACb,cAAc,QACd,eAAe,QACf,cAAaH,EACb,UAAWK,EAAGC,UAAO,KAAML,CAAS,EACnC,GAAGC,EAEJ,SAAA,CAAAK,EAAAA,kBAAAA,IAAC,KAAE,aAAW,OACZ,iCAAC,OAAA,CAAK,EAAE,8DAA8D,CAAA,CACxE,EACAA,EAAAA,kBAAAA,IAAC,KAAE,aAAW,QACZ,iCAAC,OAAA,CAAK,EAAE,+DAA+D,CAAA,CACzE,CAAA,CAAA,CAAA,CAGN,EAEAT,EAAS,YAAc"}
|
package/dist/index.cjs67.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_likeButton_1nv5d_1",e="_heartWrap_1nv5d_49",n="_heart_1nv5d_49",o="_countWrap_1nv5d_112",u="_count_1nv5d_112",_={likeButton:t,"likeButton--disabled":"_likeButton--disabled_1nv5d_19","likeButton--liked":"_likeButton--liked_1nv5d_25","likeButton--pop":"_likeButton--pop_1nv5d_49",heartWrap:e,heart:n,countWrap:o,"countWrap--bump":"_countWrap--bump_1nv5d_119",count:u};exports.count=u;exports.countWrap=o;exports.default=_;exports.heart=n;exports.heartWrap=e;exports.likeButton=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs67.js.map
|
package/dist/index.cjs68.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs36.js"),n=require("./index.cjs414.js"),s=({filled:e=!1,decorative:r=!0,...t})=>o.jsxRuntimeExports.jsx(n,{fill:e?"currentColor":"none",stroke:"currentColor","aria-hidden":r,...t});exports.HeartIcon=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs68.js.map
|
package/dist/index.cjs68.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs68.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.cjs68.js","sources":["../src/components/primitives/Icon/Icons/lucide/HeartIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport { Heart, type LucideProps } from \"lucide-react\";\n\nexport interface HeartIconProps extends LucideProps {\n /** Залитое сердечко (лайк поставлен) */\n filled?: boolean;\n decorative?: boolean;\n className?: string;\n}\n\nexport const HeartIcon: React.FC<HeartIconProps> = ({\n filled = false,\n decorative = true,\n ...props\n}) => (\n <Heart\n fill={filled ? \"currentColor\" : \"none\"}\n stroke=\"currentColor\"\n aria-hidden={decorative}\n {...props}\n />\n);\n"],"names":["HeartIcon","filled","decorative","props","jsx","Heart"],"mappings":"gKAUaA,EAAsC,CAAC,CAClD,OAAAC,EAAS,GACT,WAAAC,EAAa,GACb,GAAGC,CACL,IACEC,EAAAA,kBAAAA,IAACC,EAAA,CACC,KAAMJ,EAAS,eAAiB,OAChC,OAAO,eACP,cAAaC,EACZ,GAAGC,CAAA,CACN"}
|
package/dist/index.cjs69.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="_root_13e6p_1",t="_root--disabled_13e6p_10",c="_input_13e6p_15",n="_control_13e6p_26",l="_control--sm_13e6p_44",e="_control--md_13e6p_49",r="_control--lg_13e6p_54",_="_control--checkbox_13e6p_59",s="_control--radio_13e6p_63",d="_content_13e6p_123",i="_label_13e6p_129",p="_description_13e6p_135",a={root:o,"root--disabled":"_root--disabled_13e6p_10",rootDisabled:t,input:c,control:n,"control--sm":"_control--sm_13e6p_44",controlSm:l,"control--md":"_control--md_13e6p_49",controlMd:e,"control--lg":"_control--lg_13e6p_54",controlLg:r,"control--checkbox":"_control--checkbox_13e6p_59",controlCheckbox:_,"control--radio":"_control--radio_13e6p_63",controlRadio:s,content:d,label:i,description:p};exports.content=d;exports.control=n;exports.controlCheckbox=_;exports.controlLg=r;exports.controlMd=e;exports.controlRadio=s;exports.controlSm=l;exports.default=a;exports.description=p;exports.input=c;exports.label=i;exports.root=o;exports.rootDisabled=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs69.js.map
|
package/dist/index.cjs70.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_root_2pxdg_1",e="_title_2pxdg_7",i="_list_2pxdg_13",l="_item_2pxdg_20",_="_link_2pxdg_29",n="_linkText_2pxdg_48",o={root:t,title:e,list:i,item:l,link:_,"link--active":"_link--active_2pxdg_48",linkText:n};exports.default=o;exports.item=l;exports.link=_;exports.linkText=n;exports.list=i;exports.root=t;exports.title=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs70.js.map
|
package/dist/index.cjs71.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_root_1lfx3_1",t="_root--sm_1lfx3_8",s="_root--md_1lfx3_14",n="_root--lg_1lfx3_20",_="_track_1lfx3_26",o="_segments_1lfx3_34",m="_segment_1lfx3_34",g="_segment--primary_1lfx3_50",r="_segment--secondary_1lfx3_54",l="_segment--success_1lfx3_58",a="_segment--warning_1lfx3_62",c="_segment--active_1lfx3_66",i="_segment--sequential_1lfx3_66",f="_segment-reveal_1lfx3_1",x="_valueLabel_1lfx3_89",u={root:e,"root--sm":"_root--sm_1lfx3_8",rootSm:t,"root--md":"_root--md_1lfx3_14",rootMd:s,"root--lg":"_root--lg_1lfx3_20",rootLg:n,track:_,segments:o,segment:m,"segment--primary":"_segment--primary_1lfx3_50",segmentPrimary:g,"segment--secondary":"_segment--secondary_1lfx3_54",segmentSecondary:r,"segment--success":"_segment--success_1lfx3_58",segmentSuccess:l,"segment--warning":"_segment--warning_1lfx3_62",segmentWarning:a,"segment--active":"_segment--active_1lfx3_66",segmentActive:c,"segment--sequential":"_segment--sequential_1lfx3_66",segmentSequential:i,"segment-reveal":"_segment-reveal_1lfx3_1",segmentReveal:f,valueLabel:x};exports.default=u;exports.root=e;exports.rootLg=n;exports.rootMd=s;exports.rootSm=t;exports.segment=m;exports.segmentActive=c;exports.segmentPrimary=g;exports.segmentReveal=f;exports.segmentSecondary=r;exports.segmentSequential=i;exports.segmentSuccess=l;exports.segmentWarning=a;exports.segments=o;exports.track=_;exports.valueLabel=x;
|
|
2
2
|
//# sourceMappingURL=index.cjs71.js.map
|
package/dist/index.cjs71.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs71.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs71.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs72.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_labelMenuItem_fjxw4_1",l="_icon_fjxw4_32",t="_label_fjxw4_1",n={labelMenuItem:e,icon:l,label:t};exports.default=n;exports.icon=l;exports.label=t;exports.labelMenuItem=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs72.js.map
|
package/dist/index.cjs73.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a="_card_13s36_1",r="_card--size-sm_13s36_7",e="_card--size-md_13s36_11",d="_card--size-lg_13s36_15",c="_card--variant-default_13s36_19",t="_card--variant-paper_13s36_23",n="_card--variant-accent_13s36_27",_="_card--elevation-none_13s36_31",i="_card--elevation-sm_13s36_35",o="_card--elevation-md_13s36_39",s="_card--elevation-lg_13s36_43",l="_card--elevation-xl_13s36_47",v="_card--bordered_13s36_51",m={card:a,"card--size-sm":"_card--size-sm_13s36_7",cardSizeSm:r,"card--size-md":"_card--size-md_13s36_11",cardSizeMd:e,"card--size-lg":"_card--size-lg_13s36_15",cardSizeLg:d,"card--variant-default":"_card--variant-default_13s36_19",cardVariantDefault:c,"card--variant-paper":"_card--variant-paper_13s36_23",cardVariantPaper:t,"card--variant-accent":"_card--variant-accent_13s36_27",cardVariantAccent:n,"card--elevation-none":"_card--elevation-none_13s36_31",cardElevationNone:_,"card--elevation-sm":"_card--elevation-sm_13s36_35",cardElevationSm:i,"card--elevation-md":"_card--elevation-md_13s36_39",cardElevationMd:o,"card--elevation-lg":"_card--elevation-lg_13s36_43",cardElevationLg:s,"card--elevation-xl":"_card--elevation-xl_13s36_47",cardElevationXl:l,"card--bordered":"_card--bordered_13s36_51",cardBordered:v};exports.card=a;exports.cardBordered=v;exports.cardElevationLg=s;exports.cardElevationMd=o;exports.cardElevationNone=_;exports.cardElevationSm=i;exports.cardElevationXl=l;exports.cardSizeLg=d;exports.cardSizeMd=e;exports.cardSizeSm=r;exports.cardVariantAccent=n;exports.cardVariantDefault=c;exports.cardVariantPaper=t;exports.default=m;
|
|
2
2
|
//# sourceMappingURL=index.cjs73.js.map
|
package/dist/index.cjs9.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs36.js"),p=require("react"),f=require("./index.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs36.js"),p=require("react"),f=require("./index.cjs42.js"),t=require("./index.cjs47.js"),y=p.forwardRef(({variant:e="body",size:o,color:u,as:r,children:n,className:s,...a},d)=>{const l=p.useMemo(()=>r||(e.startsWith("h")?e:e==="body"?"p":"span"),[r,e]);return c.jsxRuntimeExports.jsx(l,{ref:d,"data-atme-ui":!0,className:f(t.default.typography,t.default[`typography--${e}`],o&&t.default[`typography--${o}`],u&&t.default[`typography--color-${u}`],s),...a,children:n})});y.displayName="Typography";exports.Typography=y;
|
|
2
2
|
//# sourceMappingURL=index.cjs9.js.map
|
package/dist/index.esm10.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as e } from "./index.esm36.js";
|
|
3
3
|
import { forwardRef as g } from "react";
|
|
4
|
-
import d from "./index.
|
|
5
|
-
import a from "./index.
|
|
6
|
-
import { HashIcon as x } from "./index.
|
|
4
|
+
import d from "./index.esm42.js";
|
|
5
|
+
import a from "./index.esm45.js";
|
|
6
|
+
import { HashIcon as x } from "./index.esm46.js";
|
|
7
7
|
import { Typography as j } from "./index.esm9.js";
|
|
8
8
|
const y = g(
|
|
9
9
|
({
|
package/dist/index.esm11.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as s } from "./index.esm36.js";
|
|
3
3
|
import N, { forwardRef as g } from "react";
|
|
4
|
-
import R from "./index.
|
|
5
|
-
import a from "./index.
|
|
4
|
+
import R from "./index.esm42.js";
|
|
5
|
+
import a from "./index.esm48.js";
|
|
6
6
|
const h = g(function({ as: r, ...t }, e) {
|
|
7
7
|
return N.createElement(r, { ...t, ref: e });
|
|
8
8
|
}), y = g(
|
package/dist/index.esm12.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as d } from "./index.esm36.js";
|
|
3
3
|
import S, { useState as U, useMemo as k, useCallback as a } from "react";
|
|
4
|
-
import l from "./index.
|
|
5
|
-
import C from "./index.
|
|
6
|
-
import { TagGroupItemView as $ } from "./index.
|
|
4
|
+
import l from "./index.esm42.js";
|
|
5
|
+
import C from "./index.esm51.js";
|
|
6
|
+
import { TagGroupItemView as $ } from "./index.esm52.js";
|
|
7
7
|
import { Tag as E } from "./index.esm11.js";
|
|
8
|
-
import { ChevronUpIcon as o } from "./index.
|
|
8
|
+
import { ChevronUpIcon as o } from "./index.esm53.js";
|
|
9
9
|
const q = S.forwardRef(
|
|
10
10
|
({
|
|
11
11
|
tags: i,
|
package/dist/index.esm13.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as a } from "./index.esm36.js";
|
|
3
3
|
import { forwardRef as d } from "react";
|
|
4
|
-
import f from "./index.
|
|
5
|
-
import t from "./index.
|
|
4
|
+
import f from "./index.esm42.js";
|
|
5
|
+
import t from "./index.esm54.js";
|
|
6
6
|
const x = d(
|
|
7
7
|
({
|
|
8
8
|
variant: o = "primary",
|
package/dist/index.esm14.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as r } from "./index.esm36.js";
|
|
3
3
|
import { forwardRef as N } from "react";
|
|
4
|
-
import p from "./index.
|
|
5
|
-
import a from "./index.
|
|
4
|
+
import p from "./index.esm42.js";
|
|
5
|
+
import a from "./index.esm43.js";
|
|
6
6
|
const v = N(
|
|
7
7
|
({
|
|
8
8
|
size: i = "md",
|
package/dist/index.esm15.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as o } from "./index.esm36.js";
|
|
3
3
|
import { forwardRef as N, useRef as b, useEffect as R } from "react";
|
|
4
|
-
import i from "./index.
|
|
5
|
-
import s from "./index.
|
|
4
|
+
import i from "./index.esm42.js";
|
|
5
|
+
import s from "./index.esm69.js";
|
|
6
6
|
import { Root as h } from "./index.esm8.js";
|
|
7
7
|
const d = N(
|
|
8
8
|
({
|
package/dist/index.esm16.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as e } from "./index.esm36.js";
|
|
3
|
-
import h from "./index.
|
|
4
|
-
import a from "./index.
|
|
3
|
+
import h from "./index.esm42.js";
|
|
4
|
+
import a from "./index.esm71.js";
|
|
5
5
|
import { Root as b } from "./index.esm8.js";
|
|
6
6
|
const $ = (t, o, l) => Math.min(Math.max(t, o), l), P = ({
|
|
7
7
|
value: t,
|
package/dist/index.esm17.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as n } from "./index.esm36.js";
|
|
3
|
-
import p from "./index.
|
|
4
|
-
import r from "./index.
|
|
3
|
+
import p from "./index.esm42.js";
|
|
4
|
+
import r from "./index.esm73.js";
|
|
5
5
|
import { Root as l } from "./index.esm8.js";
|
|
6
6
|
const f = ({
|
|
7
7
|
as: e = "section",
|
package/dist/index.esm18.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as n } from "./index.esm36.js";
|
|
3
3
|
import { forwardRef as f } from "react";
|
|
4
|
-
import b from "./index.
|
|
5
|
-
import a from "./index.
|
|
4
|
+
import b from "./index.esm42.js";
|
|
5
|
+
import a from "./index.esm49.js";
|
|
6
6
|
function c(r, t) {
|
|
7
7
|
return t != null && typeof r == "number" && r > t ? `${t}+` : r;
|
|
8
8
|
}
|
package/dist/index.esm19.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as m } from "./index.esm36.js";
|
|
3
3
|
import { forwardRef as f } from "react";
|
|
4
|
-
import u from "./index.
|
|
5
|
-
import t from "./index.
|
|
4
|
+
import u from "./index.esm42.js";
|
|
5
|
+
import t from "./index.esm44.js";
|
|
6
6
|
const h = f(
|
|
7
7
|
({
|
|
8
8
|
color: c = "currentColor",
|
package/dist/index.esm20.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as e } from "./index.esm36.js";
|
|
3
|
-
import i from "./index.
|
|
4
|
-
import a from "./index.
|
|
3
|
+
import i from "./index.esm42.js";
|
|
4
|
+
import a from "./index.esm72.js";
|
|
5
5
|
import { Typography as n } from "./index.esm9.js";
|
|
6
6
|
const c = ({
|
|
7
7
|
label: s,
|
package/dist/index.esm21.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as a } from "./index.esm36.js";
|
|
3
3
|
import { forwardRef as H, useState as m, useCallback as d } from "react";
|
|
4
|
-
import h from "./index.
|
|
5
|
-
import t from "./index.
|
|
6
|
-
import { HeartIcon as I } from "./index.
|
|
4
|
+
import h from "./index.esm42.js";
|
|
5
|
+
import t from "./index.esm67.js";
|
|
6
|
+
import { HeartIcon as I } from "./index.esm68.js";
|
|
7
7
|
import { Typography as P } from "./index.esm9.js";
|
|
8
8
|
const R = H(
|
|
9
9
|
({
|
package/dist/index.esm22.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as r } from "./index.esm36.js";
|
|
3
3
|
import { forwardRef as m } from "react";
|
|
4
|
-
import l from "./index.
|
|
5
|
-
import s from "./index.
|
|
4
|
+
import l from "./index.esm42.js";
|
|
5
|
+
import s from "./index.esm65.js";
|
|
6
6
|
import { Root as c } from "./index.esm8.js";
|
|
7
|
-
import { LinkIcon as p } from "./index.
|
|
7
|
+
import { LinkIcon as p } from "./index.esm66.js";
|
|
8
8
|
const d = m(
|
|
9
9
|
({ children: i, showIcon: o = !0, className: e, testId: t, ...a }, n) => /* @__PURE__ */ r.jsxs(
|
|
10
10
|
c,
|
package/dist/index.esm23.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as o } from "./index.esm36.js";
|
|
3
|
-
import l from "./index.
|
|
4
|
-
import s from "./index.
|
|
3
|
+
import l from "./index.esm42.js";
|
|
4
|
+
import s from "./index.esm57.js";
|
|
5
5
|
import { Root as n } from "./index.esm8.js";
|
|
6
6
|
import { Typography as r } from "./index.esm9.js";
|
|
7
7
|
const p = ({
|
package/dist/index.esm24.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as r } from "./index.esm36.js";
|
|
3
3
|
import { useState as d, useEffect as j } from "react";
|
|
4
|
-
import h from "./index.
|
|
5
|
-
import t from "./index.
|
|
4
|
+
import h from "./index.esm42.js";
|
|
5
|
+
import t from "./index.esm56.js";
|
|
6
6
|
import { Root as p } from "./index.esm8.js";
|
|
7
7
|
import { Typography as u } from "./index.esm9.js";
|
|
8
8
|
const g = ({
|
|
@@ -15,7 +15,7 @@ const g = ({
|
|
|
15
15
|
const [l, x] = d(""), [c, m] = d(null);
|
|
16
16
|
return j(() => {
|
|
17
17
|
let o = !1;
|
|
18
|
-
return m(null), import("./index.
|
|
18
|
+
return m(null), import("./index.esm55.js").then(
|
|
19
19
|
({ codeToHtml: e }) => e(s, {
|
|
20
20
|
lang: n,
|
|
21
21
|
themes: {
|
package/dist/index.esm25.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import
|
|
5
|
-
import { getSpacingVar as
|
|
6
|
-
import t from "./index.
|
|
7
|
-
const
|
|
2
|
+
import { j as d } from "./index.esm36.js";
|
|
3
|
+
import { forwardRef as y } from "react";
|
|
4
|
+
import g from "./index.esm42.js";
|
|
5
|
+
import { getSpacingVar as j } from "./index.esm3.js";
|
|
6
|
+
import t from "./index.esm58.js";
|
|
7
|
+
const w = y(
|
|
8
8
|
({
|
|
9
|
-
direction:
|
|
10
|
-
align:
|
|
9
|
+
direction: r = "row",
|
|
10
|
+
align: s = "stretch",
|
|
11
11
|
justify: o = "start",
|
|
12
|
-
wrap:
|
|
12
|
+
wrap: e = "nowrap",
|
|
13
13
|
gap: c = 0,
|
|
14
|
-
as:
|
|
14
|
+
as: i = "div",
|
|
15
15
|
children: p,
|
|
16
|
-
className:
|
|
16
|
+
className: m,
|
|
17
17
|
testId: a,
|
|
18
|
-
...
|
|
19
|
-
},
|
|
20
|
-
const
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
18
|
+
...n
|
|
19
|
+
}, l) => {
|
|
20
|
+
const f = j(c), { style: k, ...u } = n;
|
|
21
|
+
return /* @__PURE__ */ d.jsx(
|
|
22
|
+
i,
|
|
23
23
|
{
|
|
24
|
-
ref:
|
|
24
|
+
ref: l,
|
|
25
25
|
"data-atme-ui": !0,
|
|
26
|
-
className:
|
|
26
|
+
className: g(
|
|
27
27
|
t.stack,
|
|
28
|
-
t[`stack--direction-${
|
|
29
|
-
t[`stack--align-${
|
|
28
|
+
t[`stack--direction-${r}`],
|
|
29
|
+
t[`stack--align-${s}`],
|
|
30
30
|
t[`stack--justify-${o}`],
|
|
31
|
-
t[`stack--wrap-${
|
|
32
|
-
|
|
31
|
+
t[`stack--wrap-${e}`],
|
|
32
|
+
m
|
|
33
33
|
),
|
|
34
|
-
style: { gap:
|
|
34
|
+
style: { ...k, gap: f },
|
|
35
35
|
...a && { "data-testid": a },
|
|
36
|
-
...
|
|
36
|
+
...u,
|
|
37
37
|
children: p
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
|
-
|
|
42
|
+
w.displayName = "Stack";
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
w as Stack
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=index.esm25.js.map
|
package/dist/index.esm25.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm25.js","sources":["../src/components/layout/Stack/Stack.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport cn from \"classnames\";\nimport type { BaseComponentProps } from \"../../types\";\nimport { getSpacingVar } from \"@tokens/utils\";\nimport styles from \"./Stack.module.pcss\";\n\nexport type StackDirection =\n | \"row\"\n | \"column\"\n | \"row-reverse\"\n | \"column-reverse\";\nexport type StackAlign = \"start\" | \"end\" | \"center\" | \"stretch\" | \"baseline\";\nexport type StackJustify =\n | \"start\"\n | \"end\"\n | \"center\"\n | \"between\"\n | \"around\"\n | \"evenly\";\nexport type StackWrap = \"nowrap\" | \"wrap\" | \"wrap-reverse\";\n\nexport type StackGap = number | string;\n\ntype StackElement =\n | \"div\"\n | \"section\"\n | \"article\"\n | \"main\"\n | \"header\"\n | \"footer\"\n | \"aside\"\n | \"nav\";\n\nexport interface StackProps\n extends\n BaseComponentProps,\n Omit<React.HTMLAttributes<HTMLDivElement>, \"ref\"> {\n direction?: StackDirection;\n align?: StackAlign;\n justify?: StackJustify;\n wrap?: StackWrap;\n gap?: StackGap;\n as?: StackElement;\n children: React.ReactNode;\n}\n\nexport const Stack = forwardRef<HTMLDivElement, StackProps>(\n (\n {\n direction = \"row\",\n align = \"stretch\",\n justify = \"start\",\n wrap = \"nowrap\",\n gap = 0,\n as: Component = \"div\",\n children,\n className,\n testId,\n ...props\n },\n ref\n ) => {\n
|
|
1
|
+
{"version":3,"file":"index.esm25.js","sources":["../src/components/layout/Stack/Stack.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport cn from \"classnames\";\nimport type { BaseComponentProps } from \"../../types\";\nimport { getSpacingVar } from \"@tokens/utils\";\nimport styles from \"./Stack.module.pcss\";\n\nexport type StackDirection =\n | \"row\"\n | \"column\"\n | \"row-reverse\"\n | \"column-reverse\";\nexport type StackAlign = \"start\" | \"end\" | \"center\" | \"stretch\" | \"baseline\";\nexport type StackJustify =\n | \"start\"\n | \"end\"\n | \"center\"\n | \"between\"\n | \"around\"\n | \"evenly\";\nexport type StackWrap = \"nowrap\" | \"wrap\" | \"wrap-reverse\";\n\nexport type StackGap = number | string;\n\ntype StackElement =\n | \"div\"\n | \"section\"\n | \"article\"\n | \"main\"\n | \"header\"\n | \"footer\"\n | \"aside\"\n | \"nav\";\n\nexport interface StackProps\n extends\n BaseComponentProps,\n Omit<React.HTMLAttributes<HTMLDivElement>, \"ref\"> {\n direction?: StackDirection;\n align?: StackAlign;\n justify?: StackJustify;\n wrap?: StackWrap;\n gap?: StackGap;\n as?: StackElement;\n children: React.ReactNode;\n}\n\nexport const Stack = forwardRef<HTMLDivElement, StackProps>(\n (\n {\n direction = \"row\",\n align = \"stretch\",\n justify = \"start\",\n wrap = \"nowrap\",\n gap = 0,\n as: Component = \"div\",\n children,\n className,\n testId,\n ...props\n },\n ref\n ) => {\n const gapValue = getSpacingVar(gap);\n const { style: styleProp, ...restProps } = props;\n\n return (\n <Component\n ref={ref}\n data-atme-ui\n className={cn(\n styles.stack,\n styles[`stack--direction-${direction}`],\n styles[`stack--align-${align}`],\n styles[`stack--justify-${justify}`],\n styles[`stack--wrap-${wrap}`],\n className\n )}\n style={{ ...styleProp, gap: gapValue }}\n {...(testId && { \"data-testid\": testId })}\n {...restProps}\n >\n {children}\n </Component>\n );\n }\n);\n\nStack.displayName = \"Stack\";\n"],"names":["Stack","forwardRef","direction","align","justify","wrap","gap","Component","children","className","testId","props","ref","gapValue","getSpacingVar","styleProp","restProps","jsx","cn","styles"],"mappings":";;;;;;AA8CO,MAAMA,IAAQC;AAAA,EACnB,CACE;AAAA,IACE,WAAAC,IAAY;AAAA,IACZ,OAAAC,IAAQ;AAAA,IACR,SAAAC,IAAU;AAAA,IACV,MAAAC,IAAO;AAAA,IACP,KAAAC,IAAM;AAAA,IACN,IAAIC,IAAY;AAAA,IAChB,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,GAELC,MACG;AACH,UAAMC,IAAWC,EAAcR,CAAG,GAC5B,EAAE,OAAOS,GAAW,GAAGC,MAAcL;AAE3C,WACEM,gBAAAA,EAAAA;AAAAA,MAACV;AAAA,MAAA;AAAA,QACC,KAAAK;AAAA,QACA,gBAAY;AAAA,QACZ,WAAWM;AAAA,UACTC,EAAO;AAAA,UACPA,EAAO,oBAAoBjB,CAAS,EAAE;AAAA,UACtCiB,EAAO,gBAAgBhB,CAAK,EAAE;AAAA,UAC9BgB,EAAO,kBAAkBf,CAAO,EAAE;AAAA,UAClCe,EAAO,eAAed,CAAI,EAAE;AAAA,UAC5BI;AAAA,QAAA;AAAA,QAEF,OAAO,EAAE,GAAGM,GAAW,KAAKF,EAAA;AAAA,QAC3B,GAAIH,KAAU,EAAE,eAAeA,EAAA;AAAA,QAC/B,GAAGM;AAAA,QAEH,UAAAR;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;AAEAR,EAAM,cAAc;"}
|
package/dist/index.esm26.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as m } from "./index.esm36.js";
|
|
3
3
|
import { forwardRef as y } from "react";
|
|
4
|
-
import v from "./index.
|
|
4
|
+
import v from "./index.esm42.js";
|
|
5
5
|
import { getSpacingVar as n } from "./index.esm3.js";
|
|
6
|
-
import b from "./index.
|
|
6
|
+
import b from "./index.esm50.js";
|
|
7
7
|
const j = y(
|
|
8
8
|
({
|
|
9
9
|
columns: r = 12,
|
package/dist/index.esm27.js
CHANGED