@soxa-ui/theme-oren 0.0.0-stage → 0.3.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/LICENSE +21 -0
- package/README.md +181 -2
- package/dist/common.css +1 -0
- package/dist/components/accordion.css +4 -0
- package/dist/components/badge.css +2 -0
- package/dist/components/breadcrumbs.css +8 -0
- package/dist/components/button.css +2 -0
- package/dist/components/calendar.css +9 -0
- package/dist/components/check-box.css +3 -0
- package/dist/components/code-block.css +5 -0
- package/dist/components/date-input.css +4 -0
- package/dist/components/date-picker.css +11 -0
- package/dist/components/dialog.css +6 -0
- package/dist/components/drag-and-drop.css +2 -0
- package/dist/components/drawer.css +7 -0
- package/dist/components/field.css +3 -0
- package/dist/components/icon.css +2 -0
- package/dist/components/input.css +4 -0
- package/dist/components/label.css +2 -0
- package/dist/components/list-box.css +5 -0
- package/dist/components/menu.css +7 -0
- package/dist/components/number-input.css +4 -0
- package/dist/components/pagination.css +4 -0
- package/dist/components/popover.css +7 -0
- package/dist/components/progress-linear.css +2 -0
- package/dist/components/progress-spinner.css +2 -0
- package/dist/components/radio-group.css +2 -0
- package/dist/components/rating.css +3 -0
- package/dist/components/scroller.css +4 -0
- package/dist/components/select.css +10 -0
- package/dist/components/skeleton.css +2 -0
- package/dist/components/slider.css +2 -0
- package/dist/components/switch.css +2 -0
- package/dist/components/table.css +5 -0
- package/dist/components/tabs.css +4 -0
- package/dist/components/tags.css +4 -0
- package/dist/components/textarea.css +2 -0
- package/dist/components/toasts.css +7 -0
- package/dist/components/toggle-button.css +2 -0
- package/dist/components/toggle-group.css +3 -0
- package/dist/components/tooltip.css +2 -0
- package/dist/index.css +1 -0
- package/dist/parts/accordion.css +1 -0
- package/dist/parts/anchored.css +1 -0
- package/dist/parts/badge.css +1 -0
- package/dist/parts/breadcrumbs.css +1 -0
- package/dist/parts/button.css +1 -0
- package/dist/parts/calendar.css +1 -0
- package/dist/parts/check-box.css +1 -0
- package/dist/parts/code-block.css +1 -0
- package/dist/parts/date-input.css +1 -0
- package/dist/parts/date-picker.css +1 -0
- package/dist/parts/dialog.css +1 -0
- package/dist/parts/drag-and-drop.css +1 -0
- package/dist/parts/drawer.css +1 -0
- package/dist/parts/field.css +1 -0
- package/dist/parts/group.css +1 -0
- package/dist/parts/icon.css +1 -0
- package/dist/parts/input.css +1 -0
- package/dist/parts/label.css +1 -0
- package/dist/parts/list-box.css +1 -0
- package/dist/parts/menu.css +1 -0
- package/dist/parts/modal.css +1 -0
- package/dist/parts/number-input.css +1 -0
- package/dist/parts/pagination.css +1 -0
- package/dist/parts/place.css +1 -0
- package/dist/parts/popover.css +1 -0
- package/dist/parts/progress-linear.css +1 -0
- package/dist/parts/progress-spinner.css +1 -0
- package/dist/parts/radio-group.css +1 -0
- package/dist/parts/rating.css +1 -0
- package/dist/parts/scroller.css +1 -0
- package/dist/parts/select.css +1 -0
- package/dist/parts/skeleton.css +1 -0
- package/dist/parts/slider.css +1 -0
- package/dist/parts/swipe.css +1 -0
- package/dist/parts/switch.css +1 -0
- package/dist/parts/table.css +1 -0
- package/dist/parts/tabs.css +1 -0
- package/dist/parts/tags.css +1 -0
- package/dist/parts/textarea.css +1 -0
- package/dist/parts/toasts.css +1 -0
- package/dist/parts/toggle-group.css +1 -0
- package/dist/parts/tooltip.css +1 -0
- package/dist/setup/index.d.ts +47 -0
- package/dist/setup/index.js +50 -0
- package/dist/setup/plugins/index.d.ts +1 -0
- package/dist/setup/plugins/install.d.ts +14 -0
- package/dist/setup/plugins/install.js +31 -0
- package/index.d.ts +97 -0
- package/package.json +64 -4
package/index.d.ts
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The values of the look of the oren theme — exactly those it has CSS for.
|
|
3
|
+
*
|
|
4
|
+
* The library declares no `variant`, `view`, `shape` or `animation` values of
|
|
5
|
+
* its own: its registries are empty, and the theme augments them here (root
|
|
6
|
+
* `AGENTS.md`, «Оформление: значения объявляет тема»). Once this file is in
|
|
7
|
+
* the program, the props of the components take these names, and the compiler
|
|
8
|
+
* rejects a typo.
|
|
9
|
+
*
|
|
10
|
+
* It comes into the program by either of two ways: with the stylesheet
|
|
11
|
+
* imported from a module of TS — `import '@soxa-ui/theme-oren'` — or with the
|
|
12
|
+
* behavior, `@soxa-ui/theme-oren/setup`, whose declarations reference this
|
|
13
|
+
* file. The second works in any build: Angular CLI takes the stylesheet from
|
|
14
|
+
* `styles` in `angular.json` and Nuxt from `css` in `nuxt.config.ts`, and
|
|
15
|
+
* there no module of TS imports it.
|
|
16
|
+
*
|
|
17
|
+
* A value that is the look of the block without a modifier (`normal`, `filled`
|
|
18
|
+
* of Button, `outlined` of CheckBox, `line`, `dot`, `rounded`, `pulse`) may
|
|
19
|
+
* have no rule of its own in the CSS, but it is declared all the same: it can
|
|
20
|
+
* be set explicitly, and `normal` of ProgressLinear, ProgressSpinner and Rating
|
|
21
|
+
* is not the base but the neutral.
|
|
22
|
+
*/
|
|
23
|
+
export {}
|
|
24
|
+
|
|
25
|
+
declare module '@soxa-ui/core' {
|
|
26
|
+
interface IBadgeViews {
|
|
27
|
+
filled: true
|
|
28
|
+
outlined: true
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The color by meaning. Without a variant — the neutral; `accent` for
|
|
33
|
+
* ProgressLinear and ProgressSpinner, which inside a button take the color
|
|
34
|
+
* of its text; `caution` for the stars of Rating. A button does not
|
|
35
|
+
* override a variant set on its indicator, and on the button's fill of the
|
|
36
|
+
* same family the indicator nearly disappears.
|
|
37
|
+
*/
|
|
38
|
+
interface IComponentVariants {
|
|
39
|
+
normal: true
|
|
40
|
+
accent: true
|
|
41
|
+
positive: true
|
|
42
|
+
negative: true
|
|
43
|
+
caution: true
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** The view of a button and of the rows Button draws: ListBox, Accordion, Tags. */
|
|
47
|
+
interface IButtonViews {
|
|
48
|
+
filled: true
|
|
49
|
+
plain: true
|
|
50
|
+
outlined: true
|
|
51
|
+
none: true
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** The view of tabs. Without a view — `line`. */
|
|
55
|
+
interface ITabsViews {
|
|
56
|
+
line: true
|
|
57
|
+
contained: true
|
|
58
|
+
outline: true
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The view of a checkbox. Without a view — `outlined`: a box in a border,
|
|
63
|
+
* the check in the color of the variant. `filled` differs from it only in a
|
|
64
|
+
* checked box: it is filled with the saturated color of the variant, with a
|
|
65
|
+
* white check on it; an unchecked one looks as in `outlined`. `plain` — no
|
|
66
|
+
* border and no background, for dense lists.
|
|
67
|
+
*/
|
|
68
|
+
interface ICheckBoxViews {
|
|
69
|
+
outlined: true
|
|
70
|
+
filled: true
|
|
71
|
+
plain: true
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The view of a radio — what marks the choice. Without a view — `dot`: a
|
|
76
|
+
* dot inside a thin ring, like the check inside the box of a checkbox.
|
|
77
|
+
* `ring` — the ring thickens.
|
|
78
|
+
*/
|
|
79
|
+
interface IRadioGroupViews {
|
|
80
|
+
dot: true
|
|
81
|
+
ring: true
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** The shape of a skeleton. Without a shape — `rounded`. */
|
|
85
|
+
interface ISkeletonShapes {
|
|
86
|
+
rect: true
|
|
87
|
+
rounded: true
|
|
88
|
+
circle: true
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** The animation of a skeleton. Without an animation — `pulse`. */
|
|
92
|
+
interface ISkeletonAnimations {
|
|
93
|
+
pulse: true
|
|
94
|
+
wave: true
|
|
95
|
+
none: true
|
|
96
|
+
}
|
|
97
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soxa-ui/theme-oren",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Тема oren: CSS под BEM-классы и data-* компонентов Soxa UI, светлая и тёмная схемы",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"soxa",
|
|
7
|
+
"ui",
|
|
8
|
+
"theme",
|
|
9
|
+
"css"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": "Yuri Soldatov",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/youra-h/soxa-ui.git",
|
|
16
|
+
"directory": "packages/themes/oren"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://github.com/youra-h/soxa-ui",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/youra-h/soxa-ui/issues"
|
|
21
|
+
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"type": "module",
|
|
26
|
+
"sideEffects": [
|
|
27
|
+
"*.css"
|
|
28
|
+
],
|
|
29
|
+
"main": "./dist/index.css",
|
|
30
|
+
"style": "./dist/index.css",
|
|
31
|
+
"types": "./index.d.ts",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./index.d.ts",
|
|
35
|
+
"default": "./dist/index.css"
|
|
36
|
+
},
|
|
37
|
+
"./*.css": "./dist/components/*.css",
|
|
38
|
+
"./setup": {
|
|
39
|
+
"types": "./dist/setup/index.d.ts",
|
|
40
|
+
"default": "./dist/setup/index.js"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"dist",
|
|
45
|
+
"index.d.ts"
|
|
46
|
+
],
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "npm run build:css && vite build -c vite.setup.config.ts && tsc -p tsconfig.build.json",
|
|
49
|
+
"build:css": "vite build",
|
|
50
|
+
"watch": "vite build --watch",
|
|
51
|
+
"test": "vitest run"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@soxa-ui/theme-base": "0.3.0"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"@soxa-ui/core": "^0.3.0",
|
|
58
|
+
"@soxa-ui/setup": "^0.3.0"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@tailwindcss/node": "^4.2.2",
|
|
62
|
+
"postcss": "^8.5.9",
|
|
63
|
+
"sass": "^1.99.0",
|
|
64
|
+
"tailwindcss": "^4.2.2"
|
|
65
|
+
}
|
|
66
|
+
}
|